.detail { max-width: 1000px; padding-top: 24px; }
.detail .breadcrumbs { margin-bottom: 24px; }
.detail-heading { padding: 0 0 24px; }
.detail-heading .eyebrow { margin-bottom: 10px; }
.detail-heading h1 { font-size: 44px; max-width: 900px; margin-bottom: 12px; line-height: 1.12; }
.detail-heading .lead { font-size: 16px; max-width: 730px; margin-bottom: 12px; }
.detail-heading .level-line { margin-bottom: 18px; color: #555760; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.primary .ui-icon { filter: invert(1); }
.detail-photo { margin: 0 0 24px; }
.detail .detail-photo.recovered-photo > img { height: 520px; max-height: none; object-fit: contain; object-position: center; background: #101214; }
@media (max-width: 700px) { .detail .detail-photo.recovered-photo > img { height: auto; max-height: 560px; } }
.detail-photo > img { width: 100%; height: 400px; max-height: none; object-fit: cover; object-position: center 55%; border-radius: 4px; background: #f5f6f7; }
.detail-photo img[src$="duendes.webp"] { object-position: center 55%; }
.detail-photo img[src$="llao-llao.webp"] { height: 400px; }
.facts-band { padding: 24px 0; border-block: 1px solid var(--line); }
.detail-section-line { display: block; width: 88px; height: 3px; margin-top: 14px; background: #e000a8; transform-origin: left; pointer-events: none; }
.detail-section-line.is-waiting { opacity: 0; }
.detail .facts-band { position: relative; }
.facts-band > .detail-section-line { position: absolute; bottom: -1px; left: 0; width: 96px; margin: 0; }
.compact-facts { grid-template-columns: 1fr 1fr 1fr; gap: 28px; padding: 0; border: 0; }
.compact-facts > div { min-width: 0; display: block; }
.compact-facts dt { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: #555760; font-size: 12px; }
.compact-facts dd { font-size: 30px; line-height: 1.25; margin: 0; text-align: left; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.compact-facts p { font-size: 12px; margin: 10px 0 0; max-width: none; }
.time-fact { border-left: 1px solid var(--line); padding-left: 28px; }
.time-fact dt .ui-icon { filter: invert(20%) sepia(95%) saturate(4050%) hue-rotate(302deg) brightness(88%); }
.time-fact dd { color: #ad007f; }
.difficulty-fact { border-left: 1px solid var(--line); padding-left: 28px; }
.difficulty-fact dd { font-size: 26px; }
.difficulty-fact dd { display: flex; align-items: center; gap: 12px; }
.difficulty-bars { display: flex; align-items: flex-end; gap: 4px; width: 46px; height: 27px; flex-shrink: 0; }
.difficulty-bar { width: 6px; height: 7px; background: #d9dbe0; border-radius: 1px; }
.difficulty-bar:nth-child(2) { height: 12px; }
.difficulty-bar:nth-child(3) { height: 17px; }
.difficulty-bar:nth-child(4) { height: 22px; }
.difficulty-bar:nth-child(5) { height: 27px; }
.difficulty-bar.is-active { background: #ad007f; }
.metric-scope, .facts-scope, .season-indicator { display: flex; align-items: flex-start; gap: 8px; }
.metric-scope .ui-icon, .facts-scope .ui-icon { width: 16px; height: 16px; }
.season-indicator { font-size: 12px; line-height: 1.6; color: #555760; margin: 18px 0 0; }
.season-indicator .ui-icon { width: 18px; height: 18px; }
.transport-panel h3 { display: flex; align-items: center; gap: 9px; }
.access-steps { list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: access; }
.access-steps li { position: relative; padding: 0 0 24px 42px; counter-increment: access; }
.access-steps li > .ui-icon { position: absolute; left: 3px; top: 1px; width: 21px; height: 21px; }
.access-steps li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 29px; bottom: 4px; border-left: 1px solid #dedee3; }
.access-steps strong, .access-steps span { display: block; }
.access-steps strong { font-size: 15px; margin-bottom: 5px; }
.access-steps span { font-size: 14px; color: var(--muted); }
.access-steps li:last-child { padding-bottom: 0; }
.transport-panel .access-total { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.related-reason { margin: 0 0 12px; color: #666870; font-size: 12px; }
.detail .related { max-width: 780px; padding-top: 32px; }
.detail .related h2 { font-size: 25px; margin-bottom: 24px; }
.detail .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.related-trail { border-bottom: 1px solid var(--line); }
.related-link { display: flex; flex-direction: column; gap: 18px; padding: 0 0 24px; height: 100%; align-items: stretch; }
.related-photo { width: 100%; aspect-ratio: 16 / 10; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #f1f2f4; }
.related-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.related-copy { min-width: 0; flex: 1; }
.related-copy .related-reason { margin-bottom: 8px; font-size: 11px; }
.detail .related-copy h3 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.related-level { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #555760; }
.related-level .difficulty-bars { width: 34px; height: 20px; gap: 3px; }
.related-level .difficulty-bar { width: 4px; }
.related-level .difficulty-bar:nth-child(1) { height: 4px; }
.related-level .difficulty-bar:nth-child(2) { height: 8px; }
.related-level .difficulty-bar:nth-child(3) { height: 12px; }
.related-level .difficulty-bar:nth-child(4) { height: 16px; }
.related-level .difficulty-bar:nth-child(5) { height: 20px; }
.related-season:empty { display: none; }
.related-season { font-size: 10px; color: var(--muted); }
.related-copy .related-time { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13px; }
.related-time .ui-icon { width: 16px; height: 16px; }
.related-copy .related-time-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.related-open { display: inline-flex; gap: 12px; align-items: center; color: #ad007f; font-size: 12px; font-weight: 600; margin-top: 16px; }
.related-link:hover h3 { color: #ad007f; }
.related-link:hover .related-photo img { transform: scale(1.025); }
@media (max-width: 700px) {
  .detail .related-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 18px; scrollbar-width: thin; scrollbar-color: #bfc1c8 transparent; }
  .related-trail { scroll-snap-align: start; scroll-snap-stop: normal; }
  .related-link { gap: 16px; }
  .related-link:focus-visible { outline-offset: -3px; }
  .related-photo { width: 100%; }
  .detail .related-copy h3 { font-size: 18px; }
  .related-level { gap: 6px; }
}
.general-safety { max-width: 780px; margin-bottom: 32px; }
.general-safety .safety { margin-top: 12px; }
.detail-content p { line-height: 1.75; }
.detail-content .trail-warning p:last-child { margin-bottom: 0; }
.facts-scope { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.detail-layout { display: block; padding: 36px 0 0; max-width: 780px; }
.detail-content section { margin-bottom: 30px; }
.detail-content h2 { font-size: 25px; margin-bottom: 14px; }
.detail-content h3 { font-size: 16px; margin-bottom: 10px; }
.route-summary > p { max-width: 730px; }
.trail-warning { padding: 16px 20px; margin-bottom: 30px; border-left-width: 2px; }
.trail-warning h2 { font-size: 17px; margin-bottom: 10px; }
.trail-warning p { color: #45474e; margin-bottom: 10px; }
.detail-content summary { padding: 16px 0; }
.detail-pulse-host { position: relative; }
.detail-pulse-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #e000a8; transform-origin: left; pointer-events: none; }
.share-actions .primary .detail-pulse-line { background: #ff9de6; bottom: 3px; left: 12px; right: 12px; }
.transport-tabs { display: flex; gap: 8px; padding: 5px; background: #f1f2f4; border-radius: 6px; max-width: 470px; }
.transport-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 14px; flex: 1; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #62646b; font-size: 12px; font-weight: 600; }
.transport-tabs button[aria-selected="true"] { background: #fff; border-color: #dedee3; color: #141519; }
.transport-panel { padding: 20px 0 10px; }
.transport-panel p { margin: 0; }
.return-note { border-top: 1px solid var(--line); padding-top: 18px; }
.return-note p { margin-bottom: 0; }
.detail-content .map-link { gap: 10px; }
.compact-share { position: static; border-block: 1px solid var(--line); padding: 24px 0; margin: 0 0 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.compact-share h2 { font-size: 20px; margin: 0; }
.share-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.compact-share .primary { width: auto; }
.compact-share .text-button { width: auto; margin: 0; }
.share-actions .share-status { flex-basis: 100%; margin: 0; font-size: 12px; }
.share-status:empty { display: none; }
.detail .safety { max-width: 780px; }
@media (max-width: 700px) {
  .detail { width: calc(100% - 40px); padding-top: 18px; }
  .detail .breadcrumbs { margin-bottom: 18px; font-size: 10px; }
  .detail-heading h1 { font-size: 32px; line-height: 1.14; }
  .detail-heading .lead { font-size: 14px; line-height: 1.6; }
  .detail-heading .level-line { font-size: 11px; margin-bottom: 14px; }
  .detail-heading { padding-bottom: 20px; }
  .detail-actions { gap: 10px; }
  .detail-actions a { flex: 1; padding-inline: 12px; font-size: 12px; gap: 9px; }
  .detail-photo > img, .detail-photo img[src$="llao-llao.webp"] { height: 260px; object-position: center 55%; }
  .detail-photo { margin-bottom: 20px; }
  .facts-band { padding: 20px 0; }
  .compact-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .difficulty-fact { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .difficulty-fact dd { font-size: 20px; }
  .compact-facts dt { font-size: 10px; gap: 7px; align-items: flex-start; line-height: 1.5; }
  .compact-facts dt .ui-icon { width: 17px; height: 17px; }
  .compact-facts dd { font-size: 24px; text-align: left; }
  .compact-facts p { font-size: 11px; }
  .time-fact { padding-left: 16px; }
  .facts-scope { font-size: 11px; margin-top: 12px; }
  .detail-layout { padding-top: 28px; }
  .detail-content h2 { font-size: 23px; }
  .trail-warning h2 { font-size: 17px; }
  .transport-tabs { gap: 4px; }
  .transport-tabs button { padding-inline: 9px; font-size: 11px; gap: 6px; }
  .transport-panel { padding-top: 18px; }
  .compact-share { display: block; padding: 22px 0; }
  .compact-share h2 { font-size: 19px; margin-bottom: 16px; }
  .share-actions { gap: 12px; }
  .compact-share .primary { width: 100%; }
  .compact-share .text-button { padding: 8px 0; }
}
