/* Parknav Places: same look as parknav.com (Poppins, navy #1b3963, blue #2f92de), no CSS framework */

:root {
    --navy: #1b3963;
    --blue: #2f92de;
    --blue-dark: #1f7cc4;
    --ink: #24324a;
    --muted: #6b7a90;
    --faint: #9aa6b6;
    --line: #e4e9f0;
    --bg: #f5f8fc;
    --card: #ffffff;
    --good: #1e9e3e;
    --good-light: #7aeb7a;
    --medium: #ffc87a;
    --low: #e53935;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(27, 57, 99, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.brand:hover {
    text-decoration: none;
    color: var(--navy);
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(47, 146, 222, 0.18);
}

.brand-light, .brand-light:hover {
    color: #fff;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.9rem;
}

.header-links a {
    color: var(--navy);
    font-weight: 500;
}

.header-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 999px;
}

.header-cta:hover {
    background: var(--blue-dark);
    text-decoration: none;
}

/* ---------- breadcrumb, deliberately quiet ---------- */

.crumbs {
    font-size: 0.75rem;
    color: var(--faint);
    padding-top: 10px;
    padding-bottom: 4px;
}

.crumbs a {
    color: var(--faint);
}

.crumbs span {
    margin: 0 6px;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    margin: 6px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy) url("/static/css/images/banner-d4572d2e26fc8f7f63907c974afb2fad.jpg") center/cover no-repeat;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 57, 99, 0.96) 0%, rgba(27, 57, 99, 0.86) 55%, rgba(27, 57, 99, 0.55) 100%);
}

.hero-inner {
    position: relative;
    padding: 34px 32px 30px;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfe0fa;
    margin-bottom: 8px;
}

.hero h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-meta {
    color: #d6e4f3;
    font-size: 0.95rem;
}

.hero-meta a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.hero-meta .dot {
    margin: 0 8px;
    opacity: 0.6;
}

/* app download right under the title, as on the parknav.com city pages */
.hero-app {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 22px;
    margin-top: 16px;
}

.hero-app-text {
    color: #d6e4f3;
    font-size: 0.85rem;
    max-width: 280px;
    align-self: center;
}

.hero .app-badge-label {
    color: #a9c3de;
}

.hero .app-badge-soon img {
    opacity: 0.6;
}

.title-app {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 22px;
    margin: 4px 0 6px;
}

.title-app .muted {
    align-self: center;
}

/* ---------- live stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(4px);
}

.stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-value.small {
    font-size: 1.05rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #c9d9eb;
    margin-top: 2px;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse 2s infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- answer under the hero ---------- */

.answer {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 22px;
    margin-top: 16px;
    border-left: 4px solid var(--blue);
}

.answer p {
    margin: 0;
}

.answer .answer-cta {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ---------- cards and layout ---------- */

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-top: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.grid-2 > div > .card:first-child {
    margin-top: 16px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.85rem;
}

/* ---------- map ---------- */

.map-card {
    padding: 0;
    overflow: hidden;
}

.map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.map-head h2 {
    margin: 0;
}

.map-search {
    min-width: 260px;
    flex: 0 1 340px;
}

.map-search .mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: inherit;
}

.map-wrap, .map-canvas {
    position: relative;
}

.map {
    height: 460px;
    width: 100%;
}

.map-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    z-index: 2;
}

.map-panel strong {
    color: var(--navy);
}

.map-panel .panel-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.map-panel .panel-best {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.best-swatch {
    display: inline-block;
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: var(--blue);
    margin-right: 6px;
    vertical-align: middle;
}

.map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 0.75rem;
    z-index: 2;
    min-width: 210px;
}

.map-legend summary {
    cursor: pointer;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
}

.map-legend summary::-webkit-details-marker {
    display: none;
}

.map-legend summary::after {
    content: " –";
    color: var(--muted);
}

.map-legend:not([open]) summary::after {
    content: " +";
}

.map-legend ul {
    list-style: none;
    margin: 0;
    padding: 0 12px 10px;
}

.map-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.swatch {
    display: inline-block;
    width: 26px;
    height: 4px;
    border-radius: 2px;
}

.swatch.vhigh { background: var(--good); }
.swatch.high { background: var(--good-light); }
.swatch.low { background: var(--medium); }
.swatch.vlow { background: var(--low); opacity: 0.6; }
.swatch.none { background: #000; opacity: 0.25; }

.map-app {
    position: absolute;
    right: 12px;
    bottom: 28px;
    z-index: 2;
    background: var(--navy);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.map-app:hover {
    background: #142c4e;
    text-decoration: none;
}

.map-hint {
    padding: 10px 20px;
    font-size: 0.78rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--blue), 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- about, faq, lists ---------- */

.facts {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0;
}

.facts dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.faq details:first-of-type {
    border-top: none;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}

.faq details p {
    margin: 8px 0 0;
    color: var(--ink);
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.link-list li:first-child {
    border-top: none;
}

.link-list .meta {
    color: var(--faint);
    font-size: 0.8rem;
    white-space: nowrap;
}

.city-card {
    display: block;
    background: linear-gradient(135deg, var(--blue) 0%, #1b6fb3 100%);
    color: #fff !important;
}

.city-card:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

.city-card h3 {
    color: #fff;
}

.city-card p {
    margin: 0 0 10px;
    color: #e3f1fc;
    font-size: 0.9rem;
}

.city-card .go {
    font-weight: 600;
}

/* ---------- app ---------- */

.app-steps {
    margin: 0 0 14px;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.app-steps li {
    margin-bottom: 4px;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.app-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-badge-label {
    color: var(--faint);
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.app-badge img {
    height: 42px;
    width: auto;
    display: block;
    border-radius: 7px;
}

.app-badge-soon img {
    opacity: 0.45;
}

/* ---------- quote ---------- */

.quote {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 26px auto 0;
    max-width: 640px;
}

.quote blockquote {
    margin: 0;
    font-style: italic;
}

.quote footer {
    font-size: 0.8rem;
    color: var(--faint);
    margin-top: 4px;
}

/* ---------- list pages (home, country, city) ---------- */

.page-title {
    margin-top: 6px;
}

.page-title h1 {
    font-size: 1.8rem;
}

.columns {
    columns: 3 240px;
    column-gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.columns li {
    break-inside: avoid;
    padding: 5px 0;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.pager a {
    min-width: 36px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
}

.pager a.current {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ---------- footer ---------- */

.site-footer {
    margin-top: 40px;
    background: var(--navy);
    color: #c9d9eb;
    font-size: 0.85rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 28px;
    padding-bottom: 18px;
}

.footer-row p {
    margin: 6px 0 0;
    max-width: 360px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a, .footer-legal a {
    color: #fff;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    padding-bottom: 20px;
    font-size: 0.72rem;
    color: #9fb3cc;
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .wrap {
        padding: 0 16px;
    }

    .header-links a:not(.header-cta) {
        display: none;
    }

    .hero {
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }

    .hero-inner {
        padding: 24px 18px 20px;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    .hero-app-text {
        max-width: none;
        flex: 1 1 100%;
    }

    .hero .app-badge img {
        height: 38px;
    }

    .map {
        height: 380px;
    }

    /* on phones the summary sits under the map instead of covering it */
    .map-panel {
        position: static;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--line);
        font-size: 0.8rem;
    }

    .map-search {
        min-width: 0;
        flex: 1 1 100%;
    }

    .facts {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}
