/* ============================================================
   RVStyle — editorial magazine design system
   Light theme: paper / ink / forest / sunset
   Fraunces (serif display) + Inter (UI/body)
   ============================================================ */

:root {
  --paper: #faf7f2;
  --paper-2: #f3eee5;
  --ink: #1d1a16;
  --ink-soft: #4c463d;
  --ink-faint: #857d70;
  --forest: #2e5339;
  --forest-deep: #21402b;
  --sunset: #c96f3b;
  --sunset-soft: #e9c9b2;
  --sand: #e8e0d3;
  --white: #ffffff;
  --star: #d99a2b;
  --ok: #2e7d4f;
  --err: #b3452f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(29, 26, 22, .08);
  --shadow-lg: 0 14px 44px rgba(29, 26, 22, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-deep); }

/* ============ TYPE ============ */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sunset);
}

.dek {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.5;
}

.byline {
  font-size: .82rem;
  color: var(--ink-faint);
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}
.byline b { color: var(--ink-soft); font-weight: 600; }
.byline .dot::before { content: "·"; }

/* ============ LAYOUT ============ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section { padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.section:last-of-type { padding-bottom: clamp(3rem, 8vw, 6.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 2px solid var(--ink);
  padding-bottom: .9rem;
}
.section-head .more {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-head .more::after { content: " →"; }

/* ============ HEADER / NAV ============ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo em { font-style: italic; color: var(--sunset); }
.main-nav { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); align-items: center; }
.main-nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--sunset); }
.main-nav a.cta {
  background: var(--forest);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 999px;
  border-bottom: none;
}
.main-nav a.cta:hover { background: var(--forest-deep); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,.05) 30%, rgba(20,18,14,.78) 100%);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero .kicker { color: var(--sunset-soft); }
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .dek { color: rgba(255,255,255,.88); max-width: 55ch; margin-top: .8rem; }
.hero .byline { color: rgba(255,255,255,.75); margin-top: 1rem; }
.hero .byline b { color: var(--white); }
.hero-sm { min-height: 46vh; }

.img-credit {
  position: absolute;
  right: .8rem;
  bottom: .5rem;
  z-index: 2;
  font-size: .68rem;
  color: rgba(255,255,255,.65);
}

/* ============ CARDS ============ */

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: block; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: .9rem;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.04); }
.card .kicker { display: block; margin-bottom: .3rem; }
.card h3 { margin-bottom: .35rem; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card p { font-size: .9rem; color: var(--ink-soft); }
.card .byline { margin-top: .5rem; }

.card-feature { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; }
.card-feature .thumb { aspect-ratio: 16 / 10; }
.card-feature h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ============ PILLS / CHIPS / BADGES ============ */

.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill {
  font-size: .74rem;
  font-weight: 600;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--sand);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill.accent { background: var(--sunset); border-color: var(--sunset); color: var(--white); }
.pill.forest { background: var(--forest); border-color: var(--forest); color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--sand);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 4px;
  background: var(--sunset);
  color: var(--white);
}

.stars { color: var(--star); letter-spacing: .1em; font-size: .95rem; white-space: nowrap; }

.price { font-weight: 700; color: var(--forest); }

/* ============ BUTTONS / FORMS ============ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--forest);
  color: var(--white);
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: var(--forest-deep); color: var(--white); }
.btn.sunset { background: var(--sunset); }
.btn.sunset:hover { background: #b25d2d; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: .5rem 1.1rem; font-size: .82rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }

label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .3rem; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest);
}
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hint { font-size: .76rem; color: var(--ink-faint); margin-top: .3rem; }

/* honeypot — visually gone, present for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg { padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-top: 1rem; display: none; }
.form-msg.ok { display: block; background: #e5f2ea; color: var(--ok); }
.form-msg.err { display: block; background: #f7e6e1; color: var(--err); }

/* ============ PANELS / BANDS ============ */

.panel {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}

.band {
  background: var(--forest);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.band h2 { color: var(--white); margin-bottom: .6rem; }
.band p { color: rgba(255,255,255,.85); max-width: 55ch; margin: 0 auto 1.5rem; }
.band .kicker { color: var(--sunset-soft); }

.band-paper { background: var(--paper-2); }

/* ============ ARTICLE BODY ============ */

.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-size: 1.55rem;
  margin: 2.6rem 0 1rem;
}
.article-body h3 { margin: 2rem 0 .8rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--forest);
  border-left: 3px solid var(--sunset);
  padding-left: 1.4rem;
  margin: 2.4rem 0;
}
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 600;
  float: left;
  line-height: .82;
  padding-right: .12em;
  color: var(--forest);
}
.article-body img { border-radius: var(--radius); margin: 1.8rem 0; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ PARK DETAIL ============ */

.park-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.booking-card { position: sticky; top: 84px; }
.booking-card h3 { margin-bottom: .3rem; }
.booking-card .sub { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.1rem; }

.review {
  border-top: 1px solid var(--sand);
  padding: 1.3rem 0;
}
.review .rhead { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.review h4 { font-family: var(--serif); font-size: 1.05rem; }
.review p { font-size: .93rem; color: var(--ink-soft); margin-top: .4rem; }

.rating-summary { display: flex; align-items: center; gap: .7rem; }
.rating-summary .big { font-family: var(--serif); font-size: 2rem; font-weight: 700; }

/* ============ TABLES (admin) ============ */

table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); padding: .5rem .6rem; border-bottom: 2px solid var(--sand); }
td { padding: .6rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
tr:hover td { background: var(--paper-2); }

/* ============ MODAL ============ */

.overlay {
  position: fixed; inset: 0;
  background: rgba(29,26,22,.6);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.overlay.show { display: flex; }
.modal {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal .close-x {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--ink-faint);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 1rem 0; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink);
  color: rgba(250,247,242,.75);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  font-size: .88rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .logo { color: var(--paper); margin-bottom: .6rem; display: inline-block; }
.site-footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--paper); margin-bottom: .8rem; }
.site-footer a { color: rgba(250,247,242,.75); display: block; padding: .18rem 0; }
.site-footer a:hover { color: var(--paper); }
.site-footer .fine {
  border-top: 1px solid rgba(250,247,242,.15);
  padding-top: 1.4rem;
  font-size: .76rem;
  color: rgba(250,247,242,.5);
}

/* ============ UTILITIES ============ */

.center { text-align: center; }
.muted { color: var(--ink-faint); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-faint);
}
.empty-state h2 { color: var(--ink-soft); margin-bottom: .5rem; }

.skeleton { background: linear-gradient(90deg, var(--sand) 25%, var(--paper-2) 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .park-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 56vh; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    flex-direction: column;
    align-items: stretch;
    padding: .8rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
    gap: .2rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .55rem 0; border-bottom: none; }
  .main-nav a.cta { text-align: center; margin-top: .5rem; }
}
