/* ===== Cedar Park Family Retreat — Design Tokens =====
   Palette pulled from the property's own decor:
   - Limestone: warm hill-country stone (backgrounds)
   - Denim Navy: the Texas star sign, front-door trim
   - Mustard Gold: sunflower pillows, "Y'all Need Coffee" mug
   - Barnwood: dresser + furniture wood tones
   - Live Oak: the mature backyard oak canopy
*/
:root {
  --limestone: #EFE8D8;
  --limestone-dark: #E2D8C0;
  --navy: #263449;
  --navy-deep: #1A2434;
  --gold: #C99A2E;
  --gold-light: #E3B94C;
  --barnwood: #6B4A34;
  --oak: #6E7F5C;
  --cream-text: #FAF7F0;
  --ink: #2A2620;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 3px;
  --wood-radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--limestone);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; font-weight: 600; }
h3 { font-size: 1.2rem; color: var(--barnwood); margin-top: 1.4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--cream-text);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; font-size: 0.88rem; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy-deep); padding: 8px 16px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.85rem;
  text-decoration: none;
}
@media (max-width: 720px) { .nav-links { display: none; } }

.nav-hamburger { display: none; background: none; border: none; color: var(--cream-text); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: var(--cream-text);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,36,52,0.35) 0%, rgba(26,36,52,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 56px; width: 100%; }
.hero .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.6); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0.15em 0; max-width: 900px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-sub { font-size: 1.15rem; max-width: 560px; opacity: 0.92; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; font-size: 0.95rem; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--cream-text); border: 1.5px solid rgba(250,247,240,0.55); }
.btn-ghost:hover { border-color: var(--cream-text); }

/* ===== Plank tiles (signature element) ===== */
.tile-row { display: flex; gap: 14px; flex-wrap: wrap; }
.plank-tile {
  background: var(--barnwood);
  background-image: linear-gradient(90deg, rgba(255,255,255,0.05) 0px, transparent 2px, transparent 8px, rgba(0,0,0,0.06) 9px);
  color: var(--cream-text);
  border-radius: var(--wood-radius);
  padding: 14px 18px;
  min-width: 108px;
  text-align: center;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.12);
}
.plank-tile .tile-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; display: block; }
.plank-tile .tile-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }

/* ===== Sections ===== */
section { padding: 88px 0; }
.section-navy { background: var(--navy); color: var(--cream-text); }
.section-navy .eyebrow { color: var(--gold-light); }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.lede { font-size: 1.15rem; max-width: 640px; color: #4a4438; }
.section-navy .lede { color: rgba(250,247,240,0.85); }

/* ===== Amenity planks ===== */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; margin-top: 28px; }
.amenity-plank {
  background: var(--limestone-dark);
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===== Gallery ===== */
.gallery-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.gallery-nav button {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--navy); background: transparent;
  color: var(--navy); cursor: pointer;
}
.gallery-nav button.active, .gallery-nav button:hover { background: var(--navy); color: var(--cream-text); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.gallery-grid img {
  width: 100%; height: 165px; object-fit: cover; border-radius: var(--radius); cursor: pointer;
  transition: transform 0.2s;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-cat-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--barnwood); margin: 30px 0 10px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,16,10,0.92); z-index: 200;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 22px; right: 30px; color: var(--cream-text); font-size: 2rem; cursor: pointer; background:none; border:none; }
.lightbox-nav { color: var(--cream-text); font-size: 2.4rem; cursor: pointer; background: none; border: none; padding: 0 26px; }
.lightbox-bar { display: flex; align-items: center; }

/* ===== Booking card ===== */
.booking-card {
  background: var(--cream-text); border-radius: var(--wood-radius);
  padding: 28px; box-shadow: 0 16px 40px rgba(26,36,52,0.18);
  position: sticky; top: 88px;
}
.price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
#priceDisplay { color: var(--ink); }
.price-line .amt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; }
.price-line .unit { font-family: var(--font-mono); font-size: 0.8rem; color: #8a8272; }
.price-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--oak); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-row label, .form-field label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8a8272; display: block; margin-bottom: 4px; }
.form-row input, .form-field input, .form-row select, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 1px solid #ddd3bc; font-family: var(--font-body); font-size: 0.95rem; background: var(--cream-text);
}
.form-field { margin-bottom: 14px; }
.booking-card .btn-primary { width: 100%; text-align: center; margin-top: 6px; }
.sync-note { font-size: 0.78rem; color: #8a8272; margin-top: 14px; line-height: 1.5; }

/* ===== Calendar widget ===== */
.calendar-widget { background: var(--limestone); border-radius: var(--radius); padding: 12px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-header button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--navy); padding: 4px 10px; }
.cal-header button:disabled { color: #ccc4b0; cursor: default; }
.cal-month-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--barnwood); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-family: var(--font-mono); font-size: 0.62rem; text-align: center; color: #8a8272; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border-radius: var(--radius); cursor: pointer; background: var(--cream-text); color: var(--ink); }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.disabled { color: #8a8272; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.cal-day.today { border: 1px solid var(--gold); }
.cal-day.selected { background: var(--navy); color: var(--cream-text); font-weight: 600; }
.cal-day.in-range { background: var(--gold-light); }
.cal-day:not(.disabled):not(.empty):hover { background: var(--gold-light); }

/* ===== Neighborhood ===== */
.attraction-list { display: grid; gap: 10px; margin-top: 24px; }
.attraction-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--cream-text); border-radius: var(--radius); padding: 10px; }
.attraction-row img { height: 76px; width: 96px; object-fit: cover; border-radius: var(--radius); }
.attraction-row h4 { margin: 0 0 2px; font-size: 1rem; }
.attraction-row p { margin: 0; font-size: 0.86rem; color: #6b6455; }
.stock-flag { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold); }

/* ===== Testimonials ===== */
.rating-badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }
.rating-badge {
  background: var(--navy); color: var(--cream-text); border-radius: var(--wood-radius);
  padding: 16px 22px; text-align: center; min-width: 140px;
}
.rating-badge .badge-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; display: block; color: var(--gold-light); }
.rating-badge .badge-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testimonial-card { background: var(--limestone-dark); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.testimonial-card .stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 1px; }
.testimonial-card .quote { font-style: italic; font-size: 0.95rem; color: var(--ink); margin: 0 0 12px; line-height: 1.5; }
.testimonial-card .attribution { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--barnwood); }

.testimonial-carousel { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.testimonial-track { flex: 1; min-width: 0; position: relative; }
.testimonial-track .testimonial-card { display: none; max-width: 640px; margin: 0 auto; min-height: 140px; }
.testimonial-track .testimonial-card.active { display: block; animation: fadeIn 0.9s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.carousel-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1.5px solid var(--navy); color: var(--navy);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.carousel-arrow:hover { background: var(--navy); color: var(--cream-text); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: #ccc4b0; border: none; cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--gold); }

/* ===== Policies ===== */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-top: 30px; }
.policy-card h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.policy-card p, .policy-card li { font-size: 0.92rem; color: rgba(250,247,240,0.85); }
.policy-card ul { padding-left: 18px; margin: 0; }

/* ===== Booking confirmation banner ===== */
.booking-banner {
  padding: 16px 24px; text-align: center; font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  animation: slideDown 0.4s ease;
  max-height: 100px; overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}
.booking-banner.closing { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
.booking-banner.success { background: var(--gold); color: var(--navy-deep); }
.booking-banner.cancelled { background: var(--limestone-dark); color: var(--ink); border-bottom: 1px solid #ddd3bc; }
.booking-banner button {
  background: none; border: 1.5px solid currentColor; border-radius: 50%;
  width: 24px; height: 24px; line-height: 1; cursor: pointer; color: inherit;
  font-size: 0.9rem; flex-shrink: 0;
}
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== Footer ===== */
footer { background: var(--navy-deep); color: rgba(250,247,240,0.7); padding: 46px 0; font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--gold-light); text-decoration: none; }
.footer-banner {
  border: 1px solid rgba(201,154,46,0.35);
  background: rgba(201,154,46,0.08);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.92rem;
  color: rgba(250,247,240,0.85);
  width: 100%;
}
.footer-banner a { color: var(--gold-light); font-weight: 600; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .booking-card { position: static; }
  .nav-hamburger { display: block; }
  .nav { position: relative; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 18px 24px 22px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    z-index: 60;
  }
}
