/* Map controls belong to the field guide; Google's canvas/credits stay intact. */
.trip-map-stage [hidden] { display: none !important; }
.trip-map-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0 16px; }
.trip-map-toolbar > strong { margin-right: auto; color: #244936; font-size: 14px; }
.trip-map-toolbar > strong span { color: #778579; font-weight: 400; }
.trip-map-toolbar > button { border: 1px solid #b5c4b6; background: #f5f3ed; border-radius: 8px; padding: 10px 12px; color: #315640; font-size: 11px; min-height: 40px; }
#tripMapBack, #tripMapPanel { display: none; }
.panel-collapsed .trip-map-sidebar { display: none; }
.trip-map-pane.panel-collapsed .trip-map-workspace { grid-template-columns: minmax(0, 1fr); }
.slide-map-mount { min-width: 0; height: 100%; border: 1px solid #a8c3b344; border-radius: 16px; overflow: hidden; background: #dae6de; }
.slide-map-mount .trip-map-stage { height: 100%; min-height: 0; color: #294c38; }
.slide-map-mount .trip-map-mapbar { min-height: 56px; flex-wrap: wrap; }
.slide-map-mount .trip-map-mapbar span { margin-right: auto; }
.slide-map-mount .trip-map-mapbar button { font: 650 11px var(--ui); cursor: pointer; }
.slide-map-mount .trip-map-mapbar button:last-child { background: #254b3a; color: #fff; }
.slide-map-note { color: var(--mist); font: 10px/1.5 var(--ui); margin: 12px 0 0; }
.route-stage:has(.slide-map-mount) { transform: none !important; clip-path: none !important; opacity: 1; height: min(640px, 67svh); }
.route-scene .route-copy .display { font-size: clamp(44px, 5vw, 84px); line-height: 1.02; }
.slide-map-scene { background: #0b1712; }
.slide-map-scene .scene-inner { display: grid; grid-template-columns: minmax(0, .76fr) minmax(420px, 1.24fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.slide-map-scene header { min-width: 0; }
.slide-map-scene .display { max-width: 11ch; margin: 20px 0; font-size: clamp(50px, 5.5vw, 90px); overflow-wrap: anywhere; }
.day-cover-marker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--mist); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.day-cover-marker b { display: grid; place-items: center; min-width: 74px; min-height: 32px; padding: 0 12px; border: 1px solid var(--glacier); border-radius: 999px; color: var(--glacier); font-size: 11px; }
.day-cover-collage { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 14px; height: min(680px, 72svh); min-height: 440px; }
.day-cover-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 16px; background: #163126; }
.day-cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #0b171280); }
.day-cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-cover-collage .slide-map-mount { height: 100%; }
.field-guide.map-fullscreen .guide-shell { display: block; }
.field-guide.map-fullscreen :is(.guide-nav, .close-guide) { display: none; }
.field-guide.map-open.map-fullscreen .guide-content { padding: 0; height: 100%; overflow: hidden; }
.trip-map-pane .trip-map-toolbar > button { font: 600 11px var(--ui); }
.map-fullscreen .trip-map-pane { max-width: none; height: 100%; display: flex; flex-direction: column; }
.map-fullscreen .trip-map-heading { display: none; }
.map-fullscreen .trip-map-toolbar { flex: 0 0 auto; padding: 12px 20px; border-bottom: 1px solid #bbc9ba; background: #f4f4eb; }
.map-fullscreen .trip-map-actions { margin: 0; }
.map-fullscreen .trip-map-actions button { white-space: nowrap; min-height: 40px; padding: 8px 14px; }
.map-fullscreen :is(#tripMapBack, #tripMapPanel) { display: block; }
.map-fullscreen .trip-map-days { flex: 0 0 auto; padding: 10px 16px; margin: 0; background: #e6ede2; }
.map-fullscreen .trip-map-workspace { flex: 1; min-height: 0; grid-template-columns: 320px minmax(0, 1fr); border: 0; border-radius: 0; }
.map-fullscreen .trip-map-stage { grid-column: 2; grid-row: 1; height: 100%; min-height: 0; max-height: none; }
.map-fullscreen .trip-map-sidebar { grid-column: 1; grid-row: 1; height: 100%; min-height: 0; max-height: none; overflow-y: auto; border: 0; border-right: 1px solid #b8c4b8; }
.map-fullscreen .trip-map-places { max-height: none; overflow: visible; }
.map-fullscreen .panel-collapsed .trip-map-stage { grid-column: 1; }
.map-fullscreen :is(.trip-map-routes, .trip-map-footer, #tripMapExpand) { display: none; }
.map-fullscreen .trip-map-sidebar::after { content: 'Vet intake is not live. Call first. Driving estimates exclude stops and ferry waits.'; display: block; font-size: 10px; color: #697767; padding-top: 20px; line-height: 1.6; }
@media (max-width: 900px) {
  .slide-map-scene .scene-inner { grid-template-columns: 1fr; gap: 24px; }
  .slide-map-scene .display { font-size: 50px; }
  .day-cover-collage { height: 58svh; min-height: 340px; }
  .map-fullscreen .trip-map-workspace { position: relative; display: block; }
  .map-fullscreen .trip-map-sidebar { position: absolute; inset: 0 auto 0 0; width: min(320px, 85vw); z-index: 3; background: #f5f3ed; box-shadow: 12px 0 32px #16352230; }
  .map-fullscreen .trip-map-toolbar { padding: 8px 12px; gap: 6px; }
  .map-fullscreen .trip-map-toolbar > strong { width: 100%; font-size: 12px; }
  .map-fullscreen .trip-map-toolbar > button, .map-fullscreen .trip-map-actions button { font-size: 10px; padding: 8px; }
  .map-fullscreen .trip-map-days button { flex: 0 0 auto; }
}
.field-guide.map-open .guide-content { padding: 58px 26px 32px; }
.trip-map-pane { max-width: 1600px; }
.trip-map-pane [hidden] { display: none !important; }
.trip-map-pane button, .trip-map-pane input, .trip-map-pane select { font: inherit; }
.trip-map-pane button { cursor: pointer; }
.trip-map-pane button:disabled { cursor: default; opacity: .55; }
.trip-map-pane :is(button, input, select, summary, a):focus-visible { outline: 3px solid #237d76; outline-offset: 3px; }
.trip-map-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 8px 24px; }
.trip-map-heading h2 { font-size: clamp(38px, 4.4vw, 68px); margin: 12px 0; }
.trip-map-heading p { color: #59695f; font-size: 12px; margin: 0; }
.trip-map-edition { text-align: right; font-size: 8px; font-weight: 700; letter-spacing: .15em; line-height: 1.8; color: #547066; white-space: nowrap; }
.trip-map-days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 3px 14px; scrollbar-width: thin; }
.trip-map-days button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 0 auto; border: 1px solid #bdc6bc; border-radius: 9px; min-height: 45px; padding: 8px 12px; background: transparent; color: #35493e; font-size: 11px; font-weight: 700; }
.trip-map-days button[aria-pressed="true"] { background: #173c32; color: #fff; border-color: #173c32; box-shadow: 0 3px 8px #173c3218; }
.trip-map-days small { font-size: 8px; font-weight: 400; opacity: .8; }
.trip-map-days i { width: 7px; height: 7px; border-radius: 50%; background: var(--day-color); box-shadow: 0 0 0 2px #fff; }
.trip-map-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; border: 1px solid #b8c4b8; border-radius: 18px; overflow: hidden; background: #f5f3ed; }
.trip-map-stage { min-width: 0; position: relative; height: min(72svh, 800px); min-height: 460px; display: flex; flex-direction: column; }
.trip-map-canvas { width: 100%; flex: 1; min-height: 0; background: #d4e2da; }
.trip-map-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: radial-gradient(ellipse at 25% 10%, #c5dcd2, transparent 65%), repeating-radial-gradient(ellipse at 110% 120%, transparent 0 24px, #517f6920 25px 26px, transparent 27px 47px), #dde5d9; }
.trip-map-compass { width: 70px; height: 70px; border: 1px solid #729d89; outline: 1px solid #729d8950; outline-offset: 8px; border-radius: 50%; display: grid; place-items: center; font: 36px var(--serif); color: #2b6354; margin-bottom: 32px; }
.trip-map-placeholder h3 { font: 400 clamp(35px, 4vw, 60px)/1 var(--serif); letter-spacing: -.04em; color: #254737; margin: 18px 0; }
.trip-map-placeholder p { max-width: 330px; font-size: 12px; color: #456253; line-height: 1.7; }
.trip-map-placeholder button { border: 0; border-radius: 99px; background: #244b3c; color: white; padding: 13px 22px; margin-top: 10px; font-size: 11px; }
.trip-map-mapbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #e4e9e0; border-top: 1px solid #b8c4b8; color: #48604e; font-size: 9px; }
.trip-map-mapbar button { background: #fff9; border: 1px solid #b3c4b5; border-radius: 7px; min-height: 34px; padding: 6px 12px; color: #284638; font-weight: 700; white-space: nowrap; }
.trip-map-sidebar { min-width: 0; overflow-y: auto; max-height: min(72svh, 800px); min-height: 460px; padding: 18px; border-left: 1px solid #b8c4b8; scrollbar-width: thin; }
.trip-map-controls > summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; min-height: 28px; }
.trip-map-controls > summary::after { content: '+'; }
.trip-map-controls[open] > summary::after { content: '−'; }
.trip-map-controls > summary span { margin-left: auto; padding-right: 10px; color: #6a776c; font-size: 9px; font-weight: 400; }
.trip-map-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; border-bottom: 1px solid #ced6cb; padding: 12px 0 16px; margin: 8px 0 12px; }
.trip-map-layers legend { font-size: 9px; color: #69776c; }
.trip-map-layers label, .trip-map-place-controls label { display: flex; align-items: center; gap: 6px; font-size: 10px; line-height: 1.35; cursor: pointer; min-height: 30px; }
.trip-map-layers input, .trip-map-place-controls input { width: 15px; height: 15px; flex: 0 0 15px; accent-color: #2b6e58; }
.trip-map-category-icon { color: #315e51; font: 700 14px var(--ui); }
.trip-map-category-icon.er { color: #a83e48; }
.trip-map-category-icon.vet { color: #aa742d; }
.trip-map-camps { font-size: 11px; }
.trip-map-camps summary { cursor: pointer; padding: 5px 0 10px; }
.trip-map-camps p { color: #69776c; font-size: 10px; line-height: 1.5; }
.trip-map-camps label { display: grid; gap: 6px; margin: 12px 0; font-size: 10px; }
.trip-map-camps select { min-height: 36px; width: 100%; border: 1px solid #c0cbbd; border-radius: 6px; background: #fff; color: #294137; padding: 6px; }
.trip-map-actions { display: flex; gap: 8px; margin-top: 14px; }
.trip-map-actions button { flex: 1; padding: 10px 6px; border: 1px solid #bbc8b9; background: transparent; color: #365747; border-radius: 7px; font-size: 10px; }
.trip-map-actions button:first-child { color: #fff; background: #244b3c; border-color: #244b3c; }
.trip-map-save { color: #596d5f; font-size: 9px; line-height: 1.5; min-height: 27px; }
#tripMapShareFallback { margin-block: 12px; font-size: 11px; }
#tripMapShareInput { display: block; width: 100%; min-width: 0; margin-top: 8px; }
.trip-map-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 20px; border-top: 1px solid #c8d1c3; padding-top: 18px; }
.trip-map-list-heading h3 { font: 400 22px var(--serif); letter-spacing: -.02em; margin: 0; }
.trip-map-list-heading > span { white-space: nowrap; color: #647867; font-size: 9px; }
.trip-map-hint { font-size: 10px; line-height: 1.6; color: #687669; }
.trip-map-place { border-bottom: 1px solid #d7ded1; padding: 13px 6px; border-left: 3px solid transparent; }
.trip-map-place.on-route { border-left-color: #8ba894; padding-left: 10px; }
.trip-map-place.selected { background: #e2ebdf; border-radius: 8px; }
.trip-map-place-top { display: flex; gap: 10px; align-items: baseline; }
.trip-map-place-top button { border: 0; background: none; padding: 0; text-align: left; color: #244936; font-size: 12px; line-height: 1.45; font-weight: 650; }
.trip-map-place-meta { color: #788477; font-size: 9px; line-height: 1.5; margin-top: 5px; }
.trip-map-place-meta b { color: #456a4f; font-weight: 600; }
.trip-map-place-controls { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-top: 5px; }
.trip-map-place-controls label { font-size: 9px; }
.trip-map-pin-status { display: block; color: #915931; font-size: 9px; line-height: 1.5; }
.trip-map-detail { position: relative; background: #fffdf7; border: 1px solid #a7b99e; border-radius: 12px; padding: 20px 14px 16px; margin: 16px 0; box-shadow: 0 8px 24px #344d3810; }
.trip-map-detail h3 { font: 400 25px/1.1 var(--serif); margin: 8px 24px 12px 0; }
.trip-map-detail p { font-size: 11px; line-height: 1.6; color: #526653; }
.trip-map-detail small { display: block; font-size: 9px; line-height: 1.5; color: #6a7666; margin-top: 12px; }
.trip-map-detail .vet-card, .trip-map-detail .activity-card { border: 0; background: none; padding: 0; }
.trip-map-detail-close { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #e8eddf; color: #355b44; font-size: 20px !important; }
.trip-map-routes { margin: 28px 0; }
.trip-map-routes > header { display: flex; align-items: baseline; gap: 24px; justify-content: space-between; padding-inline: 8px; }
.trip-map-routes h3 { font: 400 32px var(--serif); margin: 0; letter-spacing: -.035em; }
.trip-map-routes header p { max-width: 400px; color: #627061; font-size: 10px; line-height: 1.6; }
#tripMapRoutes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
#tripMapRoutes > article { background: #f5f3eb; border: 1px solid #ccd2c5; border-radius: 12px; padding: 18px; }
.trip-map-route-title { display: flex; gap: 10px; align-items: center; }
.trip-map-route-title > span { border-radius: 50%; width: 28px; height: 28px; flex: 0 0 28px; background: var(--day-color); color: white; display: grid; place-items: center; font-size: 10px; }
.trip-map-route-title h4 { font-size: 12px; margin: 0; }
#tripMapRoutes p { font-size: 10px; color: #697568; line-height: 1.6; }
#tripMapRoutes .trip-map-estimate { color: #36583e; font-weight: 650; font-size: 11px; }
.trip-map-directions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trip-map-directions a, .trip-map-directions button, #tripMapRoutes small { font-size: 9px; line-height: 1.6; color: #315f44; }
#tripMapRoutes small { display: block; margin-top: 12px; }
.trip-map-footer { padding: 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; color: #697767; font-size: 10px; line-height: 1.7; }
.trip-map-footer a { text-decoration: underline; text-underline-offset: 3px; }
.trip-map-pin { background: var(--pin-color, #365d50); color: white; border: 2px solid white; border-radius: 50% 50% 50% 6px; transform: rotate(-10deg); min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 5px; font: 700 11px system-ui; box-shadow: 0 2px 6px #0004; }
.trip-map-pin.is-selected { outline: 3px solid #e4b965; outline-offset: 3px; }
@media (max-width: 1150px) {
  .trip-map-workspace { grid-template-columns: minmax(0, 1fr) 290px; }
  .trip-map-days small { display: none; }
  .trip-map-edition { display: none; }
}
@media (max-width: 900px) {
  .field-guide.map-open .guide-content { padding: 24px 16px; }
  .trip-map-workspace { grid-template-columns: 1fr; }
  .trip-map-stage { height: 52svh; min-height: 330px; max-height: 540px; }
  .trip-map-sidebar { max-height: none; min-height: 0; overflow: visible; border-left: 0; border-top: 1px solid #b8c4b8; padding: 18px; }
  .trip-map-places { max-height: 55svh; overflow-y: auto; scrollbar-width: thin; }
  .trip-map-heading { padding: 6px 2px 18px; }
  .trip-map-heading h2 { font-size: clamp(34px, 7vw, 50px); }
  .trip-map-routes > header { display: block; }
  .trip-map-footer { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .field-guide.map-open .guide-content { padding: 20px 12px; }
  .trip-map-heading h2 { font-size: 38px; }
  .trip-map-heading p { font-size: 11px; }
  .trip-map-placeholder { padding: 24px; }
  .trip-map-compass { width: 44px; height: 44px; font-size: 26px; margin-bottom: 22px; }
  .trip-map-placeholder h3 { font-size: 36px; margin: 12px 0; }
  .trip-map-placeholder p { font-size: 11px; }
  #tripMapRoutes { grid-template-columns: 1fr; }
  .trip-map-days button { min-height: 44px; }
}
