/* Cold Springs Family Campground - site styles (layered on Bootstrap 5.3) */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --cs-forest: #1F4D2B;        /* primary */
    --cs-forest-2: #2E6B3F;
    --cs-pond: #1D6A8F;          /* secondary */
    --cs-sand: #F6EFE3;          /* section tint */
    --cs-sunset: #B5501A;        /* CTA (5.1:1 with white) */
    --cs-sunset-dark: #963F12;
    --cs-ink: #1E2A22;
    --cs-muted: #5A665E;
    --cs-line: #E3DCCD;
    --cs-radius: 14px;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: 1.0625rem;   /* 17px */
    --bs-body-line-height: 1.6;
    --bs-body-color: var(--cs-ink);
    --bs-body-bg: #FFFFFF;
    --bs-link-color: var(--cs-pond);
    --bs-link-color-rgb: 29, 106, 143;
    --bs-link-hover-color: var(--cs-forest);
    --bs-border-radius: var(--cs-radius);
}

body { background: #FFFFFF; color: var(--cs-ink); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, .display-font, .navbar-brand {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    color: var(--cs-forest);
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cs-sunset); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--cs-forest); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .65rem 1.4rem; }
.btn-cta { background: var(--cs-sunset); border-color: var(--cs-sunset); color: #fff; }
.btn-cta:hover, .btn-cta:focus { background: var(--cs-sunset-dark); border-color: var(--cs-sunset-dark); color: #fff; }
.btn-forest { background: var(--cs-forest); border-color: var(--cs-forest); color: #fff; }
.btn-forest:hover, .btn-forest:focus { background: var(--cs-forest-2); border-color: var(--cs-forest-2); color: #fff; }
.btn-outline-light { border-width: 2px; }

/* ---------- Announcement + header ---------- */
.announcement { background: var(--cs-forest); color: #fff; font-size: .95rem; text-align: center; padding: .45rem 1rem; }
.announcement a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--cs-line); }
.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; color: var(--cs-forest); }
.navbar-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.navbar-brand small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-muted); }
.site-header .nav-link { font-weight: 600; font-size: .975rem; color: var(--cs-ink); padding: .5rem .65rem; white-space: nowrap; }
.site-header .btn { white-space: nowrap; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--cs-forest); }
.site-header .dropdown-menu { border-radius: 12px; border-color: var(--cs-line); }
.header-phone { font-weight: 600; color: var(--cs-forest); text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--cs-forest); }
.hero-sm { min-height: 42vh; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides img { animation: heroFade 28s linear infinite; transform-origin: center; }
/* Negative delays: every slide runs from page load at its own phase, so slide 1 shows instantly */
.hero-slides img:nth-child(1) { animation-delay: -1.2s; }
.hero-slides img:nth-child(2) { animation-delay: -22.2s; }
.hero-slides img:nth-child(3) { animation-delay: -15.2s; }
.hero-slides img:nth-child(4) { animation-delay: -8.2s; }
.hero-slides img:only-child { animation: none; }
@keyframes heroFade {
    0%   { opacity: 1; transform: scale(1.0); }
    25%  { opacity: 1; }
    29%  { opacity: 0; transform: scale(1.06); }
    96%  { opacity: 0; transform: scale(1.0); }
    100% { opacity: 1; transform: scale(1.0); }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(10,30,15,.72) 100%); }
.hero-content { position: relative; z-index: 2; padding: 4rem 0 3.5rem; max-width: 760px; }
.hero h1, .hero p { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .lead { font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    .hero-slides img { animation: none; opacity: 0; }
    .hero-slides img:first-child { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-sand { background: var(--cs-sand); }
.section-forest { background: var(--cs-forest); color: #fff; }
.section-forest h2, .section-forest h3 { color: #fff; }
.eyebrow { font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-pond); }

.card-cs { position: relative; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); overflow: hidden; height: 100%; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.card-cs:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(31,77,43,.12); }
.card-cs .card-body { padding: 1.5rem; }
.card-cs > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-feature-img { aspect-ratio: 16 / 9; object-fit: cover; }
.price-tag { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--cs-sunset); }

.amenity-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem 1.5rem; }
.amenity-list li { padding-left: 1.75rem; position: relative; }
.amenity-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--cs-forest-2); }

.cta-band { background: var(--cs-forest); color: #fff; border-radius: var(--cs-radius); padding: 2.5rem; }
.cta-band h2 { color: #fff; }

/* Placeholder shown only in local/debug mode for empty content regions */
.placeholder-note { display: inline-block; background: #FFF6D6; color: #6B5300; border: 1px dashed #D9B84A; border-radius: 6px; padding: .15rem .5rem; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #15351E; color: #DDE7DF; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #B9C8BD; }

/* ---------- Mobile ---------- */
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { padding: .5rem 0 1rem; }
    .hero { min-height: 68vh; }
    .hero.hero-sm { min-height: 38vh; }
    .section { padding: 3rem 0; }
}

/* ---------- Lead forms ---------- */
.form-card { background: #fff; border-radius: var(--cs-radius); padding: 2rem; box-shadow: 0 6px 24px rgba(31,77,43,.08); }
.form-card .form-label { font-weight: 600; }
.form-card h3 { color: var(--cs-forest); }
.req { color: var(--cs-sunset); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.date-range { background: #fff; cursor: pointer; }
.has-picker .date-fallback { display: none; }
@media (max-width: 575.98px) { .form-card { padding: 1.25rem; } }
/* Phones: shorter home hero so the cards start sooner (inner-page heroes are already short) */
@media (max-width: 767.98px) {
    .hero:not(.hero-sm) { min-height: 0; }
    .hero:not(.hero-sm) .hero-content { padding: 7rem 0 2rem; }
    .hero:not(.hero-sm) h1 { font-size: 1.85rem; line-height: 1.15; margin-bottom: .5rem; }
    .hero:not(.hero-sm) .lead { font-size: 1.05rem; margin-bottom: 1.25rem !important; }
    .hero:not(.hero-sm) .eyebrow { font-size: .72rem; }
    .hero:not(.hero-sm) .btn-lg { padding: .6rem 1.1rem; font-size: 1rem; }
}
@media (max-width: 399.98px) {
    .hero:not(.hero-sm) .hero-content { padding-top: 5.5rem; }
    .hero:not(.hero-sm) .btn-lg { padding: .55rem .85rem; font-size: .95rem; }
}
@media (min-width: 768px) and (max-width: 1199.98px) { .hero:not(.hero-sm) { min-height: 56vh; } }

/* ---------- Seasonal agreement ---------- */
.agreement-band { background: var(--cs-sand); border: 1px solid var(--cs-line); border-radius: var(--cs-radius); padding: 1.75rem 2rem; }
.agreement-band h2 { color: var(--cs-forest); }
#agreement .modal-content { border-radius: var(--cs-radius); }

/* ---------- Campground map ---------- */
.map-frame { border-radius: var(--cs-radius); overflow: hidden; box-shadow: 0 6px 24px rgba(31,77,43,.12); background: #CFE3B5; }
.site-map { position: relative; line-height: 0; }
.site-map > img { display: block; width: 100%; height: auto; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-frame.is-zoomed { max-height: 82vh; overflow: auto; overscroll-behavior: contain; }
.map-frame.is-zoomed .site-map { width: min(250%, 1520px); max-width: none; }
.map-zoom-btn { white-space: nowrap; }

.map-overlay .lbl { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; text-anchor: middle; dominant-baseline: middle;
    paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.map-overlay .lbl-place { font-size: 34px; fill: #1E2A22; stroke: #fff; stroke-width: 9px; }
.map-overlay .lbl-small { font-size: 26px; fill: #1E2A22; stroke: #fff; stroke-width: 8px; }
.map-overlay .lbl-water { font-size: 34px; fill: #fff; stroke: #0E4E6E; stroke-width: 8px; }
.map-overlay .lbl-trail { font-size: 36px; fill: #fff; stroke: #1F4D2B; stroke-width: 9px; letter-spacing: .04em; }
.map-overlay .lbl-road { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 28px; fill: #fff; stroke: #4A4F55; stroke-width: 7px; letter-spacing: .03em; }
.map-overlay .lbl-arrow path { fill: #fff; stroke: #4A4F55; stroke-width: 5px; paint-order: stroke; }

.map-overlay .site .dot { stroke: #fff; stroke-width: 5px; }
.map-overlay .site .num { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 30px; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-overlay .is-taken .dot { fill: #7C8580; fill-opacity: .82; }
.map-overlay .is-taken .num { fill: #F1F3F2; }
.map-overlay .is-available .dot { fill: var(--cs-sunset); }
.map-overlay .is-nightly .dot { fill: var(--cs-pond); }
.map-overlay a.site { cursor: pointer; text-decoration: none; }
.map-overlay a.site:hover .dot, .map-overlay a.site:focus .dot { stroke: #FFE7A3; stroke-width: 8px; }
.map-overlay a.site:focus { outline: none; }
.map-overlay a.site:focus-visible .dot { stroke: #FFD24D; stroke-width: 10px; }
.map-overlay .pulse { pointer-events: none; fill: none; stroke: var(--cs-sunset); stroke-width: 6px; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.2s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-overlay .pulse { animation: none; opacity: 0; } }

.map-legend .key { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; vertical-align: -2px; margin-right: .25rem; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.key-available { background: var(--cs-sunset); }
.key-taken { background: #7C8580; }
.key-nightly { background: var(--cs-pond); }

.map-aside { position: sticky; top: 6.5rem; }
.map-card { background: var(--cs-sand); border: 1px solid var(--cs-line); border-radius: var(--cs-radius); padding: 1.5rem; margin-bottom: 1rem; }
.avail-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--cs-line); }
.avail-list li:last-child { border-bottom: 0; }
.avail-num { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--cs-sunset); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 991.98px) { .map-aside { position: static; } }
.avail-list .btn { white-space: nowrap; }

/* ---------- Photo Tour ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-link { display: block; border-radius: 12px; overflow: hidden; }
.gallery-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.04); }
.gallery-caption { font-size: .9rem; color: var(--cs-muted); margin: .4rem .1rem 0; }
.lightbox .modal-content { background: #0B140E; border: 0; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 1.5rem; height: 1.5rem; }
.lightbox-figure { height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4.5rem 1rem; }
.lightbox-figure img { max-width: 100%; max-height: calc(100% - 3rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-figure figcaption { color: #E9EFEA; text-align: center; margin-top: .75rem; font-size: .95rem; max-width: 60ch; }
.lightbox-count { color: #9FB0A4; margin-left: .5rem; white-space: nowrap; }
.lightbox .carousel-control-prev, .lightbox .carousel-control-next { width: 4rem; }
.lightbox .carousel-item { transition-duration: .35s; }
@media (max-width: 575.98px) { .lightbox-figure { padding: 3.5rem .5rem 1rem; } .lightbox .carousel-control-prev, .lightbox .carousel-control-next { width: 2.75rem; } }

/* ---------- Location pages ---------- */
.hero-crumbs { font-size: .9rem; margin-bottom: .5rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-crumbs a { color: #fff; }
.loc-facts { background: var(--cs-sand); border-bottom: 1px solid var(--cs-line); padding: 1.25rem 0; text-align: center; }
.loc-facts .fact-num { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--cs-forest); line-height: 1.2; }
.loc-facts .fact-label { display: block; font-size: .875rem; color: var(--cs-muted); }
.loc-links a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--cs-line); border-radius: 999px; text-decoration: none; background: #fff; }
.loc-links a:hover { border-color: var(--cs-forest); color: var(--cs-forest); }
.page-body.nearby ul { padding-left: 1.2rem; }
@media (max-width: 575.98px) { .loc-facts ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem .75rem !important; } .loc-facts .fact-num { font-size: 1.15rem; } }
.draft-banner { background: #FFF3C4; color: #5C4600; text-align: center; padding: .5rem 1rem; font-size: .9rem; border-bottom: 1px solid #E8D27A; }

/* ---------- FAQ + Guides ---------- */
.faq-list .accordion-button { font-weight: 600; font-size: 1.05rem; color: var(--cs-ink); }
.faq-list .accordion-button:not(.collapsed) { background: var(--cs-sand); color: var(--cs-forest); box-shadow: none; }
.faq-list .accordion-item { border-color: var(--cs-line); }
.faq-list .accordion-body p:last-child { margin-bottom: 0; }
.guide-card > a img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.guide-card h2 a { color: var(--cs-forest); text-decoration: none; }
.guide-photo img { width: 100%; height: auto; border-radius: var(--cs-radius); }
.more-guides li { padding: .6rem 0; border-bottom: 1px solid var(--cs-line); }
