:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --surface: #fff;
  --ink: #101827;
  --muted: #68707d;
  --line: #e6e7e4;
  --red: #e3523d;
  --blue: #3478f6;
  --moss: #4e7565;
  --navy: #17243c;
  --shadow: 0 12px 38px rgba(16,24,39,.09);
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #d9dce0; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button, a, summary, label, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(52,120,246,.42); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10000; left: 12px; top: -80px; padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }

#app { width: 100%; min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 18px calc(116px + env(safe-area-inset-bottom)); overflow: hidden; }
.tab-view { width: min(100%, 560px); margin: 0 auto; }
.app-header, .screen-header { position: relative; padding: 17px 2px 22px; }
.app-header h1, .screen-header h1 { margin: 2px 0 0; font-size: clamp(2.1rem, 9vw, 3.1rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 760; }
.date-label, .screen-header p { margin: 0; color: var(--red); font-size: .82rem; line-height: 1.3; font-weight: 700; }
.avatar { position: absolute; right: 0; bottom: 21px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--navy); font-size: .76rem; font-weight: 750; }
.screen-header span { display: block; margin-top: 9px; color: var(--muted); font-size: .92rem; }

.hero-card { position: relative; min-height: 280px; padding: 26px; overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(145deg, #12223e 0%, #243c63 64%, #935447 145%); box-shadow: 0 18px 45px rgba(18,34,62,.23); }
.hero-card::after { content: ""; position: absolute; right: -88px; top: -72px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 48px rgba(255,255,255,.025); }
.hero-card > p { position: relative; z-index: 1; margin: 0 0 12px; color: #f0b882; font-size: .76rem; font-weight: 750; }
.hero-card h2 { position: relative; z-index: 1; max-width: 290px; margin: 0; font-size: clamp(2.5rem, 12vw, 4.2rem); line-height: .96; letter-spacing: -.055em; }
.hero-card > span { position: relative; z-index: 1; display: block; max-width: 330px; margin-top: 15px; color: rgba(255,255,255,.73); font-size: .92rem; line-height: 1.45; }
.route-stamp { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 23px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.route-stamp b { font-size: .78rem; letter-spacing: .08em; }
.route-stamp i { height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 5px, transparent 5px 9px); }
.route-stamp small { grid-column: 1 / -1; color: rgba(255,255,255,.58); font-size: .68rem; }

.section-block { margin-top: 31px; }
.section-title { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-title h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.section-title button, .section-title > span { min-height: 40px; border: 0; color: var(--blue); background: transparent; font-size: .85rem; font-weight: 650; }
.day-focus, .next-card, .progress-card { display: grid; align-items: center; margin-top: 5px; padding: 17px; border: 1px solid rgba(16,24,39,.045); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 24px rgba(16,24,39,.055); }
.day-focus { grid-template-columns: 53px 1fr auto; gap: 14px; }
.date-tile { width: 53px; height: 58px; display: grid; place-content: center; text-align: center; border-radius: 15px; color: #fff; background: var(--red); }
.date-tile strong { font-size: 1.28rem; line-height: 1; }
.date-tile span { margin-top: 3px; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.day-focus small, .next-card span { color: var(--red); font-size: .7rem; font-weight: 720; }
.day-focus h3, .next-card h3, .progress-card h3 { margin: 3px 0; font-size: 1rem; letter-spacing: -.015em; }
.day-focus p, .next-card p, .progress-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.chevron { color: #a4a8af; font-size: 1.55rem; }
.next-card { grid-template-columns: 1fr 48px; gap: 16px; }
.transport-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--blue); background: #ebf2ff; font-size: 1.25rem; font-weight: 700; }
.progress-card { grid-template-columns: 58px 1fr; gap: 17px; }
.progress-ring { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--moss) var(--progress), #e8ece8 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; z-index: 1; font-size: .68rem; font-weight: 750; }

.chip-row { display: flex; gap: 8px; margin: 1px -18px 20px; padding: 0 18px 4px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; flex: 0 0 auto; padding: 8px 15px; border: 1px solid #d8dadc; border-radius: 999px; background: rgba(255,255,255,.62); font-size: .8rem; font-weight: 630; }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--navy); background: var(--navy); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 31px; bottom: 31px; left: 26px; width: 1px; background: #d9dcdd; }
.timeline-day { position: relative; margin: 0 0 10px; border: 1px solid transparent; border-radius: 19px; background: transparent; }
.timeline-day[open] { border-color: var(--line); background: #fff; box-shadow: 0 9px 28px rgba(16,24,39,.055); }
.timeline-day summary { min-height: 86px; display: grid; grid-template-columns: 54px 1fr 28px; gap: 14px; align-items: center; padding: 11px 12px 11px 0; cursor: pointer; list-style: none; }
.timeline-day summary::-webkit-details-marker { display: none; }
.timeline-day time { position: relative; z-index: 1; width: 53px; height: 58px; display: grid; place-content: center; text-align: center; border: 6px solid var(--paper); border-radius: 17px; background: #e6e7e4; }
.timeline-day[open] time { color: #fff; border-color: #fff; background: var(--red); }
.timeline-day time b { font-size: 1.18rem; line-height: 1; }
.timeline-day time span { margin-top: 2px; font-size: .6rem; font-weight: 700; text-transform: uppercase; }
.timeline-day small { color: var(--red); font-size: .67rem; font-weight: 720; }
.timeline-day h2 { margin: 3px 0 2px; font-size: .99rem; line-height: 1.2; }
.timeline-day summary p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.3; }
.disclosure { width: 27px; height: 27px; display: grid; place-items: center; color: var(--blue); font-size: 1.2rem; transition: transform .18s ease; }
.timeline-day[open] .disclosure { transform: rotate(45deg); }
.day-detail { margin: 0 14px 16px 68px; padding-top: 13px; border-top: 1px solid var(--line); }
.day-detail > p { margin: 0; color: #3f4754; font-size: .87rem; line-height: 1.5; }
.day-detail aside { margin-top: 12px; padding: 10px 12px; border-radius: 12px; color: #6a542b; background: #faf3df; font-size: .76rem; line-height: 1.4; }
.map-day-button { width: 100%; min-height: 46px; margin-top: 13px; border: 0; border-radius: 13px; color: #fff; background: var(--navy); font-size: .82rem; font-weight: 690; }
.route-overview { margin-top: 42px; }
.route-overview > h2 { margin: 0 0 16px; font-size: 1.25rem; }
.route-overview article { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.route-overview article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: .7rem; font-weight: 750; }
.route-overview small { color: var(--red); font-size: .68rem; font-weight: 700; }
.route-overview h3 { margin: 2px 0; font-size: .95rem; }
.route-overview p { margin: 0; color: var(--muted); font-size: .76rem; }

.social-header h1 { letter-spacing: -.065em; }
.social-hero { position: relative; display: grid; grid-template-columns: 1fr 42px; gap: 14px; min-height: 190px; margin: 2px 0 22px; padding: 23px; overflow: hidden; border-radius: 25px; color: #fff; background: linear-gradient(135deg, #214c63 0%, #2e756e 58%, #d28a53 145%); box-shadow: 0 15px 35px rgba(33,76,99,.2); }
.social-hero::after { content: ""; position: absolute; right: -58px; bottom: -92px; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.06), 0 0 0 44px rgba(255,255,255,.04); }
.social-hero > div { position: relative; z-index: 1; }
.social-hero > div > span { color: #d9f0da; font-size: .72rem; font-weight: 750; }
.social-hero h2 { max-width: 330px; margin: 8px 0 9px; font-size: 1.55rem; line-height: 1.03; letter-spacing: -.04em; }
.social-hero p { max-width: 360px; margin: 0; color: rgba(255,255,255,.77); font-size: .82rem; line-height: 1.42; }
.social-hero-mark { position: relative; z-index: 1; align-self: start; justify-self: end; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; color: #fff; font-size: 1.1rem; }
.social-controls { margin: 0 -18px 11px; padding: 0 18px; }
.social-controls .chip-row { margin-inline: 0; margin-bottom: 7px; padding-inline: 0; }
.social-controls .chip-row:last-child { margin-bottom: 0; }
.social-summary { display: grid; grid-template-columns: 115px 1fr; gap: 13px; align-items: center; margin: 17px 0 18px; padding: 14px 15px; border-radius: 17px; background: #eaf1ed; }
.social-summary strong { display: block; color: var(--moss); font-size: 1.6rem; line-height: 1; letter-spacing: -.05em; }
.social-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.social-summary p { margin: 0; color: #4d5c57; font-size: .75rem; line-height: 1.4; }
.social-grid { display: grid; gap: 13px; }
.social-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 27px rgba(16,24,39,.055); }
.social-card.is-saved { border-color: #91b4a2; background: linear-gradient(180deg, #fff 0%, #f1f8f3 100%); }
.social-card-top, .social-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.social-type { color: var(--moss); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.save-social { min-height: 38px; margin: -8px -8px 0 0; padding: 6px 9px; border: 1px solid #cfded4; border-radius: 10px; color: var(--moss); background: transparent; font-size: .7rem; font-weight: 720; }
.social-card-heading { align-items: center; margin-top: 12px; }
.social-card-heading small { color: var(--red); font-size: .67rem; font-weight: 720; }
.social-card-heading h2 { margin: 4px 0 0; font-size: 1.14rem; line-height: 1.12; letter-spacing: -.025em; }
.social-score { min-width: 54px; padding: 8px 7px; border-radius: 12px; color: #fff; background: var(--navy); font-size: .68rem; line-height: 1.1; text-align: center; }
.social-hook { margin: 13px 0; color: #394b50; font-size: .82rem; font-weight: 600; line-height: 1.42; }
.social-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 13px; border-radius: 14px; background: #f4f6f4; }
.social-facts div { min-width: 0; }
.social-facts dt { color: var(--muted); font-size: .62rem; font-weight: 700; }
.social-facts dd { margin: 2px 0 0; color: var(--ink); font-size: .73rem; line-height: 1.32; }
.social-note { margin: 13px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.42; }
.social-note strong { color: var(--ink); }
.social-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.social-actions a { min-height: 38px; display: inline-flex; align-items: center; color: var(--blue); font-size: .73rem; font-weight: 700; text-decoration: none; }
.social-actions a::after { content: "↗"; margin-left: 5px; }
.social-sources { margin-top: 30px; }
.social-sources .section-title { margin-bottom: 8px; }
.source-links { display: grid; gap: 8px; }
.source-links a { display: grid; gap: 2px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); text-decoration: none; }
.source-links a::after { content: "↗"; position: absolute; right: 15px; color: var(--blue); }
.source-links a { position: relative; padding-right: 35px; }
.source-links strong { font-size: .8rem; }
.source-links small { color: var(--muted); font-size: .7rem; line-height: 1.3; }
.social-sources .section-title > span { color: var(--moss); font-size: .72rem; font-weight: 700; }
.social-guidelines { margin-top: 17px; padding: 17px; border-radius: 16px; color: #fff; background: var(--navy); }
.social-guidelines strong { color: #f1b07c; font-size: .8rem; }
.social-guidelines p { margin: 7px 0 0; color: rgba(255,255,255,.75); font-size: .75rem; line-height: 1.45; }

.map-heading { padding-bottom: 15px; }
.active-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 14px 14px 14px 16px; border-radius: 16px; color: #fff; background: var(--navy); }
.active-route small { display: block; margin-bottom: 3px; color: #f1b07c; font-size: .67rem; }
.active-route strong { font-size: .86rem; }
.active-route button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; color: #fff; background: transparent; font-size: 1.55rem; }
.map-toolbar .chip-row { margin-bottom: 8px; }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 0 14px; }
.filter-row label { min-width: 0; }
.filter-row label > span { display: block; margin: 0 0 5px 3px; color: var(--muted); font-size: .62rem; font-weight: 650; }
.filter-row select { width: 100%; height: 42px; padding: 0 27px 0 10px; border: 1px solid #d9dbdd; border-radius: 12px; color: var(--ink); background: #fff; font-size: .75rem; }
.licence-note { display: grid; gap: 7px; margin: 0 0 15px; padding: 15px; border: 1px solid #d8e2da; border-radius: 16px; background: #eef5ef; }
.licence-note strong { color: var(--moss); font-size: .8rem; }
.licence-note p { margin: 0; color: #4d5c57; font-size: .73rem; line-height: 1.42; }
.licence-note a { min-height: 38px; display: inline-flex; align-items: center; color: var(--blue); font-size: .73rem; font-weight: 700; text-decoration: none; }
#spot-map { height: min(48svh, 410px); min-height: 320px; margin: 0 -18px; overflow: hidden; border-block: 1px solid #d4d8da; background: #dce3df; }
.map-loading { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .82rem; }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 8px !important; }
.map-marker-wrap { background: transparent; border: 0; }
.map-marker { width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 9px; color: #fff; background: var(--marker); box-shadow: 0 4px 12px rgba(16,24,39,.3); transform: rotate(-45deg); font-size: .67rem; font-weight: 800; }
.map-marker::first-line { transform: rotate(45deg); }
.marker-cluster { display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: rgba(23,36,60,.88); box-shadow: 0 4px 14px rgba(16,24,39,.28); backdrop-filter: blur(5px); }
.marker-cluster span { font-size: .72rem; font-weight: 780; }
.leaflet-popup-content { min-width: 150px; margin: 15px 17px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.leaflet-popup-content strong, .leaflet-popup-content span, .leaflet-popup-content a { display: block; }
.leaflet-popup-content strong { margin-bottom: 3px; font-size: .88rem; }
.leaflet-popup-content span { color: var(--muted); font-size: .7rem; }
.leaflet-popup-content a { margin-top: 10px; color: var(--blue); font-size: .74rem; font-weight: 650; text-decoration: none; }
.spot-list { padding-top: 25px; }
.spot-list .section-title > span { min-width: 33px; display: grid; place-items: center; color: var(--muted); border-radius: 99px; background: #e9eae8; }
.spot-card { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.spot-status { width: 28px; height: 28px; margin-top: 2px; border: 1.5px solid #afb4b8; border-radius: 50%; background: transparent; }
.spot-status.is-done { color: #fff; border-color: var(--moss); background: var(--moss); font-size: .76rem; font-weight: 800; }
.spot-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .64rem; font-weight: 650; }
.spot-meta i { width: 3px; height: 3px; border-radius: 50%; background: #acb0b5; }
.spot-meta b { margin-left: auto; padding: 3px 7px; border-radius: 99px; color: #a8382a; background: #fbe8e4; font-size: .58rem; }
.spot-card h3 { margin: 4px 0; font-size: 1rem; }
.spot-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.spot-card a { display: inline-block; min-height: 38px; padding-top: 10px; color: var(--blue); font-size: .76rem; font-weight: 650; text-decoration: none; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); }
.empty-state p { margin: 0; font-size: .82rem; }

.check-progress { height: 5px; margin: 1px 0 29px; overflow: hidden; border-radius: 99px; background: #e1e4e1; }
.check-progress > div { height: 100%; border-radius: inherit; background: var(--moss); transition: width .2s ease; }
.check-group { margin-bottom: 31px; }
.check-group h2 { margin: 0 0 8px; font-size: 1.17rem; }
.check-row { position: relative; min-height: 68px; display: grid; grid-template-columns: 29px 1fr; gap: 13px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 27px; height: 27px; display: grid; place-items: center; border: 1.5px solid #aeb3b6; border-radius: 9px; color: transparent; font-size: .75rem; font-weight: 800; }
.check-row input:checked + .custom-check { color: #fff; border-color: var(--moss); background: var(--moss); }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: .88rem; line-height: 1.35; }
.check-row small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.check-row input:checked ~ span strong { color: #7d838a; text-decoration: line-through; }
.travel-note { padding: 18px; border-radius: 18px; color: #fff; background: var(--navy); }
.travel-note strong { color: #f2b27f; font-size: .75rem; }
.travel-note p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: .8rem; line-height: 1.45; }

body::after { content: ""; position: fixed; z-index: 999; right: 0; bottom: 0; left: 0; height: calc(100px + env(safe-area-inset-bottom)); pointer-events: none; background: linear-gradient(180deg, transparent 0%, var(--paper) 48%, var(--paper) 100%); }
.tab-bar { position: fixed; z-index: 1000; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 540px; min-height: 68px; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(248,249,247,.82); box-shadow: 0 14px 45px rgba(16,24,39,.19); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); transform: translateX(-50%); }
.tab-bar button { min-width: 0; min-height: 52px; display: grid; place-content: center; gap: 2px; border: 0; border-radius: 17px; color: #7b818a; background: transparent; }
.tab-bar button[aria-current="page"] { color: var(--blue); background: rgba(255,255,255,.68); }
.tab-bar svg { width: 23px; height: 23px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-bar button:first-child svg { fill: currentColor; stroke-width: 1.2; }
.tab-bar span { font-size: .63rem; font-weight: 650; }

noscript { display: block; padding: 40px 20px; text-align: center; }

@media (min-width: 620px) {
  body { width: 600px; margin: 24px auto; min-height: calc(100svh - 48px); border-radius: 34px; box-shadow: 0 25px 80px rgba(16,24,39,.17); overflow-x: hidden; }
  #app { min-height: calc(100svh - 48px); }
  #spot-map { margin-inline: 0; border: 1px solid #d4d8da; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
