.field-directory { --hero-ink:#fff8ff; }
.coast-source { position:absolute; pointer-events:none; }
.field-directory .guide-heading {
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); align-items:center;
  margin-top:16px; padding:clamp(22px,3.4vw,46px) clamp(20px,4vw,56px);
  overflow:hidden; border-radius:16px 16px 0 0;
  background:linear-gradient(110deg,#282544,#483857 63%,#70505f); color:var(--hero-ink);
}
.field-directory .eyebrow { color:#ffdbb3; }
.field-directory h1 { color:inherit; margin:9px 0; font:700 clamp(2.6rem,5.4vw,4.7rem)/1 var(--title); letter-spacing:-.045em; }
.field-directory .guide-heading p { color:#f2e9f0; margin:0; max-width:46ch; }
.directory-map { width:100%; max-height:156px; }
.directory-map use { opacity:.66; }
.directory-map circle { fill:#a4f1de; stroke:#263346; stroke-width:.65; }
.field-directory .guide-search { border-radius:0 0 13px 13px; padding:clamp(14px,2vw,24px); }
.field-directory .guide-search label,.field-directory .guide-search select,.field-directory .guide-search input { min-width:0; width:100%; }
.field-directory .guide-results { margin-block:26px 14px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.field-directory .guide-results strong { font:700 1.55rem var(--title); }
.hotspot-card { --map-bg:#264842; --pin:#a2f1da; }
.hotspot-card[data-region="Europe"] { --map-bg:#433554; --pin:#dec3fb; }
.hotspot-card[data-region="Asia"],.hotspot-card[data-region="Indian"] { --map-bg:#584336; --pin:#ffcc94; }
.hotspot-card[data-region="Australia"],.hotspot-card[data-region="Pacific"] { --map-bg:#304760; --pin:#b6defe; }
.hotspot-card[data-region="Africa"] { --map-bg:#553645; --pin:#ffc1dc; }
.location-strip {
  position:relative; overflow:hidden; height:80px; color:var(--pin); background-color:var(--map-bg);
  background-image:linear-gradient(#ffffff0d 1px,transparent 1px),linear-gradient(90deg,#ffffff0d 1px,transparent 1px);
  background-size:22px 22px;
}
.location-strip svg { display:block; width:100%; height:100%; }
.location-strip use { opacity:.58; }
.locator-ring { fill:var(--map-bg); fill-opacity:.7; stroke:currentColor; stroke-width:.18; }
.locator-point { fill:currentColor; }
.field-directory .guide-card-body { width:100%; gap:6px; }
.hotspot-country,.location-time { display:inline-flex; align-items:center; gap:6px; }
.hotspot-country { color:var(--aqua); font:600 .8rem var(--sans); }
.field-directory .guide-card h2 { margin:0; font:700 1.45rem/1.17 var(--title); overflow-wrap:anywhere; }
.location-time { color:var(--muted); font-size:.8rem; overflow-wrap:anywhere; }
.hotspot-country .icon,.location-time .icon { width:14px; height:14px; flex:none; }
.coordinate-row { margin: auto 0 2px; padding-top:10px; width:100%; display:flex; justify-content:space-between; align-items:center; gap:8px; border-bottom:1px solid var(--line); padding-bottom:8px; }
.coordinate-row .coords { font-size:.84rem; }
.coordinate-row button { width:40px; height:40px; flex:none; }
.field-directory .guide-card .text-link { display:inline-flex; gap:7px; align-items:center; min-height:36px; }
.field-directory .empty { grid-column:1/-1; padding:24px; border:1px solid var(--line); border-radius:12px; }
@media(max-width:620px) {
  .field-directory .guide-heading { position:relative; isolation:isolate; display:block; }
  .directory-map { position:absolute; z-index:-1; width:58%; top:0; right:-12%; opacity:.22; }
  .field-directory .guide-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .location-strip { height:68px; }
}
@media(max-width:380px) { .field-directory .guide-search { grid-template-columns:1fr; } }

.route-card { --route-bg:#27463f; --route-ink:#9de8d3; }
.route-card[data-length="medium"] { --route-bg:#39314f; --route-ink:#d1b2f4; }
.route-card[data-length="long"] { --route-bg:#514030; --route-ink:#ffd49a; }
.route-card .trace-card { height:112px; background-color:var(--route-bg); background-size:18px 18px; }
.route-card .trace-card svg { width:100%; height:100%; }
.route-card .trace-card polyline { stroke:var(--route-ink); stroke-width:1.8; }
.route-card .trace-card circle { fill:#fff8ec; stroke:var(--route-bg); stroke-width:1; }
.route-card .trace-distance { background:#191824; color:var(--route-ink); border-radius:5px; padding:4px 8px; }
.route-card .guide-actions { margin-top:auto; }
.route-card .guide-card-body p { margin:0 0 6px; color:var(--muted); font-size:.88rem; }

.route-plate {
  width:min(100%,350px); margin:0; justify-self:end; border:1px solid #b7a6c34d; border-radius:11px; overflow:hidden;
  color:#aadfcf; background-color:#24243a;
  background-image:linear-gradient(#bdabc210 1px,transparent 1px), linear-gradient(90deg,#bdabc210 1px,transparent 1px);
  background-size:18px 18px;
}
.route-plate svg { display:block; width:100%; height:126px; }
.route-plate polyline { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; }
.route-glow { stroke-width:6; opacity:.13; }
.route-thread { stroke-width:1.8; }
.route-waypoint { fill:#bba4db; stroke:#322941; }
.route-origin { fill:#ffcf92; stroke:#413343; stroke-width:1.5; }
.guide-detail h1 { overflow-wrap:anywhere; font-size:clamp(2rem,4.2vw,3.8rem); }
.guide-detail .guide-heading { gap:18px; }
.hotspot-detail .guide-heading { background:linear-gradient(110deg,#272543,#373753 52%,#315355); }
.place-plate { width:min(100%,350px); max-height:126px; justify-self:end; border-radius:11px; background:#25443f; }
.place-plate image { opacity:.65; }
.place-plate circle { fill:#23413e; stroke:#b4eddf; stroke-width:.2; }
.place-plate circle+circle { fill:#b4eddf; }
.detail-metrics,.detail-time { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.detail-metrics span { padding:5px 9px; border-radius:6px; background:#342b49; color:#f0d9ff; font-size:.86rem; }
.detail-metrics span+span { background:#44333a; color:#ffdaa7; }
.detail-time .icon { color:#9de8d3; }
.guide-detail .detail-actions { padding:14px clamp(14px,3vw,32px); margin:0 0 22px; background:var(--panel); border:1px solid var(--line); border-radius:0 0 14px 14px; }
.guide-detail .sheet-panel { overflow:hidden; }
.guide-detail .sheet-panel .panel-head { padding:12px 18px; background:#363049; color:#f5ebff; }
.hotspot-detail .sheet-panel .panel-head { background:#264943; color:#e3fff5; }
.guide-detail .sheet-foot { padding:14px 18px; gap:12px; }
.guide-detail .track-line { stroke:#bf9fe9; }
.guide-detail .start-pin { fill:#ffd496; }
.hotspot-detail .start-pin { fill:#97efcd; }
@media(max-width:620px) {
  .guide-heading .route-plate,.guide-heading .place-plate { margin-top:15px; width:100%; }
  .guide-heading .route-plate svg,.guide-heading .place-plate { height:84px; }
  .guide-detail .detail-actions { gap:8px; }
}

.gpx-banner-art { display:block; width:min(100%,410px); height:auto; justify-self:end; }
@media(max-width:620px) {
  .guide-heading:has(.gpx-banner-art) { display:grid; gap:10px; grid-template-columns:1fr; }
  .gpx-banner-art { width:min(72%,220px); justify-self:center; }
}

.field-directory .guide-heading:has(.directory-map) { border-radius:16px; }
