/* ==========================================================================
   Um-a Booking — design system
   "Luxury meets nature": high-contrast serif headings (Playfair Display),
   clean geometric body copy (Jost), deep forest green on warm cream,
   torn-paper brush edges between sections, square photography.
   ========================================================================== */

:root {
  /* Brand — Um-a: deep forest green on warm cream, earthy accents */
  --green: #34501f;
  --green-600: #29411a;
  --green-700: #1f3313;
  --green-50: #e9eedf;
  --magenta: #9a6b3f;      /* earth / timber accent */
  --magenta-50: #f5ebdd;
  --teal: #5b7d6a;         /* sage */
  --teal-50: #e7efe9;
  --amber: #b7791f;
  --amber-50: #fdf4e3;
  --red: #b23a2e;
  --red-50: #fbecea;
  --cream: #f4ece1;
  --sand: #e6dac8;

  /* Neutrals */
  --ink: #26351c;          /* headings */
  --text: #4d4b43;         /* body */
  --muted: #858174;
  --line: #e5dccd;
  --mist: #d3c9b8;
  --wash: #f4ece1;         /* cream sections */
  --bg: #ffffff;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.8rem, 6vw + 0.5rem, 5.4rem);
  --fs-h1: clamp(2.1rem, 3.2vw + 0.6rem, 3.1rem);
  --fs-h2: clamp(1.8rem, 2vw + 0.8rem, 2.6rem);
  --fs-h3: clamp(1.2rem, 0.6vw + 1rem, 1.45rem);
  --fs-eyebrow: .82rem;
  --fs-lead: 1.1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 6px;
  --radius-sm: 4px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(38, 53, 28, .05), 0 2px 8px rgba(38, 53, 28, .05);
  --shadow: 0 2px 6px rgba(38, 53, 28, .06), 0 16px 36px rgba(38, 53, 28, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-600); }
::selection { background: var(--green-50); color: var(--green-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 var(--s4);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); }

.hero-title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.eyebrow.sm { font-size: 0.95rem; letter-spacing: .02em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.text-green { color: var(--green); }
.text-magenta { color: var(--magenta); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.container.narrow { max-width: 760px; }
.section { padding: var(--s9) 0; position: relative; }
.section.tight { padding: var(--s7) 0; }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .section { padding: var(--s8) 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s4); }
}

/* ---------- Background swooshes ---------- */
.swoosh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.swoosh svg { position: absolute; width: 140%; left: -20%; top: 0; height: 100%; }
.swoosh path { fill: var(--wash); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; height: 80px; gap: var(--s6); }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.05); }

.nav { display: flex; align-items: stretch; gap: var(--s6); margin-left: auto; height: 100%; }
.nav a {
  position: relative; display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: #333;
  letter-spacing: -0.01em;
}
.nav a::after {
  content: ""; position: absolute; left: -8px; right: -8px; bottom: 0; height: 3px;
  background: var(--green); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--green); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; background: none; border: 0; padding: var(--s2); margin-left: auto; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav, .nav-actions { display: none; }
  .site-header.open .container { flex-wrap: wrap; height: auto; padding-top: 18px; padding-bottom: 18px; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; gap: var(--s4); height: auto; margin: var(--s4) 0 0; }
  .site-header.open .nav a::after { display: none; }
  .site-header.open .nav-actions { display: flex; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 22px; min-height: 46px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); background: var(--green-600); border-color: var(--green-600); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(52, 80, 31, .25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid rgba(52, 80, 31, .35); outline-offset: 2px; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--green); }
.btn-outline:hover { --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn-ghost:hover { --btn-fg: var(--green); background: var(--green-50); border-color: var(--green-50); box-shadow: none; }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--red); --btn-bd: #f0c8c8; }
.btn-danger:hover { --btn-fg: #fff; background: var(--red); border-color: var(--red); box-shadow: none; }
.btn-magenta { --btn-bg: var(--magenta); --btn-bd: var(--magenta); }
.btn-magenta:hover { background: #a2386f; border-color: #a2386f; box-shadow: 0 6px 16px rgba(154, 107, 63, .25); }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: .88rem; }
.btn-lg { padding: 16px 28px; min-height: 56px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Pills / chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 8px 16px; border-radius: var(--pill);
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 500; font-size: .95rem;
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .01em; text-transform: capitalize;
  background: #f0f2f2; color: #555;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.green { background: var(--green-50); color: var(--green-600); }
.badge.magenta { background: var(--magenta-50); color: var(--magenta); }
.badge.teal { background: var(--teal-50); color: var(--teal); }
.badge.amber { background: var(--amber-50); color: var(--amber); }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.gray { background: #f0f2f2; color: #6b7070; }
.badge.plain::before { display: none; }
.badge.nocap { text-transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding: var(--s9) 0 var(--s10); isolation: isolate; background: var(--wash); } /* z-index: the search calendar must paint over the next section */
.hero .split { grid-template-columns: 1.05fr .95fr; }
.hero .lead { margin-bottom: var(--s6); }
.hero-visual { position: relative; min-height: 440px; }
#how { background: var(--wash); }

.device {
  position: absolute; left: 12%; top: 0; width: 250px; height: 440px;
  border: 7px solid #111; border-radius: 40px; background: #fff;
  box-shadow: var(--shadow); padding: 34px 14px 14px; overflow: hidden;
}
.device::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 18px; background: #111; border-radius: 12px; }
.device .d-search { height: 30px; border-radius: 12px; border: 1px solid var(--line); font-size: 11px; color: #999; display: flex; align-items: center; padding: 0 10px; margin-bottom: 12px; }
.device .d-title { font-size: 10px; font-weight: 700; color: var(--ink); margin: 6px 0; }
.device .d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.device .d-grid span { aspect-ratio: 1; border-radius: 12px; }
.device .d-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 10px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.device .d-card b { color: var(--ink); }
.device .d-pay { background: var(--green); color: #fff; border-radius: 99px; padding: 3px 9px; font-size: 9px; font-weight: 700; }

.float-pill {
  position: absolute; display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  min-width: 230px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.float-pill:nth-of-type(2) { animation-delay: -1.5s; }
.float-pill:nth-of-type(3) { animation-delay: -3s; }
.float-pill:nth-of-type(4) { animation-delay: -4.5s; }
.dots { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding: var(--s7) 0 var(--s8); }
  .hero .split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero { overflow: hidden; }
  .hero-visual { min-height: 450px; }
  .device { left: 0; }
  .float-pill { min-width: 0; width: 58%; font-size: 1rem; padding: 12px 16px; gap: var(--s3); }
  .float-pill:nth-of-type(2) { left: 38% !important; } .float-pill:nth-of-type(3) { left: 40% !important; }
  .float-pill:nth-of-type(4) { left: 42% !important; } .float-pill:nth-of-type(5) { left: 44% !important; }
}

/* ---------- Search bar ---------- */
.searchbar {
  display: flex; gap: var(--s2); align-items: stretch;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--pill);
  padding: 6px; box-shadow: var(--shadow-sm); max-width: 560px;
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(52, 80, 31, .12); }
.searchbar input, .searchbar select { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 0 var(--s4); min-width: 0; }
.searchbar input { flex: 1; width: 100%; }
.searchbar select { border-left: 1px solid var(--line); cursor: pointer; }
@media (max-width: 520px) { .searchbar select { display: none; } .searchbar.smart select { display: block; } }

/* Adaptive search bar (hero + Explore): label-over-value cells; the type decides which cells show (JS [data-smart-search]) */
.searchbar.smart { position: relative; max-width: 680px; padding: 0; gap: 0; align-items: center; }
.searchbar.smart.smart-wide { max-width: none; flex-wrap: wrap; row-gap: 6px; border-radius: 28px; padding: 6px; }
.searchbar.smart.smart-wide .sb-cell { min-height: 52px; border-radius: 10px; }
.searchbar.smart.smart-wide .sb-q { padding-left: 16px; }
.searchbar.smart.smart-wide .btn { margin: 0 0 0 4px; }
.sb-cell {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; min-height: 64px;
  padding: 6px 16px; border-radius: 0; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.sb-cell[hidden] { display: none; }
.sb-cell:hover { background: var(--wash); }
.sb-cell:focus-within, .sb-cell.is-active { background: rgba(52, 80, 31, .12); z-index: 1; }
.sb-cell + .sb-cell::before, .sb-when + .sb-cell::before, .sb-when .sb-cell + .sb-cell::before, .sb-cell + .sb-when > .sb-cell:first-child::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.sb-cell:focus-within::before, .sb-cell.is-active::before { opacity: 0; }
.sb-label { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.searchbar.smart .sb-cell input, .searchbar.smart .sb-cell select, .sb-cell .wb-date {
  display: block; width: 100%; min-width: 0; min-height: 22px; border: 0; padding: 0; margin: 0; background: none; outline: none;
  font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
}
.sb-cell input::placeholder, .sb-cell .wb-date.is-empty { color: var(--muted); }
.sb-cell input[type=search] { cursor: text; }
.sb-cell input[type=number] { cursor: text; -moz-appearance: textfield; }
.sb-cell input::-webkit-outer-spin-button, .sb-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sb-cell input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb-cell select { padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; }
.sb-type { flex: 0 0 auto; min-width: 136px; }
.sb-q { flex: 1 1 180px; }
/* first cell sits against the bar's curved edge: match the pill on the left, square on the right */
.sb-type, .sb-q { padding-left: 22px; border-radius: var(--pill) 0 0 var(--pill); }
.sb-when { display: flex; flex: 1 1 auto; min-width: 0; }
.sb-when .sb-cell { flex: 1 1 0; min-width: 118px; }
.sb-num { flex: 0 0 auto; width: 104px; }
.sb-sel { flex: 0 0 auto; min-width: 118px; }
.searchbar.smart .btn { flex: 0 0 auto; align-self: stretch; margin: 6px 6px 6px 4px; padding-top: 0; padding-bottom: 0; }
.searchbar.smart .cal { width: min(340px, calc(100% - 12px)); right: auto; }
.explore-search { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.explore-search .searchbar { flex: 1 1 560px; }
.search-summary { font-size: .95rem; color: var(--text); margin: calc(-1 * var(--s3)) 0 var(--s5); }
.search-summary b { color: var(--ink); font-weight: 700; }
.search-summary a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row.center { justify-content: center; }
.listing-card.is-unavailable .media img, .listing-card.is-unavailable .media svg { filter: grayscale(.7); opacity: .7; }
.listing-card .booked-badge { top: auto; bottom: 12px; left: 12px; }
@media (max-width: 760px) {
  .searchbar.smart { flex-wrap: wrap; border-radius: 28px; row-gap: 6px; padding: 6px; }
  .sb-cell { min-height: 52px; border-radius: 10px; }
  .sb-type, .sb-q { flex: 1 1 100%; padding-left: 16px; }
  .sb-type::before, .sb-q::before, .sb-type + .sb-when > .sb-cell:first-child::before, .sb-q + .sb-when > .sb-cell:first-child::before { display: none; }
  .sb-when { flex: 1 1 100%; }
  .sb-num, .sb-sel { flex: 1 1 0; width: auto; }
  .searchbar.smart .btn { flex: 1 1 100%; margin: 0; min-height: 48px; }
  .searchbar.smart .cal { width: calc(100% - 12px); left: 6px !important; }
}

/* Hero phone mock-up echoes the type chosen in the search bar */
.hero .d-card, .hero .float-pill { transition: opacity .3s, box-shadow .3s, border-color .3s; }
.hero[data-type=room] .d-card:not([data-type=room]), .hero[data-type=venue] .d-card:not([data-type=venue]), .hero[data-type=service] .d-card:not([data-type=service]) { opacity: .35; }
.hero[data-type=room] .float-pill:not([data-type=room]), .hero[data-type=venue] .float-pill:not([data-type=venue]), .hero[data-type=service] .float-pill:not([data-type=service]) { opacity: .55; }
.hero[data-type=room] .float-pill[data-type=room], .hero[data-type=venue] .float-pill[data-type=venue], .hero[data-type=service] .float-pill[data-type=service] { border-color: var(--green); box-shadow: 0 0 0 4px rgba(52, 80, 31, .12), var(--shadow-sm); }

/* ---------- Principles-style feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding: var(--s8) 0; }
.feature.reverse .feature-art { order: 2; }
.feature-art { display: flex; justify-content: center; }
.feature-art > svg { width: min(320px, 100%); height: auto; }
.feature p { font-size: 1.08rem; max-width: 32em; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6) 0; }
  .feature.reverse .feature-art { order: 0; }
  .feature-art > svg { width: 220px; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--s6); }
.card-pad-sm { padding: var(--s5); }

.listing-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.listing-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.listing-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wash); }
.listing-card .media > img, .listing-card .media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.listing-card:hover .media > img, .listing-card:hover .media > svg { transform: scale(1.04); }
.listing-card .media .badge { position: absolute; top: 14px; left: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.listing-card .body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.listing-card h3 { font-size: 1.2rem; margin: 0; }
.listing-card .meta { font-size: .9rem; color: var(--muted); display: flex; gap: var(--s4); flex-wrap: wrap; }
.listing-card .price { margin-top: auto; padding-top: var(--s3); display: flex; align-items: baseline; justify-content: space-between; }
.price b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.price span { font-size: .9rem; color: var(--muted); }
.arrow { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--green-50); color: var(--green); transition: background .25s, color .25s, transform .25s var(--ease); }
.listing-card:hover .arrow { background: var(--green); color: #fff; transform: translateX(3px); }

.type-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s6); border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  color: inherit; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.type-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); }
.type-card .icon { width: 64px; height: 64px; }
.type-card h3 { margin: 0; }
.type-card .count { font-size: .9rem; color: var(--muted); }

/* ---------- Stat tiles ---------- */
.stat { padding: var(--s5); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat .label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.2; margin-top: 4px; }
.stat .hint { font-size: .8rem; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.field label, .label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--ink);
  padding: 12px 16px; min-height: 48px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--mist); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(52, 80, 31, .12); }
.input.is-invalid, .select.is-invalid { border-color: var(--red); }
.error { color: var(--red); font-size: .82rem; }
.check { display: flex; align-items: center; gap: var(--s2); font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.check-top { align-items: flex-start; }
.check-top input { flex: 0 0 auto; margin-top: 2px; }
/* Admin listing form: the custom cancellation block sits indented under its radio. */
.cancel-custom { margin-left: 9px; padding-left: var(--s4); border-left: 2px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: var(--s3); }

/* ---------- Alerts ---------- */
.alert { display: block; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: var(--s5); animation: slideDown .4s var(--ease); }
.alert.success { background: var(--green-50); color: var(--green-700); }
.alert.error { background: var(--red-50); color: var(--red); }
.alert.info { background: var(--teal-50); color: #17696a; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Listing detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s7); align-items: start; }
/* Photo grid: featured photo largest, max 5 tiles */
.gallery, .photo-grid { height: clamp(280px, 40vw, 480px); border-radius: var(--radius); overflow: hidden; background: var(--wash); margin-bottom: var(--s7); }
.gallery > img, .gallery > svg { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; background: transparent; }
.photo-grid .ph { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: var(--wash); cursor: zoom-in; overflow: hidden; }
.photo-grid .ph:first-child { grid-row: span 2; }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.photo-grid .ph::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .25s var(--ease); }
.photo-grid .ph:hover::after { opacity: .14; }
.photo-grid .ph:hover img { transform: scale(1.03); }
.photo-grid .ph:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.photo-grid[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.photo-grid[data-count="1"] .ph:first-child { grid-row: auto; }
.photo-grid[data-count="2"] { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr; }
.photo-grid[data-count="2"] .ph:first-child { grid-row: auto; }
.photo-grid[data-count="3"] { grid-template-columns: 2fr 1fr; }
.photo-grid[data-count="4"] .ph:nth-child(4) { grid-column: span 2; }
.show-all {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: none; align-items: center; gap: var(--s2);
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--ink);
  background: #fff; color: var(--ink); font: 600 .9rem/1 var(--font-body);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease);
}
.show-all.is-extra { display: inline-flex; }
.show-all:hover { background: var(--wash); transform: translateY(-1px); }
.show-all .muted { font-weight: 500; }
@media (max-width: 720px) {
  .gallery, .photo-grid { height: auto; aspect-ratio: 4 / 3; margin-bottom: var(--s6); border-radius: var(--radius-sm); }
  .photo-grid, .photo-grid[data-count] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .photo-grid .ph:first-child { grid-row: auto; }
  .photo-grid .ph:not(:first-child) { display: none; }
  .show-all { display: inline-flex; right: 12px; bottom: 12px; padding: 8px 12px; font-size: .85rem; }
}

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0f1111; color: #fff; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lbIn .25s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); }
.lb-count { font: 600 .95rem/1 var(--font-display); letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.lb-close, .lb-nav {
  display: inline-grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.lb-close { width: 44px; height: 44px; background: rgba(255, 255, 255, .1); color: #fff; }
.lb-close:hover { background: rgba(255, 255, 255, .2); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 88px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; transition: opacity .2s var(--ease); }
.lb-stage img.loading { opacity: .35; }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.lb-nav:hover { transform: scale(1.06); }
.lb-nav:disabled { opacity: .25; cursor: default; transform: none; }
.lb-nav.prev { left: var(--s5); }
.lb-nav.next { right: var(--s5); }
.lb-close:focus-visible, .lb-nav:focus-visible, .lb-thumb:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: var(--s4) var(--s5) var(--s5); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.lb-thumbs > :first-child { margin-left: auto; }
.lb-thumbs > :last-child { margin-right: auto; }
.lb-thumb { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .5; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.active { opacity: 1; border-color: #fff; }
html.lb-lock { overflow: hidden; }
@media (max-width: 720px) {
  .lb-top { padding: var(--s3) var(--s4); }
  .lb-stage { padding: 0; }
  .lb-stage img { border-radius: 0; }
  .lb-nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(255, 255, 255, .9); }
  .lb-nav.prev { left: var(--s2); }
  .lb-nav.next { right: var(--s2); }
  .lb-thumb { width: 60px; height: 44px; }
  .lb-thumbs { padding: var(--s3) var(--s4) var(--s4); }
}

/* Admin: gallery photo manager */
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.photo-admin figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-admin figcaption { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; }
.photo-admin .check { font-size: .82rem; }
.photo-admin .check input { width: 15px; height: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--s5) 0; }
.fact { display: flex; flex-direction: column; }
.fact small { color: var(--muted); font-size: .8rem; }
.fact b { color: var(--ink); font-weight: 600; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; align-items: center; gap: var(--s2); }
.amenities li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.rules li { position: relative; padding-left: 26px; line-height: 1.5; }
.rules li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--magenta, #9a6b3f) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.rules.rules-compact { gap: 4px; margin-top: 6px; }
.rules.rules-compact li { padding-left: 20px; font-size: .86rem; }
.rules.rules-compact li::before { width: 13px; height: 13px; top: .28em; background-size: 8px; }
.rules-default { margin: 4px 0 0 26px; }
.rules-preview { margin: 6px 0 0 0; padding: 0 0 0 16px; }
.rules-preview li { margin: 2px 0; }
.book-panel { position: sticky; top: 104px; }
.quote { background: var(--wash); border-radius: var(--radius-sm); padding: var(--s4); margin: var(--s4) 0; font-size: .95rem; }
.quote .line { display: flex; justify-content: space-between; }
.quote .total { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; border-top: 1px dashed var(--mist); margin-top: var(--s2); padding-top: var(--s2); }
.avail { font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.avail.ok { color: var(--green); }
.avail.no { color: var(--red); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail:empty::before { display: none; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } .book-panel { position: static; } }

/* ---------- Booking summary / receipt ---------- */
.receipt { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s6); align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: var(--s3) var(--s4); margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.ref { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.timer { font-family: var(--font-display); font-weight: 700; color: var(--magenta); font-variant-numeric: tabular-nums; }
.qr-box { display: grid; place-items: center; padding: var(--s5); border: 1.5px dashed var(--mist); border-radius: var(--radius); background: #fff; }
.qr-box > svg { width: 220px; height: 220px; }
.pay-logos { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pay-logos span { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #f2f4f4; color: #555; letter-spacing: .02em; }
@media (max-width: 900px) { .receipt { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: 120px 1fr; } }

/* ---------- Steps ---------- */
.steps { display: flex; gap: var(--s2); align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: var(--s5); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 700; font-size: .75rem; background: #eef1f1; color: #777; }
.steps .done i, .steps .now i { background: var(--green); color: #fff; }
.steps .now { color: var(--ink); font-weight: 600; }
.steps .sep { width: 24px; height: 1.5px; background: var(--line); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfc; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafcfc; }
.table .strong { color: var(--ink); font-weight: 600; }
.empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); }

/* Error pages (404 / 419 / 403 / 429 / 500 / 503) */
.errpage { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s7); align-items: center; padding-top: var(--s5); padding-bottom: var(--s6); }
.err-visual { position: relative; width: 220px; }
.err-code { position: absolute; left: 0; bottom: -10px; font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--green); letter-spacing: -.03em; }
.err-help { display: grid; gap: var(--s4); }
.err-help .searchbar { max-width: 560px; }
@media (max-width: 760px) { .errpage { grid-template-columns: 1fr; gap: var(--s5); } .err-visual { margin: 0 auto; } }

/* ---------- Pagination (Laravel default markup) ---------- */
nav[role="navigation"] { margin-top: var(--s6); }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] svg { width: 16px; height: 16px; }
nav[role="navigation"] p { margin: 0 0 var(--s3); font-size: .85rem; color: var(--muted); }
nav[role="navigation"] span[aria-current] > span, nav[role="navigation"] a, nav[role="navigation"] span[aria-disabled] > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; margin: 2px;
  border-radius: var(--pill); border: 1px solid var(--line); font-size: .9rem; color: var(--ink); background: #fff;
}
nav[role="navigation"] span[aria-current] > span { background: var(--green); color: #fff; border-color: var(--green); }
nav[role="navigation"] a:hover { border-color: var(--green); color: var(--green); }
nav[role="navigation"] span[aria-disabled] > span { opacity: .4; }
@media (min-width: 640px) {
  nav[role="navigation"] > div:last-child { display: flex; flex-direction: column; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: var(--s8);
  background: var(--ink); color: #cfd4d4;
}
.cta h2 { color: #fff; }
.cta .art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 360px; opacity: .95; }
@media (max-width: 760px) { .cta { padding: var(--s6); } .cta .art { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); margin-top: var(--s9); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.site-footer h4 { font-size: .95rem; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--green); }
.site-footer .legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Page header ---------- */
.page-head { position: relative; z-index: 2; padding: var(--s8) 0 var(--s6); isolation: isolate; background: var(--wash); }
.page-head h1 { margin-bottom: var(--s3); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: var(--s8) var(--s4); position: relative; isolation: isolate; background: var(--wash); }
.auth-wrap.is-plain, .page-head.is-plain { background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: #fafcfc; }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: var(--s5); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s6); }
.admin-side nav { display: grid; gap: 4px; }
.admin-side nav a { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; transition: background .2s, color .2s; }
.admin-side nav a svg { width: 18px; height: 18px; opacity: .7; }
.admin-side nav a:hover { background: var(--wash); color: var(--ink); }
.admin-side nav a.active { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.admin-side nav a.active svg { opacity: 1; }
.admin-main { padding: var(--s6) var(--s7); min-width: 0; }
.admin-main .head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.admin-main h1 { font-size: 2rem; margin: 0; }
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); align-items: center; }
.bulk-bar { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; padding: 10px 16px; margin-bottom: var(--s3); background: var(--wash, #f5fafa); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; animation: slideDown .3s var(--ease); }
.table td input[type=checkbox], .table th input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.filters .input, .filters .select { width: auto; min-height: 40px; padding: 8px 12px; font-size: .9rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: var(--s3); }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 26px; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.bars .bar i.zero { background: var(--line); }
.bars .bar i.neg { background: var(--magenta); }
.revenue-table { width: 100%; border-collapse: collapse; margin-top: var(--s3); }
.revenue-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.revenue-table td:first-child { width: 22px; color: var(--muted); font-weight: 600; }
.revenue-table td.num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; text-align: right; padding-right: var(--s4); }
.revenue-table tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 10px; }
.revenue-table tr.total td.num { font-size: 1.35rem; }
.text-teal { color: var(--teal); }
.text-red { color: var(--red); }
.btn-ghost.text-red:hover { --btn-fg: var(--red); background: var(--red-50); border-color: var(--red-50); }
/* Admin users: action buttons under the role form, disabled accounts are dimmed */
.user-actions { gap: 2px 4px; }
.user-actions .btn { padding-left: 8px; padding-right: 8px; }
.table tr.is-disabled td:not(:last-child) { opacity: .6; }
.text-amber { color: var(--amber); }
.stat .hint a { color: var(--green); font-weight: 600; text-decoration: none; }
.stat .hint a:hover { text-decoration: underline; }
.bars .bar small { font-size: .65rem; color: var(--muted); white-space: nowrap; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.admin-mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: var(--s3) var(--s4); flex-direction: row; align-items: center; overflow-x: auto; gap: var(--s4); }
  .admin-side nav { display: flex; gap: 4px; }
  .admin-side nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-side .side-foot { display: none; }
  .admin-main { padding: var(--s5) var(--s4); }
}

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

.pop circle { transform-box: fill-box; transform-origin: center; animation: pop .6s var(--ease) both; }
.pop circle:nth-child(2n) { animation-delay: .08s; }
.pop circle:nth-child(3n) { animation-delay: .16s; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s2); } .mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); }
.center { text-align: center; }
.hidden { display: none !important; }
.inline { display: inline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); text-decoration: underline; cursor: pointer; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .admin-main .grid { grid-template-columns: 1fr !important; } }

input[type=date].input, input[type=time].input { padding-left: 12px; padding-right: 10px; }
.form-grid.stacked { grid-template-columns: 1fr; }

/* ---------- Reserve panel (listing page) ---------- */
/* Floats beside the details while scrolling; stops where the detail grid ends ("You might also like"). */
.book-panel { align-self: start; }
.reserve {
  padding: var(--s5); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(28, 28, 28, .10); border-color: #e3e7e7;
}
.reserve-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: var(--s5); font-size: 1rem; color: var(--text); }
.reserve-price .was { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--muted); }
.reserve-price .now { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.reserve-price .per { color: var(--muted); }
.reserve-price button.now {
  padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.reserve-price button.now:focus-visible { outline: 3px solid rgba(52, 80, 31, .35); outline-offset: 3px; border-radius: 4px; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.reserve-breakdown { background: var(--wash); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin: calc(-1 * var(--s3)) 0 var(--s4); font-size: .92rem; }
.reserve-breakdown .line, .quote .line { display: flex; justify-content: space-between; gap: var(--s3); }
.reserve-breakdown .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.line.sale span:last-child { color: var(--green); font-weight: 600; }

.when-box { border: 1px solid #b9c1c2; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.when-box.is-invalid { border-color: var(--red); }
.wb-row { display: grid; grid-template-columns: 1fr 1fr; }
.wb-row .wb-cell + .wb-cell { border-left: 1px solid #b9c1c2; }
.wb-cell {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 9px;
  cursor: pointer; transition: background .15s;
}
.when-box > .wb-cell { border-top: 1px solid #b9c1c2; }
.wb-cell:hover { background: #fafcfc; }
.wb-cell:focus-within { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--radius-sm); background: #fff; z-index: 1; }
.wb-label { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.wb-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.wb-hint.is-adjusted { color: var(--amber); font-weight: 700; }
.wb-cell input, .wb-cell select {
  width: 100%; min-width: 0; border: 0; padding: 0; margin: 0; background: transparent; outline: none;
  font: inherit; font-size: .95rem; color: var(--ink); min-height: 24px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.wb-cell input[type=number] { cursor: text; -moz-appearance: textfield; }
.wb-cell input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; margin-left: 2px; }
.wb-select select { padding-right: 28px; }
.wb-chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; }

/* Calendar picker (replaces the native date inputs so booked / blocked days can be greyed out) */
.reserve { position: relative; }
.wb-cell.is-active { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--radius-sm); background: #fff; z-index: 1; }
.wb-date {
  display: block; width: 100%; min-height: 24px; border: 0; padding: 0; margin: 0; background: none; text-align: left;
  font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; outline: none;
}
.wb-date.is-empty { color: var(--muted); }
.cal {
  position: absolute; left: var(--s5); right: var(--s5); z-index: 30; padding: var(--s4);
  background: #fff; border: 1px solid #e3e7e7; border-radius: var(--radius-sm); box-shadow: 0 14px 36px rgba(28, 28, 28, .18);
  outline: none; animation: slideDown .18s var(--ease);
}
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.cal-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.cal-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 1.4rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px;
}
.cal-nav:hover:not([disabled]) { background: var(--wash); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-nav:focus-visible, .cal-day:focus-visible, .cal-clear:focus-visible { outline: 3px solid rgba(52, 80, 31, .35); outline-offset: 2px; }
.cal-hint { font-size: .82rem; color: var(--muted); min-height: 1.3em; margin-bottom: var(--s2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal-dow { text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0 8px; }
.cal-cell { display: block; }
.cal-cell.in-range { background: var(--green-50); }
.cal-cell.is-start:not(.is-end) { background: linear-gradient(90deg, transparent 50%, var(--green-50) 50%); }
.cal-cell.is-end:not(.is-start) { background: linear-gradient(90deg, var(--green-50) 50%, transparent 50%); }
.cal-day {
  position: relative; width: 100%; aspect-ratio: 1; border: 0; background: none; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.cal-day:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day[disabled] { color: var(--mist); cursor: default; font-weight: 400; }
.cal-day.is-booked[disabled] { color: #a6adae; background: #eef1f1; text-decoration: line-through; border-radius: 0; }
.cal-cell.is-start .cal-day, .cal-cell.is-end .cal-day { background: var(--green); color: #fff; font-weight: 700; }
.cal-cell.is-end.is-preview .cal-day { background: var(--green-600); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); font-size: .8rem; color: var(--muted); }
.cal-key { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 14px; height: 14px; border-radius: 3px; background: #eef1f1; position: relative; }
.cal-key i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: #a6adae; }
.cal-clear { border: 0; background: none; padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal-clear[hidden] { display: none; }
@media (max-width: 420px) {
  .cal { left: var(--s3); right: var(--s3); padding: var(--s3); }
  .cal-day { font-size: .85rem; }
}

.reserve .avail { margin: var(--s2) 0 0; }
.reserve .avail:empty { display: none; }
.policy-pill {
  margin: var(--s4) 0; padding: 8px 10px; border-radius: 10px;
  background: #f2f4f4; color: var(--ink); font-size: .8rem; text-align: center; line-height: 1.4; text-wrap: balance;
}
.policy-pill b { font-weight: 700; }
.btn-reserve {
  display: block; width: 100%; min-height: 54px; padding: 14px 24px; border: 0; border-radius: var(--pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.005em; color: #fff;
  background: linear-gradient(90deg, #4b6b31 0%, var(--green) 50%, var(--green-600) 100%);
  background-size: 200% 100%; background-position: 0 0;
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn-reserve:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(52, 80, 31, .3); }
.btn-reserve:active { transform: translateY(0); box-shadow: none; }
.btn-reserve:focus-visible { outline: 3px solid rgba(52, 80, 31, .4); outline-offset: 3px; }
.btn-reserve[disabled] { opacity: .5; pointer-events: none; }
.reserve-note { margin: var(--s3) 0 0; text-align: center; font-size: .9rem; color: var(--ink); }
.reserve .alert { margin-bottom: var(--s4); }

/* Booking steps: summary + policy */
.mb-5 { margin-bottom: var(--s5); }
.kv-tight { grid-template-columns: 90px 1fr; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.policy-note { font-size: .88rem; background: var(--wash); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
.policy-note b { color: var(--ink); }
.policy-note-strict { box-shadow: inset 3px 0 0 var(--red); }
.policy-note .badge, h3 .badge { vertical-align: middle; margin-left: 4px; }

/* Profile page, login code, admin activity */
.profile-grid { align-items: start; }
.profile-grid .card h3 { margin-bottom: var(--s2); }
.card-danger { box-shadow: inset 3px 0 0 var(--red); }
.code-input { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .35em; text-align: center; }
.activity-details { font-size: .8rem; color: var(--muted); word-break: break-word; max-width: 34em; }
.activity-details code { font-size: .78rem; background: var(--wash); padding: 1px 4px; border-radius: 4px; }
.user-menu { display: inline-flex; gap: 2px; }

[hidden] { display: none !important; }

/* ==========================================================================
   Um-a theme layer — "Luxury meets nature" design (Um-a Booking/ design sample)
   Loaded last so it re-skins the shared components above.
   ========================================================================== */

body { font-size: 1.02rem; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0; line-height: 1.18; }
h3 { font-weight: 500; }
.title-caps, .hero-title, .page-head h1 { text-transform: uppercase; letter-spacing: .01em; }
.eyebrow, .eyebrow.sm {
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin-bottom: var(--s2);
}
.center .eyebrow { display: block; }
::selection { background: var(--green); color: var(--cream); }

/* Buttons: deep green pills with small serif capitals */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 26px; min-height: 44px;
}
.btn:hover { box-shadow: 0 8px 18px rgba(38, 53, 28, .22); }
.btn-sm { font-size: .72rem; padding: 8px 18px; min-height: 36px; }
.btn-lg { font-size: .9rem; padding: 16px 32px; min-height: 54px; }
.btn-ghost { --btn-fg: var(--ink); }
.btn-ghost:hover { background: rgba(52, 80, 31, .08); border-color: transparent; }
.btn-outline { --btn-fg: var(--green); }
.link-caps { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 12px 8px; }
.link-caps:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }

.chip { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--pill); background: transparent; border-color: var(--mist); }
.chip.active { background: var(--green); border-color: var(--green); color: var(--cream); }

.badge { border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; }
.badge.nocap { text-transform: none; letter-spacing: .01em; }
.card, .listing-card, .type-card, .table-wrap, .stat { border-radius: var(--radius); }

/* Torn brush-stroke edges between sections */
.brush {
  position: absolute; left: 0; right: 0; height: 56px; z-index: 1; pointer-events: none;
  background: var(--brush);
  -webkit-mask: url("../images/brush-edge.svg") center / 100% 100% no-repeat;
          mask: url("../images/brush-edge.svg") center / 100% 100% no-repeat;
}
.brush-bottom { bottom: -1px; }
.brush-top { top: -1px; transform: scaleY(-1); }

/* ---------- Header ---------- */
.site-header { background: rgba(244, 236, 225, .96); box-shadow: 0 1px 0 rgba(38, 53, 28, .08); }
.site-header .container { height: 76px; }
.brand { gap: 10px; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.brand-text small { font-family: var(--font-body); font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light .brand-text b { color: var(--cream); }
.brand-light .brand-text small { color: rgba(244, 236, 225, .7); }
.nav { gap: var(--s6); margin: 0 auto; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.nav a::after { height: 2px; left: 0; right: 0; bottom: 22px; }
.nav-actions { gap: 4px; }
.nav-actions .btn-ghost { font-size: .68rem; padding: 8px 12px; }
@media (max-width: 900px) {
  .site-header.open { background: var(--cream); }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero.hero-photo {
  position: relative; z-index: 2; isolation: isolate; display: flex; align-items: center;
  min-height: min(88vh, 820px); padding: var(--s9) 0 var(--s10); background: #1f3313; color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(14, 30, 22, .45), transparent 75%), linear-gradient(180deg, rgba(16, 44, 40, .6) 0%, rgba(20, 38, 22, .35) 50%, rgba(20, 30, 14, .5) 100%);
}
.hero-inner { text-align: center; }
.hero-photo .hero-title {
  color: #f6efe4; font-size: var(--fs-hero); font-weight: 600; line-height: 1.02; margin: 0 auto var(--s4);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero-sub { max-width: 34em; margin: 0 auto var(--s6); font-size: 1.15rem; font-weight: 500; color: #f6efe4; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 18px rgba(0, 0, 0, .45); }
.hero-search { max-width: 960px; margin: 0 auto; text-align: left; }

/* Booking bar: cream panel, small caps labels over serif values */
.hero-search .searchbar.smart {
  max-width: none; border: 0; border-radius: 3px; padding: 10px; gap: 0;
  background: rgba(244, 236, 225, .97); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.hero-search .searchbar.smart:focus-within { box-shadow: 0 20px 50px rgba(0, 0, 0, .25), 0 0 0 3px rgba(244, 236, 225, .45); }
.hero-search .sb-cell { min-height: 66px; padding: 8px 22px; border-radius: 0; }
.hero-search .sb-type { border-radius: 0; }
.hero-search .sb-cell:hover { background: rgba(52, 80, 31, .06); }
.hero-search .sb-cell:focus-within, .hero-search .sb-cell.is-active { background: rgba(52, 80, 31, .1); }
.hero-search .sb-label { font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .16em; color: var(--muted); }
.hero-search .searchbar.smart .sb-cell input, .hero-search .searchbar.smart .sb-cell select, .hero-search .sb-cell .wb-date {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.hero-search .sb-cell + .sb-cell::before, .hero-search .sb-when + .sb-cell::before, .hero-search .sb-when .sb-cell + .sb-cell::before,
.hero-search .sb-cell + .sb-when > .sb-cell:first-child::before { background: var(--mist); }
.hero-search .searchbar.smart .btn { margin: 8px 8px 8px 12px; padding: 0 28px; }
.searchbar.smart .btn { font-size: .78rem; }
.searchbar { border-radius: 4px; }
.searchbar.smart.smart-wide { border-radius: 4px; }
.sb-type, .sb-q { border-radius: 0; }
.sb-label { letter-spacing: .12em; font-weight: 600; }

/* ---------- About ---------- */
.about { background: var(--cream); padding-bottom: calc(var(--s9) + 40px); overflow: hidden; }
.about-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
.about p { max-width: 34em; }
.about-sketch { position: absolute; right: -40px; bottom: 40px; width: min(560px, 50vw); opacity: .8; pointer-events: none; }
.about-photos { position: relative; min-height: 520px; }
.about-photos img { position: absolute; object-fit: cover; box-shadow: 0 24px 50px rgba(38, 53, 28, .25); }
.about-photos .ph-a { left: 0; top: 0; width: 56%; height: 78%; }
.about-photos .ph-b { right: 4%; bottom: 0; width: 54%; height: 78%; border: 6px solid var(--cream); }
.about-badge {
  position: absolute; left: -10px; bottom: 70px; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 16px; background: var(--green); color: var(--cream); border-radius: 0 24px 24px 0;
  box-shadow: var(--shadow);
}
.about-badge b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.about-badge span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }

/* ---------- Featured stays carousel ---------- */
.stays .title-caps { margin-bottom: var(--s7); }
.carousel { position: relative; padding: 0 64px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view, 3) - 1) * var(--s5)) / var(--per-view, 3)); gap: var(--s5);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-btn {
  position: absolute; top: 34%; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.carousel-btn:disabled { opacity: .3; cursor: default; background: #fff; color: var(--ink); border-color: var(--ink); }
.carousel-btn.prev { left: 0; } .carousel-btn.next { right: 0; }
.carousel.is-static .carousel-btn { display: none; }
.stay-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.stay-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.stay-media > img, .stay-media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.stay-card:hover .stay-media > img { transform: scale(1.05); }
.ribbon { position: absolute; top: 0; right: 0; width: 120px; height: 120px; overflow: hidden; pointer-events: none; }
.ribbon span {
  position: absolute; top: 26px; right: -38px; width: 170px; padding: 7px 0; transform: rotate(45deg);
  background: var(--green); color: var(--cream); text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.stay-card h3 { font-size: 1.3rem; margin: var(--s4) 0 var(--s2); }
.stay-card h3 a { color: var(--ink); }
.stay-card h3 a:hover { color: var(--green); }
.stay-card p { font-size: .92rem; color: var(--text); margin-bottom: var(--s4); }
.stay-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.stay-price { font-size: .85rem; color: var(--muted); }
.stay-price b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.type-links { display: flex; justify-content: center; gap: var(--s6); flex-wrap: wrap; margin-top: var(--s7); }
.type-links a { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--mist); padding-bottom: 4px; }
.type-links a span { color: var(--muted); font-family: var(--font-body); margin-left: 4px; }
.type-links a:hover { color: var(--green); border-color: var(--green); }

/* ---------- Contact over the map ---------- */
.contact-band {
  position: relative; padding: 120px 0; min-height: 560px; display: flex; align-items: center;
  background: #ddd2c1 url("../images/map.svg") center / cover no-repeat;
}
.contact-band .container { display: flex; justify-content: flex-end; }
.contact-card { position: relative; overflow: hidden; width: min(440px, 100%); padding: var(--s7) var(--s6); background: var(--green); color: var(--cream); box-shadow: var(--shadow); }
.contact-card h2 { color: var(--cream); text-transform: uppercase; margin-bottom: var(--s5); position: relative; }
.contact-card .contact-lead { position: relative; color: rgba(244, 236, 225, .82); margin: calc(-1 * var(--s3)) 0 var(--s5); }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); position: relative; }
.contact-card li { display: flex; align-items: center; gap: var(--s3); font-size: 1rem; }
.contact-card a { color: var(--cream); }
.contact-card a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ci { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--green); }
.sprig { position: absolute; right: -30px; bottom: -40px; width: 180px; opacity: .18; }
.map-pin { position: absolute; left: 28%; top: 48%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); animation: float 4s ease-in-out infinite; }

/* ---------- Photo strip ---------- */
.moments .title-caps { margin-bottom: var(--s7); }
.moments-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.moments-grid figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.moments-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.moments-grid figure:hover img { transform: scale(1.06); }

/* ---------- Listing cards (Explore) ---------- */
.listing-card { border: 0; background: #fff; box-shadow: var(--shadow-sm); }
.listing-card:hover { box-shadow: var(--shadow); }
.listing-card .media { aspect-ratio: 4 / 3.3; background: var(--cream); }
.listing-card .media .badge { top: 0; left: 0; border-radius: 0 0 4px 0; background: var(--green); color: var(--cream); box-shadow: none; padding: 6px 12px; }
.listing-card .media .badge::before { display: none; }
.listing-card .media .booked-badge { top: auto; bottom: 12px; left: 12px; background: #fff; color: var(--ink); border-radius: 3px; }
.listing-card h3 { font-size: 1.25rem; }
.price b { font-family: var(--font-display); font-weight: 600; }
.arrow { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.listing-card:hover .arrow { background: var(--green); border-color: var(--green); color: var(--cream); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--cream); padding-bottom: calc(var(--s7) + 30px); }
.page-head:not(.is-plain)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; z-index: -1; background: var(--bg);
  -webkit-mask: url("../images/brush-edge.svg") center / 100% 100% no-repeat;
          mask: url("../images/brush-edge.svg") center / 100% 100% no-repeat;
}
.page-head.is-plain { padding-bottom: var(--s5); }
.crumbs { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.auth-wrap { background: var(--cream); }
.quote { background: var(--cream); }
.cta { border-radius: 0; background: var(--green-700); color: rgba(244, 236, 225, .85); }
.cta h2 { color: var(--cream); }
.ref, .err-code { font-family: var(--font-display); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: var(--s8); padding: 110px 0 var(--s6); border-top: 0;
  background: var(--green-700); color: rgba(244, 236, 225, .78); font-size: .9rem;
}
.site-footer .brush-top { height: 64px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.footer-nav { display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: center; }
.footer-nav a, .footer-copy { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.footer-copy { color: rgba(244, 236, 225, .7); }
.site-footer a:hover { color: #fff; }
.footer-legal { display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid rgba(244, 236, 225, .15); font-size: .82rem; }
.footer-legal a { color: rgba(244, 236, 225, .78); }
.footer-legal .pay-logos { margin-left: auto; }
.site-footer .pay-logos span { background: rgba(244, 236, 225, .1); color: var(--cream); border-color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: var(--s5); }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .about-photos { min-height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .about-sketch { width: 80vw; opacity: .35; }
  .carousel-track { --per-view: 2 !important; }
  .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band { padding-top: 260px; }
  .contact-band .container { justify-content: center; }
  .map-pin { left: 48%; top: 130px; }
}
@media (max-width: 760px) {
  .hero.hero-photo { min-height: 0; padding: var(--s8) 0 var(--s9); }
  .hero-search .searchbar.smart { border-radius: 3px; }
  .hero-search .sb-cell { min-height: 54px; padding: 6px 14px; }
  .hero-search .searchbar.smart .btn { margin: 4px 0 0; }
  .carousel { padding: 0; }
  .carousel-track { grid-auto-columns: 82%; }
  .carousel-btn { display: none; }
  .footer-main { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer-legal .pay-logos { margin-left: 0; }
}
@media (max-width: 560px) {
  .about-photos { min-height: 360px; }
  .about-badge { bottom: 30px; }
  .moments-grid { gap: var(--s2); }
  .brush { height: 34px; }
}
.btn-reserve { text-transform: uppercase; letter-spacing: .1em; font-size: .86rem; }

/* ---------- Live map (homepage Contact) ---------- */
.contact-band.has-map { min-height: 620px; overflow: hidden; }
.contact-band .uma-map { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .8s var(--ease); }
.map-ready .uma-map { opacity: 1; }
.contact-card .btn-cream { color: var(--green); }
/* Beat .contact-card a:hover (white + underline), which is meant for text links only */
.contact-card .btn-cream:hover { color: var(--btn-fg); text-decoration: none; }
.map-ready .map-pin { display: none; }
.contact-band.has-map .container { position: relative; z-index: 2; pointer-events: none; }
.contact-band.has-map .contact-card { pointer-events: auto; }
.contact-band .brush { z-index: 3; }
.uma-marker { display: flex; flex-direction: column; align-items: center; cursor: default; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.uma-marker > span:not(.pin-ripple) {
  order: -1; margin-bottom: 6px; padding: 6px 12px; border-radius: 3px; white-space: nowrap;
  background: var(--green); color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.map-switch { position: absolute; z-index: 4; left: max(16px, calc((100vw - var(--container)) / 2 + 24px)); top: 84px; display: flex; padding: 4px; background: rgba(244, 236, 225, .95); border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.map-switch[hidden] { display: none; }
.map-switch button { border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: var(--pill); font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.map-switch button.is-on { background: var(--green); color: var(--cream); }
.contact-band .maplibregl-ctrl-bottom-left { left: max(6px, calc((100vw - var(--container)) / 2 + 14px)); bottom: 64px; }
.contact-band .maplibregl-ctrl-bottom-right { bottom: 58px; }
.contact-band .maplibregl-ctrl-group { border-radius: 4px; background: var(--cream); box-shadow: var(--shadow-sm); }
.contact-band .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.contact-band .maplibregl-ctrl-attrib { background: rgba(244, 236, 225, .85); font-family: var(--font-body); }
.contact-band .maplibregl-cooperative-gesture-screen { font-family: var(--font-body); background: rgba(31, 51, 19, .55); }
.contact-actions { position: relative; display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s6); }
.btn-cream { --btn-bg: var(--cream); --btn-fg: var(--green); --btn-bd: var(--cream); }
.btn-cream:hover { --btn-fg: var(--green-700); background: #fff; border-color: #fff; }
.link-cream { color: var(--cream); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.link-cream:hover { color: #fff; }
@media (max-width: 960px) {
  .contact-band.has-map { padding-top: 360px; align-items: flex-end; }
  .map-switch { top: 70px; }
}
.contact-band .maplibregl-ctrl-attrib { font-size: .68rem; }
@media (max-width: 960px) {
  .contact-band .maplibregl-ctrl-bottom-left { top: 70px; bottom: auto; left: auto; right: 6px; }
}

/* ---------- Readable prices ----------
   Playfair's old-style figures dip below the line (3, 5, 9) and its ₱ is heavy, which made prices hard to scan.
   Every number on the site uses lining figures; prices themselves use the clean sans (Jost) with even-width digits. */
html { font-variant-numeric: lining-nums; }
.price b, .stay-price b, .reserve-price .now, .reserve-price .was, .quote .total, .fact b, .was,
.receipt .total, .kv dd, .num, .stat b, .stat .value {
  font-variant-numeric: lining-nums tabular-nums;
}
.price b, .stay-price b, .reserve-price .now, .reserve-price .was, .quote .total {
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--ink);
}
.price b { font-size: 1.4rem; }
.price span, .stay-price, .reserve-price .per { font-size: .95rem; font-weight: 500; color: var(--text); }
.price s.was, .stay-price s.was { font-size: .9rem; font-weight: 400; color: var(--muted); margin-right: 4px; }
.stay-price b { font-size: 1.25rem; }
.reserve-price .now { font-size: 1.85rem; font-weight: 600; }
.reserve-price .was { font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.quote .total { font-size: 1.2rem; }
.fact small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact b { font-size: 1.05rem; }
/* Carousel cards: price on its own line above the button so every card lines up */
.stay-foot { flex-direction: column; align-items: flex-start; gap: var(--s3); }
.stay-price { order: -1; }

/* ---------- Homepage stays: type tabs + even card footers ---------- */
.stays .title-caps { margin-bottom: var(--s5); }
.stay-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s3) var(--s4); margin: 0 auto var(--s7); }
.stay-tabs a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 22px; border-radius: var(--pill);
  border: 1px solid var(--mist); background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s;
}
.stay-tabs a:hover { border-color: var(--green); color: var(--green); }
.stay-tabs a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.stay-tabs a.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }
.tab-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill);
  background: var(--cream); color: var(--green);
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums;
}
.stay-tabs a.is-on .tab-count { background: rgba(244, 236, 225, .2); color: var(--cream); }

.stay-card[hidden] { display: none; }
.stay-card { height: 100%; }
.stay-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay-card p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.6em); line-height: 1.6;
}
.stay-foot {
  margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line);
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: var(--s3);
}
.stay-price { order: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.1; min-width: 0; }
.stay-price b { font-size: 1.3rem; }
.stay-price small { font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay-price small s { margin-right: 4px; }
.stay-foot .btn { flex: none; }
.carousel-track.is-switching { opacity: 0; }
.carousel-track { transition: opacity .25s var(--ease); }
@media (max-width: 560px) {
  .stay-tabs { gap: var(--s2); justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 4px 16px; scrollbar-width: none; }
  .stay-tabs::-webkit-scrollbar { display: none; }
  .stay-tabs a { flex: none; }
}
.carousel.is-static .carousel-track { justify-content: center; }
/* Homepage carousel uses the Explore listing card */
.stay-card > .listing-card { height: 100%; }
.carousel-track { padding: 4px 4px 14px; margin: 0 -4px; } /* room for the card shadow */
.carousel-btn { top: 40%; }
.stay-card .listing-card h3 { white-space: normal; overflow: visible; margin: 0; font-size: 1.2rem; }
.stay-card .listing-card p { min-height: 0; margin: 0; -webkit-line-clamp: 2; }
.stay-card .listing-card .body { padding: var(--s5) 20px; }
.stay-card .listing-card .meta { row-gap: 2px; column-gap: var(--s3); }
.stay-card .listing-card .price > div { white-space: nowrap; }
.stay-card .listing-card .price b { font-size: 1.25rem; }
.stay-card .listing-card .price span { font-size: .85rem; }
.stay-card .listing-card .arrow { flex: none; }
/* Listing cards: Book now button under the price (whole card stays one link) */
.listing-card .price { display: block; }
.listing-card .card-cta { margin-top: var(--s4); pointer-events: none; }
.listing-card:hover .card-cta { background: var(--green-600); border-color: var(--green-600); }
.stay-card .listing-card .price > div { white-space: normal; }

/* ---------- Map pin + overlays (readable on both map and satellite) ---------- */
.uma-marker { position: relative; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.uma-marker .pin-body { fill: #34501f; stroke: #f4ece1; stroke-width: 1.4; }
.uma-marker .pin-leaf { fill: #f4ece1; }
.uma-marker > span:not(.pin-ripple) { border: 1.5px solid rgba(244, 236, 225, .9); }
/* Ripple: three thin rings spreading out from the pin's tip, one after another, like a drop in water */
.pin-ripple { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; pointer-events: none; z-index: -1; }
.pin-ripple i {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(52, 80, 31, .85); box-shadow: 0 0 0 1px rgba(244, 236, 225, .5);
  transform: scale(0); opacity: 0; animation: pinRipple 3s cubic-bezier(.15, .6, .35, 1) infinite;
}
.pin-ripple i:nth-child(2) { animation-delay: 1s; }
.pin-ripple i:nth-child(3) { animation-delay: 2s; }
@keyframes pinRipple {
  0% { transform: scale(0); opacity: 0; border-width: 3px; }
  10% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; border-width: 1px; }
}
/* Satellite: invert the pin to cream so it stands out from the green canopy */
.is-satellite .uma-marker .pin-body { fill: #f4ece1; stroke: #1f3313; stroke-width: 1.6; }
.is-satellite .uma-marker .pin-leaf { fill: #34501f; }
.is-satellite .uma-marker > span:not(.pin-ripple) { background: #f4ece1; color: #1f3313; border-color: #1f3313; }
.is-satellite .pin-ripple i { border-color: rgba(244, 236, 225, .95); box-shadow: 0 0 0 1px rgba(20, 30, 14, .45); }
.map-switch, .contact-band .maplibregl-ctrl-group { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.is-satellite .map-switch { background: #f4ece1; }
.map-switch button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.map-switch button:focus:not(:focus-visible) { outline: none; }
.is-satellite .contact-band .maplibregl-ctrl-attrib, .contact-band.is-satellite .maplibregl-ctrl-attrib { background: rgba(244, 236, 225, .95); }
.contact-band.has-map:not(.is-satellite) { background-color: #e6e3dd; }
.stay-tabs a:focus:not(:focus-visible) { outline: none; }

/* Sticky footer: on short pages (empty My bookings, errors) the footer sits at the bottom of the window */
body.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.site > .site-main { flex: 1 0 auto; }
body.site > .site-header, body.site > .site-footer { flex-shrink: 0; }

/* Uploaded site logo (System settings → General). Height-bound so square marks and wide wordmarks both fit. */
.logo-img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand-logo-only .logo-img { height: 48px; max-width: 220px; }
.admin-side .brand .logo-img { height: 32px; max-width: 120px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.logo-preview { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.logo-preview-box { display: grid; place-items: center; min-width: 96px; height: 72px; padding: 8px 14px; border: 1px dashed rgba(38, 53, 28, .25); border-radius: 10px; background: #fff; }
.logo-preview-box img { max-height: 56px; max-width: 200px; object-fit: contain; }
.logo-preview-box svg { width: 44px; height: 44px; }
@media (max-width: 900px) { .brand-logo-only .logo-img { height: 40px; } }
.logo-preview-dark { background: var(--green-700); border-color: transparent; }
