/* ==========================================================================
   pages/book.css — book.html
   --------------------------------------------------------------------------
   Project:   Kali Villas Mentawai
   Layer:     Page (ITCSS)
   Loaded by: book.html (LAST)
   --------------------------------------------------------------------------
   Page sections, in document order:
     1. Page header        — two-column intro + booking info cards
     2. Form section       — sidebar (sticky) + native enquiry form
     3. Ferry notice       — quick-glance ferry schedule above the form
     4. Rates section      — Off / Peak / Groups pricing cards
   ========================================================================== */


/* ==========================================================================
   1. Page header
   --------------------------------------------------------------------------
   .page-header / .page-title / .header-body are shared rules — see
   css/components.css §10. This file only adds the booking-specific info
   cards rendered inside the header.
   ========================================================================== */

/* Booking info cards (Villa / Stay) — compact so they don't push the
   actual enquiry form below the fold. */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 1.75rem;
  border: 0.5px solid var(--sand-deeper);
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: var(--sand-dark);
}
.info-card-icon {
  min-width: 56px;
  padding-top: 0.05rem;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
}
.info-card-text {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--navy-muted);
}
.info-card-text strong {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 400;
  color: var(--navy);
}


/* ==========================================================================
   2. Form section — sidebar + form
   ========================================================================== */
.form-section {
  background: var(--sand-dark);
  border-top: 0.5px solid var(--sand-deeper);
  border-bottom: 0.5px solid var(--sand-deeper);
}
.form-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

.form-sidebar {
  position: sticky;
  top: 7rem;
}
.form-sidebar-title {
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--navy);
}
.form-sidebar-title em {
  font-style: italic;
  color: var(--terra);
}
.form-sidebar-body {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--navy-muted);
}
.sidebar-divider {
  width: 32px;
  height: 1px;
  margin: 1.75rem 0;
  background: var(--terra);
}
.response-promise {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--terra);
}

/* WhatsApp escape hatch — sits BELOW the form (inside .enquiry-wrap, after
   .enquiry-thanks). Centered, with a small "or" divider above so it reads
   as a deliberate fallback rather than competing with the Send Enquiry CTA. */
.enquiry-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--sand-deeper);
}
.enquiry-whatsapp-or {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--navy-dim);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: var(--sand-dark);
  border: 0.5px solid var(--sand-deeper);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-muted);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.whatsapp-link:hover {
  background: var(--sand);
  border-color: var(--navy-muted);
  color: var(--navy);
}
.wa-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: #25d366;
}

/* ==========================================================================
   Native enquiry form
   --------------------------------------------------------------------------
   A styled <form id="enquiry-form"> + Cloudflare Turnstile widget that
   POSTs JSON to /api/enquiry. See js/enquiry.js for the client-side flow
   and functions/api/enquiry.js for the server-side Turnstile verify +
   email + sheet write.
   ========================================================================== */
/* The form sits directly inside .form-section (which already provides the
   sand-dark background + top/bottom borders that frame the area). The old
   nested .enquiry-wrap "panel" introduced an inner box that was visually
   hard to centre on narrow viewports — without the box, alignment falls
   out of the section's existing horizontal padding. */
.enquiry-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Honeypot — visually hidden but still in the layout for bots to find */
.enquiry-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form layout */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.enquiry-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.enquiry-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .enquiry-grid-2 { grid-template-columns: 1fr; }
}

/* Labels */
.enquiry-form label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.enquiry-req {
  margin-left: 0.15em;
  color: var(--terra);
}

/* Inline hint shown below an input — example formats, gentle reminders */
.enquiry-help {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 300;
  font-style: italic;
  color: var(--navy-dim);
}

/* Inputs.
   NOTE: flatpickr's "altInput" pattern injects a visible <input type="text">
   sibling next to the original (hidden) input, so the existing type="text"
   selector picks it up automatically — no extra rules needed. */
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"],
.enquiry-form input[type="date"],
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--sand);
  border: 0.5px solid var(--sand-deeper);
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #fbf7ee;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: var(--navy-dim);
  font-style: italic;
}
.enquiry-form textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.enquiry-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%233d4f6e' stroke-width='1' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

/* Invalid state — applied by js/enquiry.js (.is-invalid class) when a
   field fails validation on submit. Applied to BOTH the original input
   (for aria) and the .enquiry-row (so flatpickr's visible alt-input,
   which is a sibling of the hidden original, also gets the styling).
   Auto-clears as the user starts fixing the field. The native :invalid
   pseudo is no longer relied on — we control the validation lifecycle
   in JS for tone + i18n consistency. */
.enquiry-form input.is-invalid,
.enquiry-form select.is-invalid,
.enquiry-form textarea.is-invalid,
.enquiry-row.is-invalid input,
.enquiry-row.is-invalid select,
.enquiry-row.is-invalid textarea {
  border-color: var(--terra);
  background: #fbf3ee;
}

/* Inline field-error message — sits directly under the offending input.
   Editorial tone: small, italic, terra. Animates in so the appearance
   itself reads as a correction prompt rather than a hard rejection. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--terra);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.field-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* The "!" mark — small terra circle. Standalone glyph (no SVG dep) so
   the bullet is consistent across platforms and renders even offline. */
.field-error::before {
  content: '!';
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: var(--terra);
  color: var(--sand);
  border-radius: 50%;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
}

/* Sticky-nav clearance — when we scrollIntoView a row that's near the
   top of the viewport, give it some breathing room from the fixed nav. */
.enquiry-row {
  scroll-margin-top: 6rem;
}

/* Turnstile "Verification" block — moved by js/enquiry.js between two
   homes depending on viewport:
     • Desktop (≥901px): inside .form-sidebar, in a separate column
       from the Send button (Option B).
     • Mobile  (<901px): at the bottom of the form, after the status
       line (Option C).
   Same DOM node either way — Cloudflare only renders one widget. The
   container styling is shared; the parent-context selectors below
   adjust spacing/look so it reads correctly in either home. */
.enquiry-verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem 1.4rem;
  background: var(--sand-dark);
  border: 0.5px solid var(--sand-deeper);
}
.enquiry-verify-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.enquiry-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.enquiry-verify-note {
  margin: 0.2rem 0 0;
  max-width: 32rem;
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  color: var(--navy-dim);
}
.enquiry-verify-note em {
  font-style: italic;
  color: var(--terra);
}

/* Sidebar context (desktop) — sits beneath the response promise. Reduced
   horizontal padding because the sidebar column is narrower than the
   form column. Top margin pulls it just below the WhatsApp-prompt area. */
.form-sidebar .enquiry-verify {
  margin-top: 2rem;
  padding: 1.25rem 0.75rem 1.35rem;
}

/* Form-bottom context (mobile) — pulled away from the status line above
   so the verification reads as its own block, not a continuation of the
   submit area. */
.enquiry-form .enquiry-verify {
  margin-top: 1.5rem;
}

/* Submit + spinner */
.enquiry-actions {
  margin-top: 0.5rem;
}
.enquiry-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--terra);
  color: var(--sand);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.enquiry-submit:hover { background: var(--terra-light); }
.enquiry-submit:disabled {
  background: var(--navy-dim);
  cursor: wait;
}

/* Spinner — visible when the form is .is-sending */
.enquiry-submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(245, 239, 227, 0.4);
  border-top-color: var(--sand);
  border-radius: 50%;
  animation: enquiry-spin 0.75s linear infinite;
}
.enquiry-form.is-sending .enquiry-submit-spinner { display: inline-block; }
.enquiry-form.is-sending .enquiry-submit-label { opacity: 0.7; }
@keyframes enquiry-spin { to { transform: rotate(360deg); } }

/* Status line — used for inline error messages */
.enquiry-status {
  min-height: 1.2em;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--terra);
}
.enquiry-status:empty { display: none; }

/* Thank-you state — shown when /api/enquiry returns ok */
.enquiry-thanks {
  padding: 2.25rem 2rem;
}
.enquiry-thanks-title {
  margin: 0.75rem 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
}
.enquiry-thanks-title em { font-style: italic; color: var(--terra); }
.enquiry-thanks-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--navy-muted);
}
.enquiry-thanks-body a {
  color: var(--terra);
  text-decoration: none;
}
.enquiry-thanks-body a:hover { text-decoration: underline; }


/* ==========================================================================
   3. Ferry modal — popup overlay shown the first time the user interacts
                    with the WhatsApp button or focuses the enquiry form
                    (driven by js/ferry-modal.js)
   --------------------------------------------------------------------------
   The modal is full-viewport (fixed) with a dimmed backdrop and a centred
   card. Two CTAs: open Getting Here in a new tab, or acknowledge "OK".
   ========================================================================== */
.ferry-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ferry-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ferry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.55);
  backdrop-filter: blur(4px);
}

.ferry-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--sand);
  border: 0.5px solid var(--sand-deeper);
  box-shadow: 0 16px 60px rgba(28, 43, 74, 0.35);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.ferry-modal.is-open .ferry-modal-card {
  transform: translateY(0);
}

.ferry-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--navy-muted);
  cursor: pointer;
  transition: color 0.25s;
}
.ferry-modal-close:hover { color: var(--terra); }

.ferry-modal-title {
  margin: 0.5rem 0 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
}
.ferry-modal-title em {
  font-style: italic;
  color: var(--terra);
}

.ferry-modal-body {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--navy-muted);
}


/* Transit summary — two rows: Mentawai Fast + Susi Air, each row a label
   on the left and operating days on the right. Compact and editorial,
   replaces the previous 4-cell day-time strip. */
.ferry-modal-transit {
  margin: 0;
  border: 0.5px solid var(--sand-deeper);
  background: var(--sand-deeper);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.transit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--sand-dark);
}
.transit-row dt {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.transit-row dd {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  text-align: right;
}
.transit-note {
  margin-left: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy-dim);
}


/* Action row — OK is the primary (terracotta), Getting Here is outlined */
.ferry-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.ferry-modal-cta,
.ferry-modal-ok {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.85rem 1.25rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
/* Secondary — Getting Here, soft terracotta tint (opens in a new tab).
   Visible enough to read as a real action, but quieter than the OK CTA. */
.ferry-modal-cta {
  background: var(--terra-pale);
  color: var(--terra);
  border: 0.5px solid var(--terra);
}
.ferry-modal-cta:hover {
  background: var(--terra);
  color: var(--sand);
}
/* Primary — OK, terracotta filled (the emphasised acknowledge action) */
.ferry-modal-ok {
  background: var(--terra);
  color: var(--sand);
  border: 0.5px solid var(--terra);
}
.ferry-modal-ok:hover { background: var(--terra-light); border-color: var(--terra-light); }


/* ==========================================================================
   4. Rates section — Off / Peak / Groups
   ========================================================================== */
.rates-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 4rem;
}
.rates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand-deeper);
  border: 0.5px solid var(--sand-deeper);
}
/* Cards are <a href="#form"> — neutralise default link styling so they
   read as cards, not links. JS in js/enquiry.js intercepts the click to
   open the calendar / preselect guests; the href is the no-JS fallback. */
.rate-card {
  position: relative;
  display: block;
  padding: 2.5rem 2.25rem;
  background: var(--sand);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
}
.rate-card:hover {
  background: var(--sand-dark);
  transform: translateY(-2px);
}
.rate-card:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: -2px;
}

.rate-season {
  margin-bottom: 1.25rem;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra);
}
.rate-months {
  margin-bottom: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
}
.rate-price {
  margin-bottom: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
}
.rate-price span {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--navy-muted);
}
.rate-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--navy-dim);
}

/* Featured (peak season) variant — softened navy with extra luminance.
   The previous solid --navy gave too hard a contrast against the sand
   page; --navy-soft is one step lighter, and the body text uses warmer,
   less-saturated whites. */
.rate-featured {
  background: var(--navy-soft);
}
.rate-featured:hover {
  background: #3a4d72;            /* one shade lighter again on hover */
}
.rate-featured .rate-season   { color: var(--terra-light); }
.rate-featured .rate-months,
.rate-featured .rate-price    { color: rgba(245, 239, 227, 0.92); }
.rate-featured .rate-price span { color: rgba(245, 239, 227, 0.6); }
.rate-featured .rate-note     { color: rgba(245, 239, 227, 0.55); }

.rate-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  padding: 0.3rem 0.75rem;
  border: 0.5px solid var(--terra-light);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-light);
}

.rates-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 300;
  text-align: right;
  color: var(--navy-dim);
}


/* ==========================================================================
   Mobile breakpoints (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .page-header   { grid-template-columns: 1fr; padding: 9rem 1.75rem 4rem; gap: 2.5rem; }

  /* Match the page-header / rates-section horizontal padding (1.75rem) so
     the form box's left edge lines up vertically with the title and rates
     content above and below — otherwise the box reads as right-shifted. */
  .form-inner    { grid-template-columns: 1fr; padding: 3.5rem 1.75rem; gap: 3rem; }
  .form-sidebar  { position: static; }
  /* On mobile the wrap is the full column — no inner panel padding needed
     since .form-inner already supplies the page gutter. */
  .enquiry-wrap  { max-width: none; padding: 0; }

  .rates-section { padding: 5rem 1.75rem; }
  .rates-header  { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .rates-grid    { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5. Flatpickr — calendar pop-up theme
   --------------------------------------------------------------------------
   The check-in / check-out inputs are upgraded to flatpickr (see
   js/enquiry.js). flatpickr ships its own stylesheet with sensible
   defaults; these rules layer brand colours on top so the pop-up matches
   the rest of the page (sand background, terra accents, navy text).

   Selectors below mirror the class names emitted by flatpickr 4.6 — if you
   upgrade flatpickr major versions, double-check these still apply.
   ========================================================================== */

/* The dropped-down calendar surface */
.flatpickr-calendar {
  background: var(--sand) !important;
  border: 0.5px solid var(--sand-deeper) !important;
  border-radius: 0 !important;
  box-shadow: 0 14px 48px rgba(28, 43, 74, 0.18) !important;
  font-family: 'Jost', sans-serif !important;
  color: var(--navy) !important;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  border-bottom-color: var(--sand-deeper) !important;
  border-top-color:    var(--sand-deeper) !important;
}

/* Header — month name + year + nav arrows */
.flatpickr-months {
  padding: 0.4rem 0.25rem 0.2rem;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year {
  color: var(--navy) !important;
  fill:  var(--navy) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 400 !important;
}
.flatpickr-current-month {
  font-size: 1.05rem !important;
  padding-top: 4px !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-family: 'Cormorant Garamond', serif !important;
  background: var(--sand) !important;
  color: var(--navy) !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: var(--sand-dark) !important;
}
.flatpickr-current-month input.cur-year {
  font-size: 1.05rem !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
  fill:   var(--terra) !important;
  color:  var(--terra) !important;
  padding: 8px !important;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--terra-light) !important;
}

/* Weekday header row */
.flatpickr-weekdays {
  background: transparent !important;
}
span.flatpickr-weekday {
  background: transparent !important;
  color: var(--navy-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

/* Day cells */
.flatpickr-day {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--navy) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 300 !important;
  max-width: 40px;
  height: 38px;
  line-height: 38px;
  transition: background 0.15s, color 0.15s;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--sand-dark) !important;
  color: var(--navy) !important;
}
.flatpickr-day.today {
  border: none !important;
  color: var(--terra) !important;
  font-weight: 400 !important;
}
.flatpickr-day.today:hover {
  background: var(--sand-dark) !important;
  color: var(--terra) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
  background: var(--terra) !important;
  border-color: var(--terra) !important;
  color: var(--sand) !important;
}
.flatpickr-day.inRange {
  background: var(--terra-pale) !important;
  border-color: transparent !important;
  color: var(--navy) !important;
  box-shadow: none !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--navy-dim) !important;
  opacity: 0.45;
  cursor: not-allowed;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  cursor: pointer;
  opacity: 0.35;
}

/* Mobile — let the calendar size up to fit smaller screens */
@media (max-width: 480px) {
  .flatpickr-calendar { width: 18rem !important; }
  .flatpickr-day      { max-width: 36px; height: 34px; line-height: 34px; }
}
