/* Shared stylesheet for the public site.
   Carried over from the stylesheet of the single-park site this one
   started from; the brand colours below follow the app icon. */

:root {
    --brand: #2b6c73;        /* the icon's teal */
    --brand-deep: #1d4a50;
    --ink: #1A2B3C;
    --muted: #5A6C7D;
    --paper: #FFFFFF;
    --mist: #F8F9FA;
    --line: #E5E7EB;
    --sand: #E8D5C4;         /* footer link accent */
    --slate: #3b4248;        /* the icon's background */
    --warn: #b02a2a;
    --offer: #c2571a;        /* a park free for a time: warm, against the teal */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--paper);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    display: inline-block;
}

/* Hero Section */
#hero {
    /* Gradient stays as the paint-before-image (and no-image) fallback. */
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: white;
    padding: 90px 20px;
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#hero .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Darkening overlay so the white hero text stays readable on any photo. */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 25, 20, 0.55), rgba(15, 25, 20, 0.4));
    z-index: -1;
}

#hero h1,
#hero .subtitle,
#hero .coming-soon {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

#hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.coming-soon {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sand);
    margin-top: 20px;
}

.app-store-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#hero .app-store-row {
    margin-top: 24px;
}

/* A park free for a time: the line under its App Store button. */
.offer-note {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sand);
    margin-top: 14px;
}

#hero .offer-note {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Under every App Store badge until the Android app is out. */
.android-soon {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 10px;
}

#hero .android-soon {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.app-store-badge {
    display: inline-block;
    border-radius: 8px;
}

.app-store-badge img {
    display: block;
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: box-shadow 0.2s, filter 0.2s;
}

/* Hover and keyboard focus: a highlight, the badge staying in place. A white
   ring inside a teal one shows on all three backgrounds the badge sits on
   (the hero photographs, the teal call-to-action panel, white). */
.app-store-badge:hover img,
.app-store-badge:focus-visible img {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand), 0 0 18px 4px rgba(255, 255, 255, 0.35);
    filter: brightness(1.25);
}

.app-store-badge:focus-visible { outline: none; }

/* Screenshots Section: the carousel */
#screenshots {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--paper);
}

.carousel-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.screenshot-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    text-align: center;
}

.carousel-button {
    background-color: rgba(43, 108, 115, 0.9);   /* --brand at 90% */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0;
    padding: 0;
    padding-bottom: 3px;
}

.carousel-button:hover {
    background-color: var(--brand-deep);
    transform: scale(1.1);
}

.carousel-button:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    padding: 0;
}

.dot:hover {
    background-color: #9CA3AF;
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--brand);
    transform: scale(1.3);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.carousel-controls .carousel-dots { margin-top: 0; }

/* Stops and starts the screenshots turning by themselves. */
.carousel-pause {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--brand-deep);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.carousel-pause[hidden] { display: none; }

.carousel-pause:hover { border-color: var(--brand); }

.carousel-pause:focus-visible,
.carousel-button:focus-visible,
.dot:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Two bars while it plays; a triangle while paused. */
.carousel-pause-icon {
    width: 10px;
    height: 10px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
    box-sizing: border-box;
}

.carousel-pause.is-paused .carousel-pause-icon {
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent currentColor;
}

.screenshots-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.screenshots-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none; }
}

/* Features Section */
#features {
    padding: 40px 20px;
    background-color: var(--mist);
}

#features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--ink);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
}

.feature {
    flex: 0 1 calc(33.333% - 14px);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.feature h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--brand);
}

.feature p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Data Sources Section */
#data {
    padding: 40px 20px;
    background-color: var(--paper);
}

#data h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
    color: var(--ink);
}

.section-intro {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 30px;
}

.sources-list {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.source-row {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.source-row strong { display: block; color: var(--brand); }

.source-row span { color: var(--muted); font-size: 0.95rem; }

.source-row a { color: var(--brand); text-decoration: none; }

.source-row a:hover { text-decoration: underline; }

/* FAQ Section */
#faq {
    padding: 40px 20px;
    background-color: var(--mist);
}

#faq h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--ink);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

#faq .faq-item {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

#faq .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--mist);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--brand);
    transition: transform 0.3s;
}

#faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

#faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 15px 20px;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--brand);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 30% 50%;
    flex-shrink: 0;
}

.creator-info a {
    color: var(--brand);
    text-decoration: none;
}

.creator-info a:hover {
    text-decoration: underline;
}

/* Disclaimer band */
#disclaimer {
    padding: 40px 20px;
    background-color: var(--paper);
}

.disclaimer-band {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #e7c9c9;
    background: #fdf6f6;
    border-radius: 12px;
    padding: 24px 28px;
}

.disclaimer-band h3 {
    color: var(--warn);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.disclaimer-band p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 8px;
}

.disclaimer-band p:last-child { margin-bottom: 0; }

/* ---------- Feature pages (features/<slug>/) ---------- */

.feature-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.feature-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--brand);
    text-align: center;
}

.feature-content .subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--ink);
}

.feature-content p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-content ul {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
}

.feature-content a {
    color: var(--brand);
    text-decoration: none;
}

.feature-content a:hover {
    text-decoration: underline;
}

.feature-screenshot {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 30px auto;
}

.screenshot-placeholder {
    max-width: 400px;
    margin: 30px auto;
    padding: 60px 20px;
    border: 2px dashed var(--line);
    border-radius: 12px;
    text-align: center;
    color: #9aa5ad;
    font-size: 0.95rem;
    background: var(--mist);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-radius: 12px;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-top: 0;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .coming-soon {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .feature-content h1 { font-size: 1.8rem; }
    .feature-screenshot { max-width: 100%; }
}

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 20px 90px;
}

.doc-content h1 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--brand);
    margin-bottom: 8px;
}

.doc-content .last-updated {
    text-align: center;
    font-style: italic;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 44px;
}

.doc-content .intro-text {
    text-align: center;
    color: var(--muted);
    margin-bottom: 44px;
}

.doc-content h2 {
    font-size: 1.35rem;
    margin: 40px 0 14px;
}

.doc-content h2.warn { color: var(--warn); }

.doc-content p { margin-bottom: 14px; color: var(--muted); }

.doc-content p.warn { color: var(--warn); font-weight: 600; }

.doc-content strong { color: var(--ink); }

.doc-content ul { margin: 14px 0; padding-left: 28px; }

.doc-content li { margin-bottom: 8px; color: var(--muted); }

.doc-content a { color: var(--brand); text-decoration: none; }

/* The photo form on the Share Your Photos page (js/photo-form.js). */
.photo-form {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    margin: 20px 0 10px;
}
.pf-field { margin-bottom: 20px; }
.pf-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pf-note { font-weight: 400; color: var(--muted); }
.pf-hint { font-size: 0.88rem; margin: 6px 0 0 !important; }
.photo-form input[type="text"], .photo-form input[type="email"], .photo-form select, .photo-form textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #cfd5db;
    border-radius: 8px;
    padding: 10px 12px;
}
.photo-form textarea { resize: vertical; }
.photo-form input:focus, .photo-form select:focus, .photo-form textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: var(--brand);
}
.photo-form input[type="file"] { font: inherit; font-size: 0.95rem; max-width: 100%; }
.doc-content ul.pf-files { margin: 8px 0 0; padding-left: 20px; }
.pf-files li { font-size: 0.9rem; margin-bottom: 2px; }
.pf-files li.pf-too-big { color: var(--warn); }
.pf-website { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pf-agree { border: 0; padding: 0; margin: 6px 0 20px; }
.pf-agree legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pf-agree label { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-bottom: 10px; cursor: pointer; }
.pf-agree input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.pf-submit {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    padding: 12px 26px;
    cursor: pointer;
}
.pf-submit:hover { background: var(--brand-deep); }
.pf-submit:disabled { opacity: 0.6; cursor: default; }
.pf-secondary { background: var(--slate); }
.doc-content p.pf-error { color: var(--warn); font-weight: 600; }
.pf-progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 16px; }
.pf-bar { height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }
.doc-content p.pf-status { margin-top: 10px; font-size: 0.92rem; }
.pf-done { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 24px 28px; margin: 20px 0; }
.pf-done h3 { color: var(--brand); margin-bottom: 10px; }
@media (max-width: 700px) { .photo-form { padding: 20px 16px; } }
@media print {
    header, footer, nav, .photo-form, #pf-print { display: none !important; }
}

.doc-content h2[id], .doc-content ul[id] { scroll-margin-top: 90px; }

.doc-content pre.license-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 14px;
}

.doc-content a:hover { text-decoration: underline; }

/* Support FAQ (static boxes on the support page) */
.faq-item {
    background: var(--mist);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 14px;
}

.faq-item h3 { margin-bottom: 8px; font-size: 1.02rem; }

.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 0; }

.contact-box {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-radius: 12px;
    padding: 34px;
    text-align: center;
    margin-top: 50px;
}

.contact-box h2 { color: #fff; margin: 0 0 10px; }

.contact-box p { color: rgba(255, 255, 255, 0.9); }

.contact-box a { color: #fff; font-weight: 600; font-size: 1.1rem; }

/* Footer */
footer {
    background-color: var(--ink);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.map-credit {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.map-credit a {
    color: var(--sand);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

.footer-nav a.current {
    color: rgba(232, 213, 196, 0.5);
    pointer-events: none;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 60px 20px;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero .subtitle {
        font-size: 1rem;
    }

    #screenshots,
    #features,
    #data,
    #disclaimer,
    #faq {
        padding: 30px 20px;
    }

    #features h2,
    #data h2,
    #faq h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .screenshots-header {
        margin-top: 20px;
    }

    .screenshots-header h2 {
        font-size: 1.5rem;
    }

    .carousel-container {
        max-width: 100%;
        gap: 10px;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .features-grid {
        gap: 15px;
    }

    .feature {
        flex: 0 0 100%;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    #faq .faq-item.active .faq-answer {
        padding: 0 15px 12px 15px;
    }

    .creator-info {
        flex-direction: column;
        text-align: center;
    }

    .creator-photo {
        width: 110px;
        height: 110px;
    }

    nav .container {
        flex-direction: column;
        gap: 12px;
    }

    footer {
        padding: 25px 20px;
    }

    footer .container {
        gap: 12px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- Guide page (guide/): the icon list ---------- */

.guide-content h2 {
    border-bottom: 2px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.icon-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.icon-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--mist);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.icon-item img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
}

.icon-info { flex: 1; }

.icon-info h3 {
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 6px;
}

.icon-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tip-box {
    background: #edf4f4;
    border-left: 4px solid var(--brand);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.tip-box p { margin: 0; color: var(--ink); }

.guide-content .contact-box h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.guide-content .contact-box a { color: #fff; }

/* ---------- Parks: the cards on the home page ---------- */

#parks {
    padding: 40px 20px;
    background-color: var(--paper);
}

#parks h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--ink);
}

.parks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.park-card {
    flex: 0 1 calc(33.333% - 14px);
    min-width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.park-card:hover { transform: translateY(-5px); }

.park-card-picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--slate);
}

/* A badge is a round drawing, not a photograph: shown whole on slate. */
.park-card-picture.is-badge {
    object-fit: contain;
    padding: 22px;
}

/* The park's own round badge, set on the lower edge of the photograph. */
.park-card-media { position: relative; }

.park-card-badge {
    position: absolute;
    right: 16px;
    bottom: -30px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid white;
    background: var(--slate);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.park-card-media + .park-card-body { padding-right: 100px; }

.park-card-body { padding: 18px 20px 20px; }

.park-card h3 {
    font-size: 1.3rem;
    color: var(--brand);
    margin-bottom: 4px;
}

.park-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.park-state {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--mist);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.park-state.is-available {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.park-state.is-free {
    background: var(--offer);
    border-color: var(--offer);
}

/* ---------- Park page ---------- */

/* Shown only when an ended offer-code link lands here (#offer-ended). */
.offer-ended { display: none; }

.offer-ended:target {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--mist);
    border: 1px solid var(--line);
}

/* A park with no photograph: its badge on the icon's slate. */
#hero.hero-badge { background: var(--slate); }

#hero.hero-badge::before { display: none; }

.hero-badge-image {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
}

/* Over a photograph the badge is smaller and ringed, like the home page card. */
.hero-badge-image.on-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* A park with no photograph yet says so, in the corner of the hero. */
.hero-placeholder {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-credit {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
}

.park-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.park-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 14px;
    color: var(--ink);
}

.park-content h3 {
    font-size: 1.05rem;
    margin: 26px 0 8px;
    color: var(--brand);
}

.park-content p {
    margin-bottom: 14px;
    color: var(--muted);
}

.park-content a { color: var(--brand); text-decoration: none; }
.park-content a:hover { text-decoration: underline; }

.park-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 6px;
    list-style: none;
}

.park-facts li {
    flex: 1 1 180px;
    padding: 14px 16px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.park-facts strong {
    display: block;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.park-shots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

.park-shot {
    flex: 0 1 260px;
    text-align: center;
}

.feature-shots { margin: 30px 0; }

.feature-shots .park-shot { flex-basis: 220px; }

.park-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.park-shot figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.park-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0 10px;
}

.park-photo { margin: 0; }

.park-photo a { display: block; }

.park-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.park-photo figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .park-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.park-photo a,
.park-shot a { cursor: zoom-in; display: block; }

.park-photo a:focus-visible img,
.park-shot a:focus-visible img { outline: 3px solid var(--brand); outline-offset: 2px; }

/* The full-screen viewer (js/main.js). Always dark, in either theme. */
.lightbox-open, .lightbox-open body { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f13;
    color: #f2f4f5;
    -webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 72px 20px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100% - 56px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.lightbox-image.loading { opacity: 0.35; }

/* A screenshot zooms: shown at its own size (twice the screen's width at the
   most) and scrolled. */
.lightbox.zoomable .lightbox-image { cursor: zoom-in; border-radius: 12px; }

.lightbox.zoomed .lightbox-stage { display: block; overflow: auto; padding: 0; }

.lightbox.zoomed .lightbox-image {
    display: block;
    margin: 0 auto;
    max-width: 200vw;
    max-height: none;
    border-radius: 0;
    cursor: zoom-out;
}

.lightbox.zoomed .lightbox-caption { display: none; }

.lightbox.zoomed button { background: rgba(62, 69, 76, 0.85); }

.lightbox-caption {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: center;
    margin-top: 14px;
    font-size: 0.95rem;
    text-align: center;
    max-width: 900px;
}

.lightbox-count {
    color: #a7b0b8;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lightbox button[hidden] { display: none; }

.lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
}

.lightbox-zoom {
    top: 12px;
    right: 68px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2.6rem;
    padding-bottom: 4px;
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

@media (max-width: 768px) {
    .lightbox-nav {
        top: auto;
        bottom: 14px;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 2.2rem;
    }
    .lightbox-stage { padding: 60px 8px 72px; }
    .lightbox-image { max-height: calc(100% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-image, .lightbox button { transition: none; }
}

.hike-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hike-table th,
.hike-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    color: var(--muted);
}

.hike-table th {
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hike-table td:first-child { color: var(--ink); font-weight: 500; }

.hike-table .num { text-align: right; white-space: nowrap; width: 6.5em; }

.hike-table .optional { width: 8em; }

/* The call to action keeps its own colours inside a park page. */
.park-content .cta-section h2 { color: white; margin-top: 0; }

.park-content .cta-section p { color: rgba(255, 255, 255, 0.9); }

.park-content .cta-section .coming-soon { color: var(--sand); }

.park-disclaimer {
    margin-top: 48px;
}

.park-disclaimer .disclaimer-band h3 { margin-top: 0; }

@media (max-width: 768px) {
    #parks { padding: 30px 20px; }
    #parks h2 { font-size: 1.5rem; margin-bottom: 20px; }
    .park-card { flex: 0 0 100%; }
    .hero-badge-image { width: 130px; height: 130px; }
    .hero-badge-image.on-photo { width: 90px; height: 90px; }
    .hike-table .optional { display: none; }
}

/* ---------- At a glance: the strip under the home page's hero ---------- */

#glance {
    padding: 36px 20px;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
}

.glance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.glance-shot { margin: 0; flex: 0 0 280px; }

/* The video (and its poster) is drawn in its phone already. */
.glance-shot video {
    display: block;
    width: 100%;
    height: auto;
}

.glance-body { flex: 0 1 480px; }

.glance-list { list-style: none; }

.glance-list li {
    position: relative;
    padding: 0 0 12px 28px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--muted);
}

.glance-list li strong { color: var(--ink); }

.glance-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--brand);
    border-bottom: 3px solid var(--brand);
    transform: rotate(-45deg);
}

.glance-links { margin-top: 6px; font-weight: 600; }

.glance-links a { color: var(--brand); text-decoration: none; white-space: nowrap; }

.glance-links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    #glance { padding: 24px 16px; }
    .glance { gap: 16px; align-items: flex-start; }
    .glance-shot { flex-basis: 150px; }
    .glance-list li { font-size: 0.92rem; padding: 0 0 8px 24px; }
}

/* ---------- Ways to buy: a park, the sets, the pass (site/sets.json) ---------- */

#pricing {
    padding: 40px 20px;
    background-color: var(--mist);
}

#pricing h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--ink);
}

#pricing .section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--muted);
}

.buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
}

.buy-card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px 22px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* The same lift as the park cards; the border takes the brand colour. */
.buy-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(43, 108, 115, 0.16);
}

.buy-card.is-featured:hover { box-shadow: 0 12px 34px rgba(43, 108, 115, 0.24); }

.buy-card.is-featured {
    border: 2px solid var(--brand);
}

.buy-flag {
    position: absolute;
    top: -12px;
    left: 22px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.buy-card h3 {
    font-size: 1.2rem;
    color: var(--brand);
    margin-bottom: 6px;
}

.buy-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
/* After .buy-card p, which they override. */
.buy-card .buy-price { color: var(--ink); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.buy-card .buy-detail { color: var(--brand-deep); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }

.buy-parks {
    list-style: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    line-height: 1.7;
}

.buy-parks a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.buy-parks a::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}
.buy-parks a:hover, .buy-parks a:focus-visible { color: var(--brand); }
.buy-parks a:hover::after, .buy-parks a:focus-visible::after { opacity: 1; transform: none; }

.buy-note {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
}

.park-sets {
    padding: 12px 16px;
    border-left: 3px solid var(--brand);
    background: var(--mist);
    border-radius: 4px;
}

/* ---------- Locator map on a park page (make_site.py locator_svg) ---------- */

.park-locator {
    float: right;
    width: 30%;
    max-width: 280px;
    margin: 4px 0 16px 24px;
}

.park-locator-map {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.park-locator figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.75rem;
}

.loc-sea { fill: #e6eff2; }
.loc-state { fill: #f3f4f1; stroke: #c9cfcc; stroke-width: 0.8; }
.loc-home { fill: #ffffff; stroke: var(--slate); stroke-width: 1.2; }
.loc-state-name { fill: #9aa6a8; font-weight: 600; letter-spacing: 0.18em; }
.loc-park { fill: var(--brand); stroke: var(--brand-deep); stroke-width: 0.8; }
.loc-park-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.loc-park-label { fill: var(--brand-deep); font-size: 23px; font-weight: 700; }
.loc-other { fill: #ffffff; stroke: var(--brand); stroke-width: 2; }
.loc-other-label { fill: var(--brand); font-size: 20px; font-weight: 600; }
.loc-other-link:hover .loc-other { fill: var(--brand); }
.loc-other-link:hover .loc-other-label { text-decoration: underline; }
.loc-town { fill: var(--ink); }
.loc-town-label { fill: var(--ink); font-size: 12px; }
.loc-inset { fill: #ffffff; stroke: var(--line); }
.loc-inset-land { fill: #dfe3e0; stroke: #ffffff; stroke-width: 0.3; }
.loc-inset-home { fill: var(--brand); }

.park-locator-map text { font-family: inherit; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; stroke-linejoin: round; }

/* ---------- The home page's map of every park (make_site.py home_map_svg) ---------- */

.home-map-figure {
    margin: 40px auto 0;
    max-width: 960px;
}

.home-map {
    display: block;
    width: 100%;
    height: auto;
}

.home-map .loc-state { fill: #f3f4f1; stroke: #c9cfcc; stroke-width: 0.8; }
.home-map text { font-family: inherit; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3px; stroke-linejoin: round; }
.loc-home-label { fill: var(--brand-deep); font-size: 15px; font-weight: 600; }
.loc-leader { stroke: var(--brand); stroke-width: 1; }
.loc-other-link:hover .loc-home-label { text-decoration: underline; }

.home-map-figure figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
}

@media (max-width: 700px) {
    /* Too small to read at phone width: drawn at 680px and scrolled sideways in its box. */
    .home-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .home-map { width: 680px; max-width: none; }
}

@media (max-width: 700px) {
    .park-locator {
        float: none;
        width: 70%;
        max-width: 280px;
        margin: 0 auto 20px;
    }
}

