/* Brand colours: the only values that differ between the map sites */
:root {
    --brand: #0b4f6c;
    --brand-dark: #073447;
    --brand-light: #e6f0f4;
    --accent: #f2a541;
    --accent-dark: #c97d14;
    --route: #d7263d;
}

:root {
    --text: #1d2329;
    --muted: #5a6670;
    --bg: #ffffff;
    --bg-alt: #f5f7f8;
    --border: #dde3e7;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(16, 30, 40, .08);
    --max: 1180px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .4em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6em 1em; z-index: 2000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 20px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo:hover { color: #fff; }
.nav-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; color: #fff; text-decoration: none; padding: 18px 12px; font-weight: 600; font-size: .95rem; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--accent); }
.dropdown-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); display: none; max-height: 75vh; overflow-y: auto; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 7px 18px; color: var(--text); text-decoration: none; font-size: .93rem; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current] { background: var(--brand-light); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-header nav { position: absolute; left: 0; right: 0; top: 100%; }
    .nav-menu { display: none; flex-direction: column; background: var(--brand-dark); padding: 8px 0 16px; max-height: calc(100vh - 60px); overflow-y: auto; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 12px 20px; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu, .dropdown.open:hover .dropdown-menu { display: block; position: static; box-shadow: none; border-radius: 0; background: rgba(255,255,255,.06); max-height: none; }
    .dropdown-menu a { color: #fff; padding-left: 34px; }
}

/* ---------------------------------------------------------------- breadcrumb, hero */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .88rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 9px 0; }
.breadcrumb li + li::before { content: '›'; margin: 0 8px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { color: var(--muted); }

.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 42px 0 36px; }
.hero--home { padding: 64px 0 54px; }
.hero .lead { font-size: 1.15rem; max-width: 760px; opacity: .93; margin: 0; }
.hero a { color: #fff; }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.top-cta { background: #fff8ec; border-bottom: 1px solid #f1dfbf; }
.top-cta .container { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.top-cta p { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-block; background: var(--accent); color: #1d1d1d; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; font-size: .95rem; line-height: 1.3; transition: background .15s; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand); }

/* ---------------------------------------------------------------- map */
.map-section { padding: 24px 0 8px; }
.map { height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); z-index: 1; background: #e8eef0; }
@media (max-width: 700px) { .map { height: 400px; } }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.legend-icon { margin-right: 5px; }
.legend-line { display: inline-block; width: 22px; height: 4px; background: var(--route); border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.map-hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.marker { background: none; border: 0; }
.marker-pin { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--brand)); box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 17px; line-height: 1; }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); }
.popup h3 { margin: 0 0 4px; font-size: 1.02rem; }
.popup p { margin: 0 0 8px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.popup-page { display: inline-block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.popup-links { display: flex; flex-wrap: wrap; gap: 6px; }
.popup-links a { background: var(--accent); color: #1d1d1d; text-decoration: none; font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 6px; }
.popup-links a:hover { background: var(--accent-dark); color: #fff; }
.locate-btn { width: 34px; height: 34px; background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 4px; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------------------------- content */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding-top: 18px; padding-bottom: 50px; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; gap: 10px; } }
.content { min-width: 0; }
.content--wide { max-width: 860px; padding-bottom: 50px; }
.content li { margin-bottom: .35em; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: .95rem; display: block; overflow-x: auto; }
.content th, .content td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border); vertical-align: top; }
.content th { background: var(--bg-alt); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.facts div { background: var(--brand-light); border-radius: var(--radius); padding: 14px 16px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); }
.tip { background: var(--bg-alt); border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.3em; }
.tip p:last-child { margin: 0; }
.warn { background: #fff4f2; border-left-color: #d7263d; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: #fff8ec; border: 1px solid #f1dfbf; border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.4em; }
.cta-box p { margin: 0; flex: 1 1 260px; font-weight: 500; }
.stops { counter-reset: stop; list-style: none; padding: 0; }
.stops li { counter-increment: stop; position: relative; padding: 0 0 14px 48px; }
.stops li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.updated { font-size: .85rem; color: var(--muted); margin-top: 2em; }

.plan { background: var(--brand-light); border-radius: var(--radius); padding: 6px 24px 16px; margin: 2.2em 0; }
.plan h2 { margin-top: .8em; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.plan-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.plan-card .btn { align-self: flex-start; }
.aff-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.faq { margin: 2.2em 0; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 14px; margin: 0; }

.sidebar { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.side-card { background: var(--bg-alt); border-radius: var(--radius); padding: 16px 20px; }
.side-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.side-card li:last-child { border: 0; }
.side-card a { text-decoration: none; }
.side-card--book { background: #fff8ec; border: 1px solid #f1dfbf; }
.side-link { display: block; font-weight: 700; padding: 7px 0; text-decoration: none; }

/* ---------------------------------------------------------------- hubs, cards */
.hub { padding: 26px 0 10px; }
.hub > h2 { margin-top: .6em; }
.hub > h2 a { text-decoration: none; color: var(--text); }
.section-intro { color: var(--muted); max-width: 760px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 10px; }
.card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card-icon { font-size: 1.6rem; }
.card h3 { margin: 6px 0 4px; color: var(--brand); font-size: 1.1rem; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.legal h2 { font-size: 1.25rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #11191f; color: #c5ced4; padding: 44px 0 24px; font-size: .92rem; }
.site-footer a { color: #e7edf0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid #26323a; margin-top: 30px; padding-top: 18px; font-size: .84rem; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .footer-col:first-child { grid-column: 1 / -1; } }
