/* ============================================
   FIREFLY STAYS — DESIGN SYSTEM
   Cabins in Florida & Georgia.
   Twilight, screen porches, Spanish moss, fireflies.
============================================ */

:root {
  /* Palette — warm cream, moss, ember, ink */
  --cream: #f5efe1;
  --cream-deep: #ece4d1;
  --white: #fdfaf3;
  --moss: #4f5d3f;
  --moss-dark: #3a4530;
  --ember: #c97a4f;
  --ember-soft: #e6a986;
  --ink: #2a2a26;
  --mist: #8a8676;
  --line: #d8d1bd;

  /* Type */
  --font-serif: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Radii + shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(42, 42, 38, 0.06), 0 6px 16px rgba(42, 42, 38, 0.05);
  --shadow-md: 0 4px 14px rgba(42, 42, 38, 0.08), 0 14px 40px rgba(42, 42, 38, 0.08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--moss-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ember); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--moss-dark); }

p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 1rem;
}

.italic-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Cabins page — region sections */
.cabins-region { padding: 4rem 0 2rem; }
.cabins-region:first-of-type { padding-top: 3rem; }
.cabins-region + .cabins-region { border-top: 1px solid var(--line); }
.region-head { max-width: 640px; margin: 0 0 2.5rem; }
.region-head .eyebrow { margin-bottom: .35rem; }
.region-head h2 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.region-sub { color: var(--mist); font-size: 1rem; margin: 0; max-width: 540px; }

/* Property tile — brown rounded backdrop for grouping cabins on one property.
   Decorative only — extends WIDER than the cards via negative margin + matching
   positive padding (so cards inside stay aligned with cards outside the tile). */
.property-tile {
  background: var(--cream-deep);
  border-radius: var(--r-lg);
  /* Negative horizontal margin extends the tile past the container edges;
     matching positive padding keeps the inner cards in their original position. */
  margin: 0 -2.5rem 2.5rem;
  padding: 2rem 2.5rem 2.25rem;
}
@media (max-width: 900px) {
  .property-tile { margin: 0 -1rem 2rem; padding: 1.5rem 1rem 1.75rem; }
}
.property-tile + .cabins-grid,
.cabins-grid + .property-tile { margin-top: 0; }
.property-tile .property-head { padding: 0; }    /* subhead aligns with first card */
.property-tile .cabins-grid { padding: 0; }

.property-head { margin: 0 0 1.5rem; }
.property-head h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 .35rem;
  color: var(--moss-dark);
}
.property-sub { color: var(--mist); font-size: .95rem; margin: 0; max-width: 540px; line-height: 1.55; }

/* Property note — small caption under a region grid that explains a sub-property */
.property-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-deep);
  border-left: 3px solid var(--moss);
  border-radius: var(--r-sm);
  max-width: 720px;
}
.property-note strong {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--moss-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--moss); color: var(--white); }
.btn-primary:hover { background: var(--moss-dark); color: var(--white); transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: var(--white); }
.btn-ember:hover { background: #b46640; color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--moss-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 225, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(216, 209, 189, 0.6);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}
/* Brand logo — PNG with the wordmark baked in. The "Porch & Pine" text in
   the HTML is hidden via font-size:0 but stays in the DOM for screen readers.
   Logo PNG has built-in transparent padding so contain-sizing renders cleanly. */
.brand {
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  color: var(--ink);
  font-size: 0;          /* hides inline "Porch & Pine" text */
  line-height: 1;        /* keep normal line-box so child block isn't squeezed */
}
.brand:hover { color: var(--moss-dark); }
.brand-mark {
  display: block;
  width: 380px;
  height: 261px;
  background: url('../img/porch_pine_v5_tight.png') center/contain no-repeat;
  overflow: visible;
}
.brand-mark::after { content: none; }
.footer-brand .brand-mark {
  width: 340px;
  height: 235px;
  background-image: url('../img/porch_pine_v5_tight.png');
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ember); }
.nav-cta { margin-left: 1rem; }

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

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem var(--gutter); width: 100%; }
  .nav-cta { margin: .75rem var(--gutter) 0; }
  .nav-toggle { display: block; }
  .brand-mark { width: 200px; height: 137px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,42,38,.25) 0%, rgba(42,42,38,.55) 70%, rgba(42,42,38,.7) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 8rem 0 6rem;
  max-width: 760px;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--ember-soft); font-weight: 400; }
.hero p { font-size: 1.2rem; color: rgba(253, 250, 243, .92); max-width: 560px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }

/* Compact hero (interior pages) */
.hero-compact {
  min-height: 42vh;
  padding: 4rem 0;
}
.hero-compact .hero-inner { padding: 4rem 0 3rem; }

/* ---------- Cabin grid ---------- */
.cabins-grid {
  display: grid;
  /* Fixed 3-column layout so every cabin card is the same width and every grid's
     left edge aligns vertically across sections (Trails End tile, Outpost solo, Georgia). */
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}
@media (max-width: 900px) { .cabins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cabins-grid { grid-template-columns: 1fr; } }
.cabin-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.cabin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cabin-card a { color: inherit; display: contents; }
.cabin-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cabin-pill {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(245, 239, 225, 0.95);
  color: var(--moss-dark);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
}
.cabin-pill.coming-soon { background: rgba(201, 122, 79, 0.95); color: var(--white); }
.cabin-body { padding: 1.5rem 1.6rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.cabin-body h3 { margin-bottom: .35rem; font-size: 1.4rem; }
.cabin-meta { color: var(--mist); font-size: .92rem; margin-bottom: .8rem; letter-spacing: .02em; }
.cabin-blurb { color: var(--ink); font-size: .98rem; flex: 1; }
.cabin-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cabin-foot .price { font-family: var(--font-serif); font-size: 1.2rem; }
.cabin-foot .price small { font-family: var(--font-sans); font-size: .8rem; color: var(--mist); font-weight: 500; }
.cabin-foot .arrow { font-size: 1.1rem; color: var(--ember); font-weight: 600; }

/* ---------- Two-column "story" section ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; background-size: cover; background-position: center; }
.story-text h2 em { font-style: italic; color: var(--ember); }
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
  .story-img { aspect-ratio: 4/3; }
}

/* ---------- Highlight strip (4-up) ---------- */
.highlights {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.highlight {
  text-align: center;
}
.highlight .icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
  display: inline-block;
}
.highlight h4 { margin-bottom: .3rem; }
.highlight p { color: var(--mist); margin: 0; font-size: .95rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--moss-dark);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner h2 em { color: var(--ember-soft); }
.cta-banner p { color: rgba(245, 239, 225, .85); max-width: 540px; margin: 0 auto 1.75rem; }
.cta-banner .porch-light {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember-soft);
  box-shadow: 0 0 16px 4px var(--ember);
  opacity: .6;
}
.cta-banner .porch-light:nth-child(1) { top: 20%; left: 10%; }
.cta-banner .porch-light:nth-child(2) { top: 60%; left: 88%; }
.cta-banner .porch-light:nth-child(3) { top: 30%; left: 75%; }
.cta-banner .porch-light:nth-child(4) { top: 80%; left: 18%; }

/* ---------- Cabin detail page ---------- */
.cabin-hero {
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cabin-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(42,42,38,.6) 0%, transparent 60%);
}
.cabin-hero-inner {
  position: relative; z-index: 1;
  color: var(--white);
  padding: 5rem 0 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 60vh;
}
.cabin-hero h1 { color: var(--white); margin-bottom: .25rem; }
.cabin-hero .location { color: rgba(255,255,255,.85); letter-spacing: .04em; }

.cabin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;          /* widened so Hostaway calendar fits */
  gap: 3rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .cabin-detail-grid { grid-template-columns: 1fr; } }

.cabin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cabin-stat .label { font-size: .75rem; color: var(--mist); letter-spacing: .12em; text-transform: uppercase; }
.cabin-stat .val { font-family: var(--font-serif); font-size: 1.4rem; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.amenities-grid li {
  list-style: none;
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
}
.amenities-grid li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--ember);
}
ul.amenities-grid { padding: 0; margin: 1.5rem 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
}

.book-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.book-card h3 { margin-bottom: .5rem; }
.book-card .price { font-family: var(--font-serif); font-size: 1.8rem; color: var(--moss-dark); }
.book-card .price small { font-family: var(--font-sans); font-size: .9rem; color: var(--mist); font-weight: 500; }
.book-card .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }
.book-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.book-card .small { font-size: .85rem; color: var(--mist); }

/* ============================================
   Custom Airbnb-style booking card
============================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.book-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.book-price { display: inline-flex; align-items: baseline; gap: .25rem; }
.book-price-amt {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
}
.book-price-suffix { font-size: .95rem; color: var(--mist); }
.book-rating { font-size: .9rem; color: var(--mist); }

/* Date input grid — looks like Airbnb's two-cell box */
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.date-grid + .guests-field { border-top: 0; border-radius: 0 0 12px 12px; }
.date-grid {
  border-radius: 12px 12px 0 0;
}
.date-field, .guests-field {
  background: transparent;
  border: 0;
  padding: .65rem .85rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: background .15s ease;
}
.date-field:hover, .guests-field:hover { background: rgba(216, 209, 189, 0.25); }
.date-field:first-child { border-right: 1px solid var(--line); }
.date-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .15rem;
}
.date-value {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}
.date-value:empty::before, .date-field .date-value:not(:empty) { color: var(--ink); }
.guests-field {
  border: 1px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--white);
}
.guests-popover {
  position: relative;
  margin-top: -2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 5;
}
.guests-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.guests-row-title { font-weight: 600; }
.guests-row-sub { font-size: .85rem; color: var(--mist); }
.guests-stepper { display: flex; align-items: center; gap: .9rem; }
.g-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.g-btn:disabled { opacity: .35; cursor: not-allowed; }
.g-btn:not(:disabled):hover { border-color: var(--ember); color: var(--ember); }
.g-count { min-width: 1.2em; text-align: center; }

/* Reserve button — full-width ember, prominent */
.reserve-btn {
  width: 100%;
  margin-top: 1rem;
  padding: .95rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
}
.reserve-btn:disabled { opacity: .55; cursor: not-allowed; }
.reserve-note {
  text-align: center;
  font-size: .85rem;
  color: var(--mist);
  margin: .75rem 0;
}

/* Price breakdown */
.price-breakdown {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .55rem;
}
.bd-row { display: flex; justify-content: space-between; font-size: .95rem; }
.bd-fees { color: var(--mist); }
.bd-total {
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  margin-top: .25rem;
  font-weight: 600;
  font-size: 1rem;
}

.reserve-trust {
  font-size: .75rem;
  color: var(--mist);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ============================================
   Flatpickr restyle — Airbnb-flavored
============================================ */
.flatpickr-calendar {
  font-family: var(--font-sans);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(42, 42, 38, 0.16), 0 4px 12px rgba(42, 42, 38, 0.08);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1rem;
  width: auto !important;     /* override flatpickr's fixed widths for 2-month layout */
}
.flatpickr-calendar.open { z-index: 100; }
.flatpickr-months { padding: 0 0 1rem 0; }
.flatpickr-month {
  height: auto;
  font-family: var(--font-serif);
  color: var(--ink);
}
.flatpickr-current-month {
  font-size: 1rem;
  font-weight: 500;
  padding-top: .5rem;
  font-family: var(--font-serif);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { font-family: var(--font-serif); }
.flatpickr-prev-month, .flatpickr-next-month {
  fill: var(--ink);
  padding: 8px;
  border-radius: 50%;
  transition: background .15s;
}
.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
  background: rgba(216, 209, 189, 0.4);
}
.flatpickr-weekday {
  font-size: .75rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.flatpickr-day {
  border-radius: 50%;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  margin: 1px 0;
  max-width: 38px;
  height: 38px;
  line-height: 38px;
  transition: background .12s, color .12s;
}
.flatpickr-day:hover { background: rgba(79, 93, 63, 0.08); color: var(--ink); }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--line);
  text-decoration: line-through;
  background: transparent !important;
}
.flatpickr-day.today {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.flatpickr-day.today:hover {
  background: rgba(79, 93, 63, 0.08);
}

/* Range — light fill between, dark circles on endpoints */
.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
  background: rgba(79, 93, 63, 0.14);
  color: var(--ink);
  border-radius: 0;
  box-shadow: -5px 0 0 rgba(79, 93, 63, 0.14), 5px 0 0 rgba(79, 93, 63, 0.14);
}
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected:hover {
  background: var(--moss-dark);
  color: var(--cream);
  border-radius: 50%;
  box-shadow: none;
}
.flatpickr-day.startRange.endRange { border-radius: 50%; }
.flatpickr-day.startRange:not(.endRange) {
  border-radius: 50% 0 0 50%;
}
.flatpickr-day.endRange:not(.startRange) {
  border-radius: 0 50% 50% 0;
}

/* On screens where the popover would overflow, allow horizontal scroll */
@media (max-width: 720px) {
  .flatpickr-calendar { padding: .5rem; }
  .flatpickr-day { max-width: 32px; height: 32px; line-height: 32px; }
}

/* Make sure the book-card still doesn't allow overflow from inner shadows etc.
   But let the date picker overlay escape since flatpickr renders to body. */
.book-card { overflow: visible; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--moss-dark); font-weight: 600; margin-bottom: .35rem; display: block; }
input, textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: var(--moss); }
textarea { resize: vertical; min-height: 140px; }

/* ---------- Filters (cabins page) ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-bottom: 3rem;
}
.filter-chip {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-chip:hover { background: var(--white); }
.filter-chip.active { background: var(--moss); color: var(--white); border-color: var(--moss); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--moss-dark);
  color: rgba(245, 239, 225, .82);
  padding: 4.5rem 0 2rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--ember-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); font-size: 1.6rem; margin-bottom: .75rem; }
.footer-brand p { color: rgba(245, 239, 225, .65); font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: var(--ember-soft); font-size: .82rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; font-size: .95rem; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 225, .12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem;
  color: rgba(245, 239, 225, .55);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.divider {
  width: 60px;
  height: 2px;
  background: var(--ember);
  margin: 1rem auto;
  border: 0;
}
.divider.left { margin-left: 0; }

/* ---------- Animations ---------- */
@keyframes glow {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.porch-light { animation: glow 3s ease-in-out infinite; }
.porch-light:nth-child(2) { animation-delay: .6s; }
.porch-light:nth-child(3) { animation-delay: 1.2s; }
.porch-light:nth-child(4) { animation-delay: 1.8s; }
