
/* ---------- Theme + Layout Tokens ---------- */
:root {
    /* Layout */
    --max: 1440px; /* base container width */
    --max-wide: 1760px; /* wider screens */
    --pad: clamp(18px, 3vw, 34px);
    /* Typography */
    --h1: clamp(30px, 3.6vw, 50px);
    --h2: clamp(22px, 2.4vw, 30px);
    --p: clamp(16px, 1.15vw, 18px);
    --small: 14px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    /* Colours (light + outdoors) */
    --bg: #f6f8f7;
    --bg2: #eef3f1;
    --card: rgba(255, 255, 255, 0.88);
    --card2: rgba(255, 255, 255, 0.96);
    --text: #1f2937; /* slate-800 */
    --muted: #4b5563; /* slate-600 */
    --muted2: #6b7280; /* slate-500 */

    --border: rgba(0, 0, 0, 0.09);
    /* Accents: trail green + sky blue */
    --accent: #22c55e; /* green-500 */
    --accent2: #60a5fa; /* blue-400 */

    --shadow: 0 14px 38px rgba(16, 24, 40, 0.10);
    --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.08);
    --radius: 16px;
    --radius2: 24px;
    --focus: 0 0 0 4px rgba(34, 197, 94, 0.28);
    /* Spacing scale */
    --gap-1: 10px;
    --gap-2: 14px;
    --gap-3: 18px;
    --gap-4: 24px;
    --gap-5: 32px;
    --gap-6: 42px;
    /* Subtle background texture (tiny SVG "paper grain") */
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

/* ---------- Base Reset ---------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.55;
    /* Light outdoor background with subtle texture */
    background: var(--noise), radial-gradient(1200px 600px at 12% 0%, rgba(34,197,94,0.12), transparent 60%), radial-gradient(1000px 600px at 88% 8%, rgba(96,165,250,0.12), transparent 60%), linear-gradient(180deg, var(--bg2) 0%, var(--bg) 55%, #ffffff 120%);
    background-attachment: fixed, fixed, fixed, fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* ---------- Container ---------- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

@media (min-width: 1600px) {
    .container {
        max-width: var(--max-wide);
    }
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: #fff;
    color: #000;
    padding: 10px 14px;
    border-radius: 12px;
    z-index: 9999;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

    .skip-link:focus {
        left: 12px;
        outline: none;
        box-shadow: var(--focus);
    }

/* ---------- Header ---------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.72);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 760;
    letter-spacing: 0.2px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(34,197,94,0.55), transparent 55%), radial-gradient(circle at 70% 70%, rgba(96,165,250,0.55), transparent 55%), #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

nav.primary {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    nav.primary a {
        font-size: 14px;
        color: var(--muted);
        padding: 9px 10px;
        border-radius: 12px;
    }

        nav.primary a:hover {
            background: rgba(0,0,0,0.04);
            text-decoration: none;
            color: var(--text);
        }

/* ---------- Hero ---------- */
.hero {
    padding: var(--gap-5) 0 var(--gap-3);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--gap-4);
    align-items: stretch;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: clamp(20px, 3.2vw, 32px);
    overflow: hidden;
    position: relative;
    /* Slight "sunlit" wash, still subtle */
    background: radial-gradient(520px 300px at 12% 0%, rgba(34,197,94,0.14), transparent 62%), radial-gradient(520px 300px at 92% 10%, rgba(96,165,250,0.12), transparent 64%), linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
}

    .hero-card > * {
        position: relative;
        z-index: 1;
    }

.hero-aside {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
}

/* ---------- Badge / Pills ---------- */
.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(34,197,94,0.22);
    background: rgba(34,197,94,0.08);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: var(--small);
    color: #065f46;
}

.pill {
    font-size: 12px;
    color: #065f46;
    border: 1px solid rgba(34,197,94,0.22);
    background: rgba(34,197,94,0.08);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- Typography ---------- */
h1 {
    margin: 14px 0 10px;
    font-size: var(--h1);
    line-height: 1.08;
    letter-spacing: -0.6px;
}

.lead {
    margin: 0 0 18px;
    font-size: var(--p);
    color: var(--muted);
}
.map-embed {
    padding-bottom:15px;
}

h2 {
    font-size: var(--h2);
    margin: 0;
    letter-spacing: -0.25px;
}

.help {
    font-size: 13px;
    color: var(--muted2);
    margin: 10px 0 0;
}

/* ---------- Buttons ---------- */
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-weight: 680;
    font-size: 14px;
    min-height: 44px;
    box-shadow: var(--shadow-soft);
}

    .btn:hover {
        text-decoration: none;
        background: #f0fdf4;
    }

    .btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

.btn-primary {
    border-color: rgba(34,197,94,0.40);
    background: linear-gradient(180deg, rgba(134,239,172,1), rgba(34,197,94,1));
    color: #064e3b;
}

    .btn-primary:hover {
        background: linear-gradient(180deg, rgba(110,231,183,1), rgba(22,163,74,1));
    }

/* ---------- Forms ---------- */
.search {
    display: grid;
    gap: 10px;
}

    .search label {
        font-size: 13px;
        color: var(--muted2);
    }

.input, select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
}

    .input::placeholder {
        color: var(--muted2);
    }

    .input:focus, select:focus {
        box-shadow: var(--focus);
        border-color: rgba(34,197,94,0.35);
    }

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Main + Sections (more spacing) ---------- */
main {
    padding: var(--gap-2) 0 var(--gap-6);
}

/* Give sections more "air" so it doesn't feel cramped */
section {
    margin-top: var(--gap-5);
}

@media (max-width: 900px) {
    section {
        margin-top: var(--gap-4);
    }
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: var(--gap-3);
}

    .section-head p {
        margin: 0;
        color: var(--muted2);
        font-size: 14px;
    }

/* ---------- Grids (slightly larger gaps) ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-3);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Tiles / List Items ---------- */
.tile {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card2);
    box-shadow: var(--shadow-soft);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

    .tile:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.98);
        box-shadow: 0 10px 22px rgba(16,24,40,0.10);
        text-decoration: none;
    }

.tile-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin: 0 0 8px;
    font-weight: 740;
    letter-spacing: 0.15px;
}

.tile p, .tile ul, .tile ul li {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.tile ul {
    margin-top:15px;
    list-style:inside;
    padding:0;
}

.tile.has-img {
    padding: 0;
    border: 0;
    overflow: hidden;
}

    .tile.has-img .tile-content {
        background:White;
        padding:18px;
        margin-top:300px;
    }

.list {
    display: grid;
    gap: var(--gap-2);
}

.list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card2);
    box-shadow: var(--shadow-soft);
}

    .list-item a {
        text-decoration: none;
    }

        .list-item a:hover {
            text-decoration: underline;
        }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted2);
    font-size: 13px;
}

    .meta code {
        font-family: var(--mono);
        font-size: 12px;
        padding: 4px 7px;
        border-radius: 10px;
        background: rgba(34,197,94,0.08);
        border: 1px solid rgba(34,197,94,0.20);
        color: #065f46;
    }

.right {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 150px;
}

.rating {
    font-size: 13px;
    color: rgba(31,41,55,0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.small {
    font-size: 13px;
    color: var(--muted2);
    text-align: right;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    margin-top: var(--gap-3);
    padding: 18px;
    border-radius: var(--radius2);
    border: 1px solid rgba(96,165,250,0.22);
    background: radial-gradient(600px 260px at 12% 0%, rgba(34,197,94,0.12), transparent 60%), radial-gradient(600px 260px at 92% 10%, rgba(96,165,250,0.12), transparent 62%), rgba(255,255,255,0.92);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
    padding: 28px 0 46px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
    margin-top: var(--gap-6);
}

    footer .foot {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 18px;
        align-items: start;
    }

@media (max-width: 900px) {
    footer .foot {
        grid-template-columns: 1fr;
    }
}

.foot p {
    margin: 6px 0 0;
    color: var(--muted2);
    font-size: 14px;
}

.foot a {
    color: var(--muted);
}

    .foot a:hover {
        color: var(--text);
    }

.foot-links {
    display: grid;
    gap: 9px;
    justify-content: start;
}

.legal {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(31,41,55,0.55);
}

/* ---------- Small polish ---------- */
::selection {
    background: rgba(34,197,94,0.25);
}

/* ---------- Mobile nav (burger) ---------- */
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hidden on desktop */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
}

    .nav-toggle:focus {
        outline: none;
        box-shadow: var(--focus);
    }

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}

.nav-toggle-icon {
    top: 50%;
}

    .nav-toggle-icon::before {
        top: -6px;
    }

    .nav-toggle-icon::after {
        top: 6px;
    }

/* Mobile layout */
@media (max-width: 760px) {
    /* Hide the inline nav; burger appears */
    nav.primary {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* When open: show nav as a dropdown panel */
    nav.primary.is-open {
        display: grid;
        position: absolute;
        top: calc(100% + 10px);
        right: var(--pad);
        left: var(--pad);
        z-index: 100;
        gap: 6px;
        padding: 10px;
        border-radius: var(--radius2);
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
    }

        nav.primary.is-open a {
            padding: 12px 12px;
            border-radius: 12px;
            color: var(--text);
        }

            nav.primary.is-open a:hover {
                background: rgba(0,0,0,0.05);
                text-decoration: none;
            }

    /* Ensure header can anchor the absolute dropdown */
    header.site-header .header-inner {
        position: relative;
    }

    /* Animate burger into "X" when expanded */
    .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
        background: transparent;
    }

        .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
            top: 0;
            transform: translateX(-50%) rotate(45deg);
        }

        .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
            top: 0;
            transform: translateX(-50%) rotate(-45deg);
        }
}

@media (max-width: 760px) {

    nav.primary {
        justify-content: flex-start;
    }

        nav.primary.is-open {
            justify-items: stretch; /* ensure children take full width */
            text-align: left; /* left-align text */
        }
}

@media (max-width: 760px) {
    nav.primary.is-open {
        justify-content: normal;
    }

        nav.primary.is-open a {
            display: block;
            width: 100%;
            padding: 16px var(--pad);
            text-align: left;
        }

            nav.primary.is-open a:hover,
            nav.primary.is-open a:focus {
                background: rgba(0, 0, 0, 0.06);
            }
}
