/* ============================================================
   HTown RV Parks — design system + public site
   Friendly, warm, BIG and simple (phone-first, low-literacy UX)
   ============================================================ */
:root {
  --pine: #1b4332;
  --pine-2: #2d6a4f;
  --leaf: #74c69d;
  --leaf-soft: #d8f3dc;
  --cream: #fdf6ec;
  --sand: #f6ead7;
  --sunset: #e76f51;
  --sunset-2: #bc4b27;
  --amber: #f4a261;
  --gold: #ffd166;
  --ink: #21302a;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(27, 67, 50, .14);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--pine-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--pine); line-height: 1.18; }
.section { padding: 56px 20px; max-width: 1080px; margin: 0 auto; }
.section-title { font-size: clamp(26px, 4.5vw, 38px); text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: #5b6f64; max-width: 620px; margin: 0 auto 36px; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 800; font-size: 18px;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: var(--sunset-2); }
.btn-secondary { background: var(--pine-2); color: #fff; }
.btn-secondary:hover { background: var(--pine); }
.btn-ghost { background: #fff; color: var(--pine); border: 2.5px solid var(--pine-2); box-shadow: none; }
.btn-big { font-size: 20px; padding: 18px 34px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 246, 236, .96); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sand);
}
.header-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 46px; height: 46px; }
.logo-name { font-family: var(--font-head); font-weight: 700; color: var(--pine); font-size: 19px; line-height: 1.05; }
.logo-name small { display: block; font-size: 11px; color: var(--sunset-2); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 800; color: var(--pine); padding: 9px 13px; border-radius: 10px; font-size: 15.5px; }
.nav a:hover { background: var(--leaf-soft); }
.nav .nav-phone { background: var(--pine-2); color: #fff; border-radius: 999px; padding: 10px 18px; }
.lang-toggle {
  border: 2px solid var(--pine-2); background: #fff; color: var(--pine);
  font-weight: 900; font-family: var(--font); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px;
}
.menu-btn { display: none; margin-left: auto; background: none; border: none; font-size: 30px; color: var(--pine); cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(20, 45, 34, .66) 0%, rgba(20, 45, 34, .40) 55%, rgba(253, 246, 236, .97) 100%),
    url("../images/hero-rv.jpg") center / cover no-repeat;
}
.hero-in { max-width: 1080px; margin: 0 auto; padding: 70px 20px 90px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 54px); max-width: 640px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p.tag { color: #ffeede; font-size: clamp(18px, 2.8vw, 23px); font-weight: 700; margin: 14px 0 26px; max-width: 560px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-chips span {
  background: rgba(253, 246, 236, .94); color: var(--pine); font-weight: 800; font-size: 14.5px;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow);
}

/* ---------- sub-page hero banner ---------- */
.page-hero {
  position: relative; min-height: 240px; display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(20, 45, 34, .62) 0%, rgba(20, 45, 34, .46) 100%),
    url("../images/entrance-road.jpg") center 60% / cover no-repeat;
}
.page-hero .hero-in { padding: 46px 20px 52px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 44px); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.page-hero p.tag { color: #ffeede; font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; margin: 10px 0 0; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.page-hero.ph-homes { background-image: linear-gradient(180deg, rgba(20,45,34,.62), rgba(20,45,34,.46)), url("../images/rv-exterior-puma.jpg"); }
.page-hero.ph-amen { background-image: linear-gradient(180deg, rgba(20,45,34,.6), rgba(20,45,34,.46)), url("../images/picnic-table.jpg"); }
.page-hero.ph-map { background-image: linear-gradient(180deg, rgba(20,45,34,.62), rgba(20,45,34,.48)), url("../images/entrance-road.jpg"); }
.page-hero.ph-reviews { background-image: linear-gradient(180deg, rgba(20,45,34,.62), rgba(20,45,34,.46)), url("../images/hero-rv.jpg"); }
.page-hero.ph-faq { background-image: linear-gradient(180deg, rgba(20,45,34,.62), rgba(20,45,34,.48)), url("../images/office-laundry.jpg"); }
.page-hero.ph-apply { background-image: linear-gradient(180deg, rgba(20,45,34,.6), rgba(20,45,34,.46)), url("../images/rv-large-interior.jpg"); }

/* ---------- section teaser link + CTA band ---------- */
.teaser-link { display: block; text-align: center; margin-top: 26px; font-weight: 800; font-size: 17px; color: var(--pine-2); }
.cta-band { background: var(--pine-2); color: #fff; text-align: center; padding: 52px 20px; margin-top: 60px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.cta-band p { color: #d8f3dc; font-size: 17px; margin: 10px auto 22px; max-width: 520px; }
.cta-band .btn-primary { background: var(--gold); color: var(--pine); }
.cta-band .btn-primary:hover { background: #f4c94f; }

/* ---------- photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 190px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--pine); }

/* ---------- reviews page extras ---------- */
.review-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.review .who a { color: var(--pine-2); text-decoration: none; }
.google-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 800; color: var(--pine); box-shadow: var(--shadow); font-size: 15px; }

/* ---------- info bar ---------- */
.info-bar { background: var(--pine); color: #fff; }
.info-bar-in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 34px; justify-content: center; padding: 14px 20px; font-weight: 700; font-size: 15.5px; }
.info-bar a { color: var(--gold); text-decoration: none; }

/* ---------- pricing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 2px solid transparent; transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card.featured { border-color: var(--sunset); }
.card-img { height: 150px; background-size: cover; background-position: center; position: relative; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--sunset); color: #fff; font-size: 12.5px; font-weight: 900; padding: 5px 12px; border-radius: 999px; }
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 20px; }
.card-price { font-size: 30px; font-weight: 900; color: var(--sunset-2); }
.card-price small { font-size: 15px; color: #5b6f64; font-weight: 700; }
.card-list { list-style: none; color: #41544a; font-size: 15px; font-weight: 600; }
.card-list li { padding: 3px 0; }
.card .btn { margin-top: auto; font-size: 16px; padding: 12px 18px; }
.avail-note { text-align: center; margin-top: 26px; font-weight: 800; color: var(--pine-2); font-size: 18px; }

/* ---------- amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.amenity { background: #fff; border-radius: var(--radius); padding: 22px 14px; text-align: center; box-shadow: var(--shadow); }
.amenity .ico { font-size: 34px; }
.amenity p { font-weight: 800; color: var(--pine); margin-top: 8px; font-size: 15px; }

/* ---------- map ---------- */
.map-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.map-note { text-align: center; font-size: 14px; color: #76897e; margin-top: 10px; font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.step .num { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold); color: var(--pine); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: #5b6f64; font-size: 15.5px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.review { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review .stars { color: var(--amber); font-size: 19px; letter-spacing: 2px; }
.review p { font-size: 15.5px; color: #41544a; margin: 10px 0 12px; font-style: italic; }
.review .who { font-weight: 800; color: var(--pine); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 800; color: var(--pine); padding: 18px 20px; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--sunset); font-weight: 900; }
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 20px 18px; color: #41544a; font-size: 15.5px; }

/* ---------- apply form ---------- */
.apply-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; }
.apply-card label { font-weight: 800; color: var(--pine); display: block; margin: 16px 0 6px; font-size: 16px; }
.apply-card input, .apply-card select, .apply-card textarea {
  width: 100%; font-family: var(--font); font-size: 17px; padding: 14px 16px;
  border: 2px solid var(--sand); border-radius: 12px; background: var(--cream);
}
.apply-card input:focus, .apply-card select:focus, .apply-card textarea:focus { outline: 3px solid var(--leaf); border-color: var(--leaf); }
.apply-card .btn { width: 100%; margin-top: 22px; }
.apply-ok { text-align: center; padding: 30px 10px; }
.apply-ok .big { font-size: 52px; }
.apply-ok h3 { font-size: 24px; margin: 10px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--pine); color: #cfe8d8; margin-top: 60px; padding: 46px 20px 110px; }
.footer-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; font-size: 15px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 16px; }
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 700; }
.footer-bottom { text-align: center; margin-top: 34px; font-size: 13px; color: #9dbfac; }

/* ---------- sticky mobile call/text bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; gap: 0; box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
.mobile-bar a {
  flex: 1; text-align: center; padding: 16px 8px; font-weight: 900; font-size: 17px;
  text-decoration: none; color: #fff;
}
.mobile-bar .mb-call { background: var(--pine-2); }
.mobile-bar .mb-text { background: var(--sunset); }

/* ---------- chat widget ---------- */
#hrv-chat #chat-fab {
  position: fixed; right: 18px; bottom: 86px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--pine-2); color: #fff; font-size: 27px; box-shadow: var(--shadow);
}
#chat-panel[hidden] { display: none; }
#chat-panel {
  position: fixed; right: 14px; bottom: 158px; z-index: 81;
  width: min(380px, calc(100vw - 28px)); height: min(540px, calc(100vh - 200px));
  background: #fff; border-radius: 20px; box-shadow: 0 12px 44px rgba(27,67,50,.3);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { background: var(--pine); color: #fff; padding: 13px 16px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.chat-head small { font-weight: 600; opacity: .75; font-size: 12px; flex: 1; }
.chat-head button { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; }
.chat-box { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.chat-msg { display: flex; }
.chat-user { justify-content: flex-end; }
.chat-bubble { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: 15px; }
.chat-bot .chat-bubble { background: #fff; border: 1.5px solid var(--sand); border-bottom-left-radius: 4px; }
.chat-user .chat-bubble { background: var(--pine-2); color: #fff; border-bottom-right-radius: 4px; }
.chat-cta { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.chat-cta a { background: var(--sunset); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.chat-quick { display: flex; gap: 7px; padding: 8px 12px; flex-wrap: wrap; background: #fff; border-top: 1.5px solid var(--sand); }
.chat-quick button { background: var(--leaf-soft); border: none; font-family: var(--font); font-weight: 800; color: var(--pine); font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.chat-form input { flex: 1; font-family: var(--font); font-size: 15px; padding: 11px 14px; border: 2px solid var(--sand); border-radius: 999px; }
.chat-form button { background: var(--sunset); color: #fff; border: none; width: 44px; border-radius: 50%; font-size: 17px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 2px solid var(--sand); gap: 6px; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 13px 14px; }
  .menu-btn { display: block; }
  .mobile-bar { display: flex; }
  .hero { min-height: 480px; }
  #hrv-chat #chat-fab { bottom: 78px; }
  #chat-panel { bottom: 150px; }
}

/* ============================================================
   v4 — HTown RV Parks (two parks): main landing, park pages,
   size carousel, park chooser cards, map images
   ============================================================ */
.logo-img { width: 52px; height: 52px; object-fit: contain; }

/* main hero background (new photo) */
.hero-main {
  background:
    linear-gradient(180deg, rgba(20, 45, 34, .66) 0%, rgba(20, 45, 34, .40) 55%, rgba(253, 246, 236, .97) 100%),
    url("../images/Mainbackground.webp") center / cover no-repeat;
}
.hero-park-logo {
  width: 130px; max-width: 40vw; margin-bottom: 14px;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.45));
  background: rgba(253,246,236,.92); border-radius: 16px; padding: 10px;
}

/* park chooser cards (main landing) */
.park-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 860px; margin: 0 auto; }
.park-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 22px; text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease; border: 2.5px solid transparent;
}
.park-card:hover { transform: translateY(-4px); border-color: var(--leaf); }
.park-card-logo img { height: 110px; object-fit: contain; }
.park-card h3 { font-size: 23px; }
.park-addr { color: #5b6f64; font-size: 14.5px; }
.park-chip { font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.park-chip.open { background: var(--leaf-soft); color: var(--pine-2); }
.park-chip.wait { background: #fff1ea; color: var(--sunset-2); }
.park-visit { font-weight: 800; color: var(--sunset-2); margin-top: 4px; }

/* size tabs + photo carousel */
.size-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.size-tab {
  font-family: var(--font); font-weight: 800; font-size: 16px; cursor: pointer;
  border: 2.5px solid var(--pine-2); background: #fff; color: var(--pine);
  border-radius: 999px; padding: 10px 20px; display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.size-tab small { font-weight: 700; font-size: 12px; color: var(--sunset-2); }
.size-tab.active { background: var(--pine-2); color: #fff; }
.size-tab.active small { color: var(--gold); }
.carousel { display: flex; align-items: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.car-frame { position: relative; flex: 1; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.car-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.car-frame img.show { opacity: 1; }
.car-arrow {
  background: #fff; border: 2.5px solid var(--pine-2); color: var(--pine); cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; font-weight: 900; line-height: 1;
  box-shadow: var(--shadow); flex-shrink: 0;
}
.car-arrow:hover { background: var(--leaf-soft); }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.car-dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: #cfd8d2; cursor: pointer; padding: 0; }
.car-dot.on { background: var(--pine-2); }

/* park map image (real map drawings) */
.map-img-wrap { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.map-img-wrap img { width: 100%; border-radius: 12px; }

/* back-to-all-parks nav link */
.nav-back { color: var(--sunset-2) !important; }

@media (max-width: 760px) {
  .car-arrow { width: 38px; height: 38px; font-size: 20px; }
  .hero-park-logo { width: 100px; }
}

/* v4.1 — generated SVG park maps */
.park-map-svg { width: 100%; height: auto; display: block; }
.map-wrap, .map-img-wrap { max-width: 980px; }
