/* =====================================================
   Zara Palace Home Stay — White / Warm Gold Theme
   (structure ported from Raj Palace style.css)
   ===================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #FAFAF8;
  --border: #E9E7E2;
  --ink: #16151A;
  --ink-muted: #6B6B72;
  --accent: #B4884A;
  --accent-dark: #7F5D2C;   /* 5.99:1 on white — AA for body text (accent #B4884A is 3.2:1, decorative/large only) */
  --accent-soft: #F6EFE3;
  --success: #1E874B;
  --danger: #C2382F;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); }

/* ----- Scrollbar / selection ----- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #D9D5CC; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ----- Focus (WCAG) ----- */
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 6px; }
.bg-ink :focus-visible, #lightbox :focus-visible, #hero :focus-visible { outline-color: #fff; }

/* =====================================================
   Buttons / chips / forms
   ===================================================== */
.btn-primary, .btn-success, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 9999px; min-height: 44px; /* WCAG 2.5.8 target size */
  font-weight: 600; font-size: 0.9rem; line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: 0 6px 18px rgba(127,93,44,.28); }
.btn-primary:hover { background: #6B4E25; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 6px 18px rgba(30,135,75,.22); }
.btn-success:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-success:disabled, .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-muted);
}

.form-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .75rem .95rem; border-radius: .85rem;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
  font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,136,74,.18); }
.form-input::placeholder { color: #A5A3AA; }
.form-input.invalid { border-color: var(--danger); }

.stepper-btn {
  width: 2rem; height: 2rem; border-radius: 9999px;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.stepper-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.stepper-btn:disabled { opacity: .35; cursor: not-allowed; }

/* =====================================================
   Navigation (transparent → solid white on scroll)
   ===================================================== */
#main-nav { background: transparent; }
#main-nav .nav-brand { color: #fff; }
#main-nav .nav-subbrand { color: rgba(255,255,255,.75); }
#main-nav .nav-link { color: rgba(255,255,255,.88); }
#main-nav .nav-cta { color: #fff; border-color: rgba(255,255,255,.4); }
#main-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(22,21,26,.05);
}
#main-nav.scrolled .nav-brand { color: var(--ink); }
#main-nav.scrolled .nav-subbrand { color: var(--ink-muted); }
#main-nav.scrolled .nav-link { color: var(--ink); }
#main-nav.scrolled .nav-cta { color: var(--ink); border-color: var(--border); }
.nav-link { font-weight: 500; font-size: .9rem; position: relative; padding-bottom: 2px; transition: color .3s; }
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: all .3s; transform: translateX(-50%);
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
#main-nav.scrolled .nav-link:hover, #main-nav.scrolled .nav-link.active { color: var(--accent-dark) !important; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-link { transition: all .2s; }

/* =====================================================
   Reveal-up animation (same as Raj Palace)
   ===================================================== */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.reveal-up:nth-child(2) { transition-delay: .08s; }
.reveal-up:nth-child(3) { transition-delay: .16s; }
.reveal-up:nth-child(4) { transition-delay: .24s; }
.reveal-up:nth-child(5) { transition-delay: .32s; }
.reveal-up:nth-child(6) { transition-delay: .40s; }
#hero .reveal-up { animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) forwards; opacity: 0; }
#hero .reveal-up:nth-child(1) { animation-delay: .15s; }
#hero .reveal-up:nth-child(2) { animation-delay: .3s; }
#hero .reveal-up:nth-child(3) { animation-delay: .45s; }
#hero .reveal-up:nth-child(4) { animation-delay: .6s; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, #hero .reveal-up { opacity: 1; transform: none; animation: none; transition: none; }
}

/* =====================================================
   Calendar  (ported from Raj Palace .cal-day, extended)
   Cell = date number on top, price underneath.
   ===================================================== */
.cal-nav-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.cal-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.cal-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

.cal-day {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px;
  font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: all .18s; position: relative; user-select: none;
  background: #fff; border: 1px solid var(--border); color: var(--ink);
}
.cal-day .cal-day-num { line-height: 1; }
.cal-day .cal-day-price { font-size: .66rem; font-weight: 500; color: var(--ink-muted); line-height: 1; letter-spacing: .01em; }
.cal-day.empty { cursor: default; background: transparent; border-color: transparent; }
.cal-day.skeleton { border-color: transparent; }
.cal-day.past { opacity: .3; cursor: not-allowed; background: var(--surface); }
.cal-day.past .cal-day-price { visibility: hidden; }
.cal-day.available:hover { border-color: var(--accent); box-shadow: 0 6px 16px rgba(180,136,74,.16); transform: translateY(-1px); }
.cal-day.booked {
  background: #FBEDEC; border-color: #F1CBC8; color: var(--danger); cursor: not-allowed;
}
.cal-day.booked .cal-day-num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.booked .cal-day-price { visibility: hidden; }
.cal-day.blocked {
  background-color: #F1F0EC;
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(22,21,26,.06) 5px 6px);
  border-color: #DDDAD2; color: #9B9AA0; cursor: not-allowed;
}
.cal-day.blocked .cal-day-price { visibility: hidden; }
.cal-day.today .cal-day-num {
  box-shadow: 0 0 0 1.5px var(--accent); border-radius: 9999px; padding: 3px 5px; margin: -3px -5px;
}
.cal-day.in-range { background: var(--accent-soft); border-color: #EBDCC0; }
.cal-day.in-range .cal-day-price { color: var(--accent-dark); }
.cal-day.range-hover { background: #FBF6EC; border-color: #EBDCC0; }
.cal-day.selected, .cal-day.range-start, .cal-day.range-end {
  background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; color: #fff !important;
  box-shadow: 0 8px 20px rgba(180,136,74,.35); z-index: 2;
}
.cal-day.selected .cal-day-price, .cal-day.range-start .cal-day-price, .cal-day.range-end .cal-day-price { color: rgba(255,255,255,.85); }
.cal-day.range-start { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.cal-day.range-end { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.cal-day.range-start.range-end { border-radius: 10px; }
/* Booked/blocked day that is still valid as CHECK-OUT (guest leaves 10:30, next arrives 12:00):
   diagonal split — top-left white "your morning", bottom-right red "their evening". */
.cal-day.checkout-ok {
  cursor: pointer;
  background: linear-gradient(135deg, #fff 0 50%, #FBEDEC 50% 100%) !important;
  border-color: #E5C9C6 !important; color: var(--ink) !important;
}
.cal-day.checkout-ok .cal-day-num { text-decoration: none; }
.cal-day.checkout-ok .cal-day-price { visibility: visible; color: var(--ink-muted); font-size: .55rem; font-size: 0; }
.cal-day.checkout-ok .cal-day-price::before { content: 'check-out'; font-size: .55rem; letter-spacing: .02em; }
.cal-day.checkout-ok:hover { border-color: var(--accent) !important; box-shadow: 0 6px 16px rgba(180,136,74,.16); }
.cal-day.checkout-ok.range-hover { background: linear-gradient(135deg, #FBF6EC 0 50%, #FBEDEC 50% 100%) !important; }
.cal-day.range-end.checkout-ok, .cal-day.range-end.was-booked {
  background: linear-gradient(135deg, var(--accent-dark) 0 50%, #FBEDEC 50% 100%) !important; border-color: var(--accent-dark) !important; color: #fff !important;
}
.cal-day.range-end.was-booked .cal-day-price { visibility: visible; font-size: 0; color: rgba(255,255,255,.9); }
.cal-day.range-end.was-booked .cal-day-price::before { content: 'check-out'; font-size: .55rem; }
.cal-day.range-end.was-booked .cal-day-num { text-decoration: none; }

.legend-swatch { width: .9rem; height: .9rem; border-radius: 4px; display: inline-block; }
.legend-booked { background: #FBEDEC; border: 1px solid #F1CBC8; }
.legend-blocked {
  background-color: #F1F0EC; border: 1px solid #DDDAD2;
  background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(22,21,26,.08) 3px 4px);
}

/* Property switcher (Raj Palace availability toggle, restyled) */
.availability-booking-toggle-wrap { display: flex; justify-content: center; margin-bottom: 26px; }
.availability-booking-toggle {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border);
}
.availability-booking-toggle-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink-muted);
  padding: 10px 18px; border-radius: 9999px; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.availability-booking-toggle-btn i { font-size: .9em; opacity: .8; }
.availability-booking-toggle-btn:hover { color: var(--ink); }
.availability-booking-toggle-btn.active { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(22,21,26,.18); }

/* Summary panel: sticky on desktop, bottom sheet on mobile */
@media (min-width: 1024px) {
  .booking-summary { position: sticky; top: 6.5rem; }
}
@media (max-width: 1023px) {
  .booking-summary {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 0 .75rem calc(.75rem + env(safe-area-inset-bottom));
  }
  .booking-summary-inner { border-radius: 1.25rem 1.25rem 1rem 1rem; max-height: 82vh; overflow: auto; }
  .booking-summary .summary-body { display: none; }
  .booking-summary.open .summary-body { display: block; }
  .booking-summary.open .summary-chevron { transform: rotate(180deg); }
  .summary-chevron { transition: transform .25s; }
  #booking-page, #property-page { padding-bottom: 7rem; }
}

/* =====================================================
   Modal (same mechanics as Raj Palace)
   ===================================================== */
#enquiry-modal.active, #lightbox.active { display: flex !important; }
#enquiry-modal { align-items: center; justify-content: center; }
#enquiry-modal .modal-content {
  animation: modalIn .35s cubic-bezier(.16,1,.3,1);
  max-height: 90vh; display: flex; flex-direction: column; width: min(92vw, 520px);
}
#enquiry-modal #enquiry-form { overflow: auto; -webkit-overflow-scrolling: touch; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =====================================================
   Sticky WhatsApp pulse
   ===================================================== */
.whatsapp-pulse { animation: whatsappPulse 2.2s infinite; }
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(30,135,75,.5), 0 10px 30px rgba(0,0,0,.15); }
  70% { box-shadow: 0 0 0 14px rgba(30,135,75,0), 0 10px 30px rgba(0,0,0,.15); }
  100% { box-shadow: 0 0 0 0 rgba(30,135,75,0), 0 10px 30px rgba(0,0,0,.15); }
}

/* =====================================================
   Footer / toast / skeleton
   ===================================================== */
.footer-link { color: var(--ink); transition: all .2s; display: inline-block; padding: .55rem 0; margin: -.55rem 0; }
.footer-link:hover { color: var(--accent-dark); transform: translateX(3px); }

#toast.active { display: block !important; animation: toastIn .35s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.skeleton {
  background: linear-gradient(90deg, #F1EFEA 25%, #FAFAF8 50%, #F1EFEA 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Image hover zoom */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.img-zoom:hover img { transform: scale(1.03); }

@media print { #sticky-whatsapp, #main-nav, #enquiry-modal, #mobile-action-bar { display: none !important; } }

@media (max-width: 640px) {
  .cal-day { font-size: .8rem; border-radius: 8px; gap: 1px; }
  .cal-day .cal-day-price { font-size: .58rem; }
}

/* =====================================================
   Admin
   ===================================================== */
.admin-nav-btn {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: .8rem;
  font-size: .9rem; font-weight: 500; color: var(--ink-muted); transition: all .15s;
}
.admin-nav-btn:hover { background: var(--surface); color: var(--ink); }
.admin-nav-btn.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.admin-bottom-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem 0 .45rem;
  font-size: 9px; color: var(--ink-muted);
}
.admin-bottom-btn i { font-size: 1rem; }
.admin-bottom-btn.active { color: var(--accent-dark); }
.admin-modal.active { display: flex !important; }
.admin-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.status-chip { display: inline-block; padding: .2rem .6rem; border-radius: 9999px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: capitalize; }
.status-pending, .status-new { background: #FFF6E0; color: #8A6512; }
.status-confirmed, .status-active { background: #E4F4EA; color: var(--success); }
.status-cancelled, .status-inactive { background: #F1F0EC; color: var(--ink-muted); }
.status-contacted { background: #E6F0FA; color: #2C5E9E; }
.status-closed { background: #F1F0EC; color: var(--ink-muted); }
.status-available { background: #E4F4EA; color: var(--success); }
.status-booked { background: #FBEDEC; color: var(--danger); }
.status-blocked { background: #F1F0EC; color: var(--ink-muted); }
.act-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; border-radius: .8rem;
  border: 1px solid var(--border); background: #fff; font-size: .72rem; font-weight: 600; transition: all .15s;
}
.act-btn:hover { border-color: var(--accent); background: var(--surface); }
.day-chip { cursor: pointer; }
.day-chip span { display: inline-block; padding: .3rem .6rem; border-radius: 9999px; border: 1px solid var(--border); font-size: .72rem; color: var(--ink-muted); }
.day-chip.active span { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Admin calendar (Raj Palace .admin-cal-day, light theme kept) */
.admin-cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 8px; font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .15s; position: relative;
  user-select: none; background: #fff; border: 1px solid var(--border); color: var(--ink); touch-action: none;
}
.admin-cal-day .cal-day-num { font-weight: 600; line-height: 1; }
.admin-cal-day .cal-day-price { font-size: .6rem; color: var(--ink-muted); line-height: 1; }
.admin-cal-day .cal-day-guest { font-size: .55rem; line-height: 1.1; text-align: center; color: var(--danger); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.admin-cal-day .cal-day-guest small { font-weight: 500; opacity: .8; }
.admin-cal-day .cal-day-note { position: absolute; top: 3px; right: 4px; font-size: 8px; color: var(--accent-dark); }
.admin-cal-day.empty { cursor: default; background: transparent; border-color: transparent; }
.admin-cal-day:hover:not(.empty):not(.past) { border-color: var(--accent); box-shadow: 0 3px 10px rgba(22,21,26,.08); }
.admin-cal-day.past { opacity: .35; cursor: not-allowed; background: var(--surface); }
.admin-cal-day.override { background: #FFF6E0; border-color: #E5C67A; }
.admin-cal-day.override .cal-day-price { color: #8A6512; font-weight: 600; }
.admin-cal-day.booked { background: #FBEDEC; border-color: #F1CBC8; color: var(--danger); }
.admin-cal-day.booked.guest-booked { background: #E8D5D3; border: 1px solid var(--danger); }
.admin-cal-day.blocked {
  background-color: #F1F0EC; background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(22,21,26,.06) 5px 6px);
  border-color: #DDDAD2; color: #9B9AA0;
}
.admin-cal-day.today .cal-day-num { box-shadow: 0 0 0 1.5px var(--accent); border-radius: 9999px; padding: 2px 5px; margin: -2px -5px; }
.admin-cal-day.selected { outline: 2px solid var(--accent); outline-offset: -1px; box-shadow: 0 0 0 3px rgba(180,136,74,.25); z-index: 2; }
.admin-cal-day.selected:not(.booked):not(.blocked):not(.override) { background: var(--accent-soft); }
.enq-filter-btn { padding: .35rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: var(--ink-muted); }
.enq-filter-btn:hover { background: var(--surface); color: var(--ink); }
.enq-filter-btn.active { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .admin-cal-day { font-size: .72rem; border-radius: 6px; }
  .admin-cal-day .cal-day-price { font-size: .5rem; }
  .admin-cal-day .cal-day-guest { display: none; }
}

/* =====================================================
   Gallery (public)
   ===================================================== */
.chip-scroller { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .25rem .75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
.chip-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chip-scroller { flex-wrap: wrap; justify-content: center; } }
.gallery-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 9999px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-muted); font-size: .8rem; font-weight: 600; white-space: nowrap; min-height: 44px; transition: all .15s;
}
.gallery-tab:hover { border-color: var(--accent); color: var(--ink); }
.gallery-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 9999px; background: rgba(22,21,26,.08); font-size: .68rem; text-align: center; line-height: 1.5; }
.gallery-tab.active .chip-count { background: rgba(255,255,255,.2); }
.gallery-masonry { columns: 2; column-gap: .75rem; }
@media (min-width: 768px) { .gallery-masonry { columns: 3; column-gap: 1rem; } }
@media (min-width: 1280px) { .gallery-masonry { columns: 4; } }
.gallery-masonry.reflow .gallery-item { opacity: 0; transform: translateY(12px); }
.gallery-item { break-inside: avoid; margin: 0 0 .75rem; transition: opacity .35s ease, transform .35s ease; }
@media (min-width: 768px) { .gallery-item { margin-bottom: 1rem; } }
.gallery-thumb {
  display: block; width: 100%; position: relative; border-radius: 1rem; overflow: hidden; background-size: cover; background-position: center;
  border: 1px solid var(--border); cursor: zoom-in; padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.gallery-thumb.loaded img { opacity: 1; }
.gallery-thumb .gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .75rem; font-size: .68rem; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(22,21,26,.65), transparent); opacity: 0; transition: opacity .25s;
}
.gallery-thumb:hover .gallery-cap, .gallery-thumb:focus-visible .gallery-cap { opacity: 1; }
#lightbox.active { display: block !important; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 9999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 2; transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); }
body.lightbox-open #sticky-whatsapp, body.lightbox-open #mobile-action-bar { display: none !important; }

/* =====================================================
   Admin gallery
   ===================================================== */
.dropzone { border: 2px dashed var(--border); border-radius: 1rem; padding: 1.25rem; text-align: center; background: var(--surface); transition: all .15s; cursor: pointer; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.dropzone-disabled { opacity: .6; }
.dropzone-header { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 9999px; background: #fff; border: 1px solid var(--border); font-size: .8rem; color: var(--ink-muted); }
.dropzone-header strong { color: var(--ink); }
.upload-row { padding: .5rem .75rem; border: 1px solid var(--border); border-radius: .75rem; background: #fff; }
.upload-row.upload-error { border-color: #F1CBC8; background: #FDF6F5; }
.upload-bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: .4rem; overflow: hidden; }
.upload-bar-fill { height: 100%; background: var(--accent); transition: width .25s; }
.upload-error .upload-bar-fill { background: var(--danger); }
.cat-row { display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem; border-radius: .6rem; font-size: .85rem; cursor: pointer; }
.cat-row:hover { background: var(--surface); }
.cat-row.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.cat-row.dragging { opacity: .4; }
.cat-grip { color: #C9C6BE; cursor: grab; font-size: .7rem; }
.cat-action { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--ink-muted); opacity: 0; transition: opacity .15s; }
.cat-row:hover .cat-action { opacity: 1; }
.cat-action:hover { background: #fff; color: var(--ink); }
.gal-card { position: relative; border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; background: #fff; cursor: grab; }
.gal-card.dragging { opacity: .4; }
.gal-card.selected { outline: 2px solid var(--accent); outline-offset: -1px; }
.gal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background-size: cover; }
.gal-check { position: absolute; top: .5rem; left: .5rem; z-index: 2; width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.gal-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.gal-cover-badge { position: absolute; top: .5rem; right: .5rem; z-index: 2; font-size: .62rem; font-weight: 700; padding: .2rem .5rem; border-radius: 9999px; background: var(--accent-dark); color: #fff; }

/* =====================================================
   Nearby
   ===================================================== */
.filter-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 9999px; border: 1px solid var(--border); background: #fff; font-size: .78rem; font-weight: 600; color: var(--ink-muted); min-height: 40px; transition: all .15s; }
.filter-pill:hover { border-color: var(--accent); color: var(--ink); }
.filter-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.nb-card { background: #fff; border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(22,21,26,.04), 0 8px 24px rgba(22,21,26,.05); transition: transform .3s, box-shadow .3s, opacity .6s, background .6s; }
.nb-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,21,26,.05), 0 16px 40px rgba(22,21,26,.10); }
.nb-card-feature { background: linear-gradient(160deg, #fff, var(--accent-soft)); border-color: #EBDCC0; }
.nb-card.flash { animation: nbFlash 1.6s ease; }
@keyframes nbFlash { 0% { box-shadow: 0 0 0 0 rgba(180,136,74,.0); } 20% { box-shadow: 0 0 0 6px rgba(180,136,74,.45); background: var(--accent-soft); } 100% { box-shadow: 0 0 0 0 rgba(180,136,74,0); } }
.nb-icon { width: 44px; height: 44px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto; }
.nb-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 600; }
.nb-members { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; margin-top: .75rem; font-size: .8rem; }
.nb-members li { display: flex; align-items: center; gap: .4rem; }
.nb-members li i { font-size: .3rem; color: var(--accent); }


/* Leaflet markers */
/* Map — home marker: gold core + pulsing ring */
.nb-home-marker { background: transparent !important; border: 0 !important; }
.nb-home-ring { position: absolute; inset: 0; border-radius: 9999px; background: rgba(180,136,74,.35); animation: nb-pulse 2.2s ease-out infinite; }
.nb-home-core { position: absolute; inset: 7px; border-radius: 9999px; background: linear-gradient(145deg, #D8B57A, #B4884A 60%, #8A6530); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(22,21,26,.35); }
@keyframes nb-pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
/* Place pins: 30 px teardrop, category colour, small icon */
.nb-marker { background: transparent !important; border: 0 !important; }
.nb-marker .nb-pin { display: flex; width: 30px; height: 30px; border-radius: 9999px 9999px 9999px 3px; transform: rotate(-45deg); background: var(--c, #B4884A); color: #fff; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(22,21,26,.3); transition: transform .18s ease; }
.nb-marker .nb-pin i { transform: rotate(45deg); font-size: .72rem; }
.nb-marker:hover .nb-pin, .nb-marker:focus-visible .nb-pin { transform: rotate(-45deg) scale(1.12); }
/* Clusters */
.nb-cluster { background: transparent !important; border: 0 !important; }
.nb-cluster span { display: flex; width: 36px; height: 36px; border-radius: 9999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(22,21,26,.3); }
/* Popups */
.leaflet-container { font-family: Inter, system-ui, sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 14px 40px rgba(22,21,26,.18); }
.leaflet-popup-content { font-size: .85rem; line-height: 1.45; margin: 12px 14px; }
.nb-popup strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; font-weight: 600; line-height: 1.2; margin-bottom: .35rem; }
.nb-popup-cat { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: .2rem; }
.nb-popup-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; color: var(--muted); font-size: .78rem; }
.nb-popup-meta i { color: var(--accent); margin-right: .3rem; }
.nb-popup-actions { display: flex; align-items: center; gap: .75rem; margin-top: .65rem; }
.nb-popup-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: #fff !important; padding: .5rem .8rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; min-height: 36px; text-decoration: none; }
.nb-popup-link { background: none; border: 0; color: var(--accent-dark); font-size: .75rem; font-weight: 600; padding: .5rem 0; min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 20px; line-height: 32px; top: 2px; right: 2px; }
.leaflet-bar a { width: 36px; height: 36px; line-height: 36px; font-size: 20px; }
/* Touch gate: page scroll stays free until the visitor opts in */
.nb-map-gate { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 800; background: rgba(22,21,26,.86); color: #fff; border: 0; border-radius: 9999px; padding: .6rem 1rem; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; box-shadow: 0 6px 20px rgba(22,21,26,.25); backdrop-filter: blur(6px); }
.nb-map-gate.is-off { display: none; }
#nb-map { height: 480px; position: relative; z-index: 0; }
@media (max-width: 767px) { #nb-map { height: clamp(320px, calc(100svh - 4rem - 9.5rem - 6.5rem), 460px); } }
@media (prefers-reduced-motion: reduce) { .nb-home-ring { animation: none; transform: scale(1.1); opacity: .5; } .nb-marker .nb-pin { transition: none; } }
.nearby-hero .reveal-up { animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) forwards; opacity: 0; }

/* =====================================================
   Phase 6 — home / about / contact / property
   ===================================================== */
/* Footer: reserve room for the fixed mobile action bar (+ iOS safe area) so the last line is never covered */
.footer-bar-spacer { height: calc(5.25rem + env(safe-area-inset-bottom)); }
body.has-no-sticky-bar .footer-bar-spacer { height: 0; }

/* Inline field errors */
.field-error { display: none; color: var(--danger); font-size: .75rem; margin-top: .35rem; font-weight: 500; }
.field-error.show { display: block; }
.form-input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194,56,47,.12); }
.form-input select, select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6B72' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }

/* Hero availability widget */
#hero-availability .form-label { color: var(--ink-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
#hero-availability .form-input { background: #fff; }
#hero-availability input[type=date] { min-height: 46px; }
#hero-availability input[type=date]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }

/* Home gallery strip */
.home-thumb { display: block; background: var(--surface); }
/* Server-rendered thumbs: reveal immediately once the image has decoded (see Picture onload); no-JS fallback keeps them visible */
.home-thumb img, .prop-thumb img { opacity: 1; }
.home-thumb:not(.loaded) img, .prop-thumb:not(.loaded) img { opacity: 0; }
.no-js .gallery-thumb img { opacity: 1 !important; }
.home-thumb picture, .home-thumb img { width: 100%; height: 100%; }
.home-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(22,21,26,0); transition: background .3s; pointer-events: none; }
.home-thumb:hover::after { background: rgba(22,21,26,.12); }
@media (min-width: 768px) { #home-gallery-grid { grid-auto-rows: 1fr; } #home-gallery-grid .home-thumb:first-child { min-height: 100%; } }

/* Property mosaic */
.prop-thumb { display: block; background: var(--surface); position: relative; overflow: hidden; }
.prop-thumb picture, .prop-thumb img { width: 100%; height: 100%; }
.prop-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(22,21,26,0); transition: background .3s; pointer-events: none; }
.prop-thumb:hover::after { background: rgba(22,21,26,.12); }
#property-photos { position: relative; }

/* FAQ accordion */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-item[open] summary .faq-icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item[open] summary .faq-icon i { transform: rotate(45deg); }
.faq-item p { animation: faqIn .3s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Contact cards */
.contact-card { display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(22,21,26,.04), 0 8px 24px rgba(22,21,26,.05); transition: transform .25s, box-shadow .25s, border-color .25s; min-height: 44px; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 2px 4px rgba(22,21,26,.05), 0 16px 40px rgba(22,21,26,.10); }
.contact-icon { width: 44px; height: 44px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .5rem; }

/* Stats band numbers */
#about-stats dl div { display: flex; flex-direction: column; }

/* Testimonial cards keep equal height */
#testimonials figure blockquote { font-size: .95rem; }

/* Reduced motion: no reveal/animations */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, #hero .reveal-up { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .nb-card, .contact-card, .btn-primary, .btn-success, .btn-ghost { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Touch targets ≥ 44px (WCAG 2.5.8) */
.cal-day { min-height: 44px; }
.availability-booking-toggle-btn { min-height: 44px; }
.filter-pill { min-height: 44px; }
.stepper-btn { min-width: 44px; min-height: 44px; }
#site-footer .social-btn { width: 44px; height: 44px; }
.crumb { display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
@media (max-width: 400px) { #availability .bg-white.rounded-2xl { padding: .75rem; } .cal-day { min-height: 44px; } }

/* =====================================================
   Home hero carousel (12 slides, 600 ms cross-fade)
   ===================================================== */
#hero-carousel { background: #1F1A12; }
#hero-slides, .hero-scrim { z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  background-size: cover; background-position: var(--focal, center); background-repeat: no-repeat; /* 16px blur placeholder */
  transition: opacity .6s ease-in-out; will-change: opacity; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; }
/* Outgoing slide keeps painting underneath so the fade never shows the placeholder/background */
.hero-slide.is-leaving { opacity: 0; z-index: 0; }
.hero-slide.is-active { z-index: 1; }
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: var(--focal, center); display: block; }

/* Scrim: left→right (headline column) + soft bottom band (caption / widget). Constant so every slide reads the same. */
.hero-scrim {
  z-index: 2;
  /* Tuned against all 12 slides (see handback): the headline column runs to ~62% of the viewport, so the
     horizontal ramp holds ≥.40 until 52% and reaches transparent at ~70%; the bottom band starts earlier (40%). */
  background:
    linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.58) 28%, rgba(0,0,0,.42) 52%, rgba(0,0,0,.16) 64%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.04) 22%, rgba(0,0,0,.30) 48%, rgba(0,0,0,.50) 72%, rgba(0,0,0,.70) 100%);
}

/* Location caption — bottom-right pill, above the WhatsApp FAB (FAB is bottom-6/right-4, 56px) */
.hero-caption { position: absolute; right: 1.5rem; bottom: 5.75rem; z-index: 20; display: grid; pointer-events: none; }
.hero-caption-pill {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem .55rem .8rem; border-radius: 9999px;
  background: rgba(22,21,26,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity .6s ease-in-out; /* same curve + duration as the slide → always in sync */
}
.hero-caption-pill.is-active { opacity: 1; }
.hero-caption-pill i { color: #B4884A; font-size: .8rem; }

/* Dots — bottom centre, subtle */
.hero-dots { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 20; display: flex; gap: .35rem; padding: .35rem; }
.hero-dot { width: 24px; height: 24px; border-radius: 9999px; background: transparent; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; }
.hero-dot::before { content: ''; width: 7px; height: 7px; border-radius: 9999px; background: rgba(255,255,255,.45); transition: transform .3s, background .3s, width .3s; }
.hero-dot:hover::before { background: rgba(255,255,255,.8); }
.hero-dot.is-active::before { background: #B4884A; width: 18px; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Mobile: caption bottom-centre above dots; dots sit above the sticky action bar spacer (hero is not fixed, so no collision) */
@media (max-width: 767px) {
  /* The fixed action bar is ~78px tall (+ safe area) and overlaps the hero's bottom at scroll 0 → lift everything above it */
  #hero { padding-bottom: calc(9.5rem + env(safe-area-inset-bottom)); } /* room for caption + dots above the 78px fixed bar */
  .hero-caption { right: 0; left: 0; bottom: calc(8rem + env(safe-area-inset-bottom)); justify-items: center; }
  .hero-caption-pill { font-size: .66rem; letter-spacing: .12em; padding: .45rem .75rem; }
  .hero-dots { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
}

/* Reduced motion: slide 1 only, no fades; JS also refuses to start the timer */
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-caption-pill { transition: none !important; }
  .hero-slide:not([data-index="0"]) { display: none !important; }
  .hero-dots { display: none; }
}

/* ----- Nearby card image band (16:9, same radius as card, hover zoom 1.03) ----- */
.nb-card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.nb-card-media .nb-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.nb-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); }
.nb-media picture, .nb-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nb-media img { object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.nb-card-media:hover .nb-media img { transform: scale(1.03); }
/* Fallback: category-tinted gradient + large low-opacity icon — a deliberate design, not a missing image */
.nb-media-fallback { display: flex; align-items: center; justify-content: center; }
.nb-media-fallback i { font-size: 3.25rem; color: #fff; opacity: .28; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.nb-card-media:hover .nb-media-fallback i { transform: scale(1.06); }
.nb-tint-religious { background: linear-gradient(135deg, #D8B57A 0%, #B4884A 55%, #8A6530 100%); }
.nb-tint-trekking  { background: linear-gradient(135deg, #7A9A6C 0%, #5B7553 55%, #3C513A 100%); }
.nb-tint-nature    { background: linear-gradient(135deg, #6FB3B0 0%, #3E8C8A 55%, #2B6462 100%); }
.nb-tint-city      { background: linear-gradient(135deg, #D39A82 0%, #B8735B 55%, #8E523F 100%); }
.nb-tint-food      { background: linear-gradient(135deg, #E07A5F 0%, #C2452F 55%, #8E2F1F 100%); }
@media (prefers-reduced-motion: reduce) { .nb-media img, .nb-media-fallback i { transition: none !important; } }

/* ----- Nearby filter bar: sticky below the fixed site header (64px mobile / 80px desktop) with a small gap ----- */
#nb-filters { position: sticky; top: calc(4rem + .5rem); z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0 -1rem; padding: .75rem 1rem; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
#nb-filters.is-stuck { border-bottom-color: var(--border); box-shadow: 0 8px 24px rgba(22,21,26,.06); }
@media (min-width: 768px) { #nb-filters { top: calc(5rem + .5rem); margin: 0 -1.5rem; padding: .75rem 1.5rem; } }
@media (min-width: 1024px) { #nb-filters { margin: 0 -2rem; padding: .75rem 2rem; } }

/* ----- Nearby: isometric road journey (public/static/road.js) ----- */
.road-scene { position: relative; width: 100%; overflow: visible; }
.rs-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: Inter, system-ui, sans-serif; }
.rs-svg.rs-desktop { max-height: 640px; }
.rs-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rs-road-edge { stroke: #3F3F46; stroke-width: 22; }
.rs-road-top { stroke: #5D5D64; stroke-width: 22; }
.rs-mobile .rs-road-edge, .rs-mobile .rs-road-top { stroke-width: 18; }
.rs-road-edge, .rs-road-top { transition: stroke-dashoffset 1.2s cubic-bezier(.22,.61,.36,1); }
.rs-centre { stroke: #FBF8F3; stroke-width: 2; stroke-dasharray: 12 14; opacity: 0; transition: opacity .4s .9s; animation: rs-dash 6s linear infinite; }
.rs-svg.is-in .rs-centre { opacity: .9; }
@keyframes rs-dash { to { stroke-dashoffset: -52; } }
.rs-spur line { fill: none; stroke-linecap: round; }
.rs-spur { opacity: 0; transition: opacity .35s; }
.rs-spur.is-on { opacity: 1; }
.rs-spur-edge { stroke: #3F3F46; stroke-width: 12; }
.rs-spur-top { stroke: #6B6B72; stroke-width: 12; }
.rs-spur-centre { stroke: #FBF8F3; stroke-width: 1.5; stroke-dasharray: 8 10; opacity: .8; }
.rs-ms text, .rs-home-label { font-size: 11px; font-weight: 600; fill: #6B6772; letter-spacing: .02em; paint-order: stroke; stroke: #FBF7EF; stroke-width: 3px; stroke-linejoin: round; }
.rs-home-label { font-size: 12px; fill: #16151A; }
.rs-ms { opacity: 0; transition: opacity .5s, transform .6s; }
.rs-svg.is-in .rs-ms { opacity: 1; }
.rs-mobile .rs-ms text { font-size: 10px; fill: #7F5D2C; }
/* stops */
.rs-stop { cursor: pointer; outline: none; transition: opacity .32s; }
.rs-stop .rs-pop { transform-origin: 0 0; transform: translateY(14px) scale(.6); opacity: 0; transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .35s; transition-delay: calc(1.05s + var(--i, 0) * 60ms); }
.rs-svg.is-in .rs-stop .rs-pop { transform: none; opacity: 1; }
.rs-svg.is-settled .rs-stop .rs-pop { transition-delay: 0s; transition-duration: .28s; }
.rs-stop .rs-glyph { transition: transform .25s cubic-bezier(.16,1,.3,1), filter .25s; }
.rs-stop .rs-shadow { transition: transform .25s, opacity .25s; }
.rs-stop .rs-pin { transition: r .2s, opacity .3s; }
.rs-stop .rs-tether { opacity: .7; }
.rs-stop.is-active .rs-glyph { transform: translateY(-7px) scale(1.08); filter: drop-shadow(0 10px 12px rgba(22,21,26,.22)); }
.rs-stop.is-active .rs-shadow { transform: scale(1.18); opacity: .55; }
.rs-svg.is-hover .rs-stop:not(.is-active) .rs-pop, .rs-svg.is-hover .rs-stop:not(.is-active) .rs-pin { opacity: .6; }
.rs-stop:focus-visible .rs-pin { r: 8; stroke: #16151A; stroke-width: 2; }
/* filtered out: shrink + fade */
.rs-stop.rs-off { pointer-events: none; }
.rs-stop.rs-off .rs-pop { transform: translateY(6px) scale(.55) !important; opacity: 0 !important; transition-delay: 0s !important; }
.rs-stop.rs-off .rs-pin, .rs-stop.rs-off .rs-tether { opacity: 0; }
/* label cards */
.rs-label rect { fill: #fff; stroke: #E8E1D4; stroke-width: 1; filter: drop-shadow(0 8px 18px rgba(22,21,26,.14)); }
.rs-label-stalk { stroke: #CDB894; stroke-width: 1.2; stroke-dasharray: 2 3; }
.rs-label-name { font-size: 11.5px; font-weight: 700; fill: #16151A; }
.rs-label-meta { font-size: 9.5px; font-weight: 500; fill: #6B6772; }
.rs-desktop .rs-label { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.rs-desktop .rs-stop.is-active .rs-label { opacity: 1; transform: none; }
.rs-mobile .rs-label { opacity: 1; }
.rs-mobile .rs-label rect { filter: none; }
.rs-mobile .rs-label-name { font-size: 10.5px; }
.rs-mobile .rs-label-meta { font-size: 9px; }
/* ambient */
.rs-stream-2 { animation: rs-flow 1.4s linear infinite; }
@keyframes rs-flow { to { stroke-dashoffset: -10; } }
.rs-steam { animation: rs-steam 2.4s ease-in-out infinite; }
.rs-steam-2 { animation-delay: .6s; } .rs-steam-3 { animation-delay: 1.2s; }
@keyframes rs-steam { 0% { opacity: .2; transform: translateY(2px); } 50% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .rs-road-edge, .rs-road-top, .rs-stop .rs-pop, .rs-stop, .rs-spur, .rs-ms, .rs-label, .rs-stop .rs-glyph, .rs-stop .rs-shadow { transition: none !important; }
  .rs-stop .rs-pop { transform: none; opacity: 1; }
  .rs-centre { animation: none; opacity: .9; }
  .rs-ms { opacity: 1; }
  .rs-stream-2, .rs-steam { animation: none; }
}

/* =====================================================
   Mobile pass (360 / 390 / 414) — targets ≥ 44 px, inputs ≥ 16 px, no overlap with sticky bar / FAB
   ===================================================== */
@media (max-width: 767px) {
  /* iOS zooms into inputs under 16 px; also the brief's floor */
  .form-input, input.form-input, select.form-input, textarea.form-input { font-size: 16px; }
  /* Home hero: fit one viewport — content bottom must clear the sticky bar */
  #hero { min-height: 100svh; padding-bottom: calc(9.5rem + env(safe-area-inset-bottom)); }
  .hero-dot { width: 44px; height: 44px; margin: 0 -8px; }
  /* Inline text links in body copy get a taller tap box without shifting layout */
  #site-footer a, main a.inline-flex, main a.hover\:text-accent, main a.hover\:text-accentdark { padding-top: .35rem; padding-bottom: .35rem; margin-top: -.35rem; margin-bottom: -.35rem; }
  .footer-link { padding: .65rem 0; margin: -.65rem 0; }
  .btn-ghost-dark { min-height: 44px; }
  /* Gallery / nearby chip rows scroll horizontally inside their own box — never the page */
  .chip-scroller { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 2px; }
  .chip-scroller::-webkit-scrollbar { display: none; }
  .gallery-tab { min-height: 44px; flex: 0 0 auto; }
  /* Nearby distance/sort/view pills wrap; the list/map toggle takes its own row */
  #nb-filters .flex-wrap > .ml-auto { margin-left: 0; width: 100%; justify-content: stretch; }
  #nb-filters .flex-wrap > .ml-auto .nb-view { flex: 1; justify-content: center; }
  /* Lightbox controls: sit above the WhatsApp FAB, thumb-reachable, never under the sticky bar */
  #lightbox { z-index: 130; }
  #lightbox-prev, #lightbox-next { top: auto; bottom: calc(6.5rem + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  #lightbox-close { top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; }
  /* Decorative blur blob on the contact band must not create a horizontal scroll */
  .absolute.-right-24 { right: 0; }
  section, header, footer { overflow-x: clip; }
}
/* Booking: while the visitor is still choosing dates keep the sheet collapsed to its 1-line handle
   and leave the calendar free; only the finished selection expands it. The handle never covers a cell
   because the page reserves room below the calendar. */
@media (max-width: 1023px) {
  #booking-page, #property-page { padding-bottom: 8.5rem; }
  .booking-summary-inner { max-height: min(82vh, calc(100svh - 4.5rem)); }
  .booking-summary.open .booking-summary-inner { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
/* Admin on phones */
@media (max-width: 767px) {
  #admin-bottom-nav { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .admin-bottom-btn { min-height: 56px; padding: .5rem 0 .4rem; font-size: 9px; }
  .admin-bottom-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #admin-app main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .admin-table-wrap, .overflow-x-auto { -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 640px; }
  .cal-nav-btn { width: 44px; height: 44px; }
  .enq-filter-btn { min-height: 44px; padding: .6rem .9rem; }
  #toggle-admin-password { width: 44px; height: 44px; right: 0; display: inline-flex; align-items: center; justify-content: center; }
  .admin-table a, .admin-table button, .cat-select, button.text-\[11px\], .gallery-img-actions button { min-height: 44px; display: inline-flex; align-items: center; }
  .admin-table a.text-success, .admin-table a.text-accentdark { padding: .5rem .35rem; margin: -.5rem -.35rem; }
  #bulk-refresh { min-height: 44px; }
  input[type=checkbox] { width: 20px; height: 20px; }
  /* Admin calendar: cells 44 px, bulk bar sticks above the bottom nav */
  .admin-cal-day { min-height: 46px; }
  #bulk-bar, #admin-bulk-bar, .bulk-bar { position: sticky; bottom: calc(3.75rem + env(safe-area-inset-bottom)); z-index: 30; }
}
/* Home hero must fit one phone viewport (360×640 … 414×896): tighten type + widget on phones */
@media (max-width: 767px) {
  #hero > .relative.z-10 { padding-top: 5.5rem; }
  #hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  #hero h1 + p { font-size: 1rem; margin-top: .75rem; line-height: 1.5; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  #hero .reveal-up.inline-block { margin-bottom: .5rem; }
  #hero-availability { margin-top: 1rem; padding: .6rem; gap: .5rem; }
  #hero-availability .form-label { margin-bottom: .15rem; font-size: .62rem; }
  #hero-availability .form-input { padding-top: .55rem; padding-bottom: .55rem; }
  #hero-availability button[type=submit] { padding-top: .7rem; padding-bottom: .7rem; min-height: 44px; }
  #hero { padding-bottom: calc(8.25rem + env(safe-area-inset-bottom)); }
  .hero-caption { bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .hero-dots { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .hero-dot { width: 40px; height: 44px; margin: 0 -6px; }
  .hero-dots { gap: 0; }
  /* text links in body copy / footer: 44 px tap box */
  #site-footer a, main a.inline-flex, main a.hover\:text-accent, main a.hover\:text-accentdark, .footer-link { padding-top: .6rem; padding-bottom: .6rem; margin-top: -.6rem; margin-bottom: -.6rem; min-height: 44px; display: inline-flex; align-items: center; }
  /* admin leftovers */
  .cal-nav-btn { min-width: 44px; }
  #gal-cat-add, .admin-table .btn-ghost, #admin-panel-nearby .btn-ghost { min-width: 44px; justify-content: center; }
  .admin-table a.text-success, .admin-table a.text-accentdark { min-width: 44px; justify-content: center; }
  button.text-muted.hover\:text-danger { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .admin-bottom-btn { font-size: 8.5px; letter-spacing: 0; }
  .admin-bottom-btn span { max-width: 100%; }
}
@media (max-width: 374px) {
  .admin-bottom-btn span { display: none; }
  .admin-bottom-btn { min-height: 52px; }
}
/* Admin bottom bar: nine sections don't fit 44 px each under 400 px → horizontally scrollable strip, every item ≥ 48 px */
@media (max-width: 767px) {
  #admin-bottom-nav { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  #admin-bottom-nav::-webkit-scrollbar { display: none; }
  .admin-bottom-btn { flex: 1 0 auto; min-width: 48px; padding-left: .4rem; padding-right: .4rem; scroll-snap-align: start; }
  .form-input.py-2, .form-input.py-1, .form-input.py-1\.5, .form-input.py-2\.5 { min-height: 44px; }
  a.text-xs.text-accentdark, .admin-table .text-xs a { min-height: 44px; display: inline-flex; align-items: center; }
  input[type=checkbox] { width: 22px; height: 22px; margin: 11px; }
}
@media (max-width: 374px) { .admin-bottom-btn span { display: block; } }
/* Short phones (≤ 700 px tall, e.g. 360×640): everything in the hero must still clear the sticky bar */
@media (max-width: 767px) and (max-height: 700px) {
  #hero > .relative.z-10 { padding-top: 4.75rem; }
  #hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  #hero h1 + p { -webkit-line-clamp: 2; font-size: .95rem; margin-top: .5rem; }
  #hero-availability { margin-top: .75rem; padding: .5rem; gap: .4rem; }
  #hero-availability label:last-of-type { grid-column: span 1; }
  #hero-availability button[type=submit] { grid-column: span 1; align-self: end; min-height: 44px; padding-top: .55rem; padding-bottom: .55rem; }
  .hero-caption { display: none; }
  #hero { padding-bottom: calc(7.25rem + env(safe-area-inset-bottom)); }
  .hero-dots { bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
/* Nearby: the "5 km" distance pill was 43 px wide at 360 */
@media (max-width: 767px) { .nb-dist, .nb-sort { min-width: 48px; justify-content: center; } }
/* Admin: forgot-password link + gallery bulk checkbox */
@media (max-width: 767px) { #admin-app a.hover\:text-accent, .admin-login a { display: inline-flex; min-height: 44px; align-items: center; } .gallery-img-check, #admin-panel-gallery input[type=checkbox] { width: 24px; height: 24px; margin: 10px; } }
@media (max-width: 767px) {
  #admin-login-page a.hover\:text-accent, .admin-login-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
  .gal-check { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .gal-check input { width: 22px; height: 22px; margin: 0; }
}
.bulk-clear-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: .75rem; font-weight: 600; }
.bulk-clear-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ----- Mobile fixes (Oct 2026) ----- */
/* iOS Safari gives date/time inputs an intrinsic min-width and centres the value: in a 2-column grid the
   check-out field overflowed the card. Let them shrink to their grid cell and left-align like other fields. */
.form-input { min-width: 0; max-width: 100%; }
input[type=date].form-input, input[type=time].form-input { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; text-align: left; }
input[type=date].form-input::-webkit-date-and-time-value, input[type=time].form-input::-webkit-date-and-time-value { text-align: left; margin: 0; }
#hero-availability > label, #hero-availability > button { min-width: 0; }
@media (max-width: 767px) {
  /* Short subtitle on phones (see home.tsx) — no clamp, so the price is always visible */
  #hero h1 + p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  #hero-availability input[type=date] { font-size: 16px; } /* ≥16px also stops iOS zooming on focus */
}
/* Nearby has a light (cream) hero: the transparent nav needs dark text there, at every width */
body:has(.nearby-hero) #main-nav:not(.scrolled) .nav-brand { color: var(--ink); }
body:has(.nearby-hero) #main-nav:not(.scrolled) .nav-subbrand { color: var(--ink-muted); }
body:has(.nearby-hero) #main-nav:not(.scrolled) .nav-link { color: var(--ink); }
body:has(.nearby-hero) #main-nav:not(.scrolled) .nav-cta { color: var(--ink); border-color: var(--border); }
/* Hero date fields at 360 px: tighter side padding so the value isn't clipped */
@media (max-width: 400px) { #hero-availability input[type=date] { padding-left: .6rem; padding-right: .45rem; font-size: 15px; } }

/* =====================================================
   GooeyNav — desktop navbar (port of React Bits <GooeyNav />, https://reactbits.dev, MIT + Commons Clause).
   Same markup/animation as the original; the gooey blob uses an SVG alpha-threshold filter (#zp-goo) instead
   of blur+contrast+mix-blend, so it works over the hero photo and on the white scrolled bar, in brand colours.
   JS: /static/gooey-nav.js
   ===================================================== */
.gooey-nav {
  position: relative;
  /* over the dark hero */
  --gn-text: rgba(255,255,255,.9);
  --gn-active-text: var(--ink);
  --gn-pill: #fff;
  --gn-focus: #fff;
  --color-1: #fff; --color-2: #F6EFE3; --color-3: #D8B57A; --color-4: #B4884A;
}
/* white (scrolled / always-solid) bar, and the light Nearby hero */
#main-nav.scrolled .gooey-nav, body:has(.nearby-hero) #main-nav .gooey-nav {
  --gn-text: var(--ink);
  --gn-active-text: #fff;
  --gn-pill: var(--accent-dark);
  --gn-focus: var(--accent-dark);
  --color-1: #7F5D2C; --color-2: #B4884A; --color-3: #9A7139; --color-4: #16151A;
}
.gooey-nav ul {
  display: flex; gap: .15rem; list-style: none; padding: 0; margin: 0;
  position: relative; z-index: 3; color: var(--gn-text);
  font-size: .9rem; font-weight: 500; transition: color .3s;
}
#main-nav:not(.scrolled) .gooey-nav ul { text-shadow: 0 1px 1px hsl(205deg 30% 10% / .2); }
body:has(.nearby-hero) #main-nav .gooey-nav ul { text-shadow: none; }
.gooey-nav li {
  border-radius: 100vw; position: relative; cursor: pointer; color: var(--gn-text);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
  box-shadow: 0 0 .5px 1.5px transparent;
}
.gooey-nav li a { display: inline-block; padding: .55em 1em; color: inherit; }
.gooey-nav li:focus-within:has(:focus-visible) { box-shadow: 0 0 .5px 1.5px var(--gn-focus); }
.gooey-nav li a:focus-visible { outline: none; }
.gooey-nav li::after {
  content: ''; position: absolute; inset: 0; border-radius: 100vw; background: var(--gn-pill);
  opacity: 0; transform: scale(0); transition: all .3s ease; z-index: -1;
}
.gooey-nav li.active { color: var(--gn-active-text); text-shadow: none; }
.gooey-nav li.active::after { opacity: 1; transform: scale(1); }
.gooey-nav li:not(.active):hover { color: var(--gn-text); opacity: .75; }

.gooey-nav .effect {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 1; pointer-events: none;
  display: grid; place-items: center; z-index: 1; font-size: .9rem; font-weight: 500;
}
.gooey-nav .effect.text { color: var(--gn-text); transition: color .3s ease; }
.gooey-nav .effect.text.active { color: var(--gn-active-text); }
.gooey-nav .effect.filter { filter: url(#zp-goo); }
.gooey-nav .effect.filter::after {
  content: ''; position: absolute; inset: 0; background: var(--gn-pill);
  transform: scale(0); opacity: 0; z-index: -1; border-radius: 100vw;
}
.gooey-nav .effect.active::after { animation: gn-pill .3s ease both; }
@keyframes gn-pill { to { transform: scale(1); opacity: 1; } }

.gooey-nav .particle, .gooey-nav .point { display: block; opacity: 0; width: 20px; height: 20px; border-radius: 100%; transform-origin: center; }
.gooey-nav .particle { --time: 5s; position: absolute; top: calc(50% - 8px); left: calc(50% - 8px); animation: gn-particle calc(var(--time)) ease 1 -350ms; }
.gooey-nav .point { background: var(--color); opacity: 1; transform: scale(0); animation: gn-point calc(var(--time)) ease 1 -350ms; }
@keyframes gn-particle {
  0% { transform: rotate(0deg) translate(calc(var(--start-x)), calc(var(--start-y))); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  70% { transform: rotate(calc(var(--rotate) * .5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2)); opacity: 1; animation-timing-function: ease; }
  85% { transform: rotate(calc(var(--rotate) * .66)) translate(calc(var(--end-x)), calc(var(--end-y))); opacity: 1; }
  100% { transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * .5), calc(var(--end-y) * .5)); opacity: 1; }
}
/* Opacity stays at 1 (the original fades points in): the goo filter thresholds alpha, so half-transparent
   points would vanish — scale alone grows/shrinks them, which reads the same. */
@keyframes gn-point {
  0% { transform: scale(0); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  25% { transform: scale(calc(var(--scale) * .25)); }
  65% { transform: scale(var(--scale)); animation-timing-function: ease; }
  85% { transform: scale(var(--scale)); }
  100% { transform: scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .gooey-nav .particle, .gooey-nav .point { display: none; }
  .gooey-nav .effect.active::after { animation: none; transform: scale(1); opacity: 1; }
  .gooey-nav li::after { transition: none; }
}
@media (max-width: 1279px) { .gooey-nav li a { padding: .5em .8em; } }
