/* =====================================================================
   Daman Pool Villa Bunglow — public site stylesheet
   Hand-written, zero build step, mobile-app feel on phones.
   ===================================================================== */

:root {
  --brand:        #0f766e;
  --brand-dark:   #115e59;
  --brand-light:  #14b8a6;
  --brand-tint:   #ccfbf1;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --accent-tint:  #fef3c7;
  --sunset:       #fb7185;
  --ink:          #0f172a;
  --ink-2:        #334155;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --bg:           #f8fafc;
  --card:         #ffffff;
  --ok:           #059669;
  --warn:         #d97706;
  --danger:       #e11d48;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow:       0 4px 6px -1px rgba(15,23,42,.07), 0 10px 24px -6px rgba(15,23,42,.12);
  --shadow-lg:    0 20px 45px -12px rgba(15,23,42,.25);
  --header-h:     68px;
  --ease:         cubic-bezier(.22,1,.36,1);
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ layout */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 18px; }
.container-sm { max-width: 820px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .78rem; }
.strong { font-weight: 700; color: var(--ink); }
.hide { display: none !important; }

/* Brand-coloured banner used at the top of inner pages and on CTA blocks.
   Driven entirely by the theme variables, so it restyles with the palette. */
.page-hero { background: linear-gradient(160deg, var(--brand), var(--brand-light)); color: #fff; }
.page-hero h1, .page-hero h2, .page-hero p, .page-hero a { color: #fff; }
.page-hero .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.page-hero p { color: rgba(255,255,255,.92); }
.page-hero-img { background-size: cover; background-position: center; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ------------------------------------------------------------ header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; flex: none; white-space: nowrap; }
.logo > span { white-space: nowrap; line-height: 1.15; }
.logo img { height: 40px; width: auto; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; font-weight: 900; font-size: 1rem; letter-spacing: -.04em;
}
.logo small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.nav a {
  padding: 9px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--bg); color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-tint); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; place-items: center; color: var(--ink);
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer a { padding: 13px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.drawer a:hover, .drawer a.active { background: var(--bg); color: var(--brand); }
.scrim {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; font-family: inherit; line-height: 1.2;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; box-shadow: 0 6px 18px -6px rgba(15,118,110,.6); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px -8px rgba(15,118,110,.72); transform: translateY(-1px); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #fbbf24); color: #422006; box-shadow: 0 6px 18px -6px rgba(245,158,11,.6); }
.btn-accent:hover { color: #422006; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1e293b; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { color: #fff; background: #1eb959; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; background: #be123c; }
.btn-sm { padding: 9px 15px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .62; pointer-events: none; }
.btn.loading::after {
  content: ''; width: 15px; height: 15px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- badge */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-amber   { background: #fef3c7; color: #92400e; }
.badge-rose    { background: #ffe4e6; color: #9f1239; }
.badge-sky     { background: #e0f2fe; color: #075985; }
.badge-slate   { background: #e2e8f0; color: #334155; }
.badge-indigo  { background: #e0e7ff; color: #3730a3; }
.badge-violet  { background: #ede9fe; color: #5b21b6; }

/* -------------------------------------------------------------- card */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; min-height: clamp(480px, 78vh, 760px); display: grid; }
.hero-slide {
  grid-area: 1/1; position: relative; opacity: 0; transition: opacity 1.1s var(--ease);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.58) 0%, rgba(15,23,42,.35) 42%, rgba(15,23,42,.78) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 90px 18px; max-width: 860px; }
.hero-content h1 { color: #fff; text-shadow: 0 3px 26px rgba(0,0,0,.4); margin-bottom: 14px; }
.hero-content p { font-size: clamp(1rem, 2.2vw, 1.22rem); color: rgba(255,255,255,.94); margin-bottom: 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .84rem; font-weight: 600; backdrop-filter: blur(8px);
}
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: width .3s var(--ease), background .3s var(--ease);
}
.hero-dots button.active { width: 30px; background: #fff; }

/* --------------------------------------------------- booking search */
.search-widget {
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.search-float { position: relative; z-index: 20; margin-top: -66px; }

/* ------------------------------------------------------------- forms */
.field { margin-bottom: 16px; }
.label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(20,184,166,.16);
}
.input::placeholder { color: #94a3b8; }
.textarea { resize: vertical; min-height: 108px; }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input.error, .select.error, .textarea.error { border-color: var(--danger); background: #fff5f6; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 5px; font-weight: 600; }
.field-help { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; flex: none; }
.input-group { display: flex; }
.input-group .input { border-radius: 11px 0 0 11px; }
.input-group .btn { border-radius: 0 11px 11px 0; }

/* OTP boxes */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-row input {
  width: 50px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 800;
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink);
}
.otp-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(20,184,166,.16); }

/* -------------------------------------------------------- room cards */
.room-card { display: flex; flex-direction: column; height: 100%; }
.room-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e2e8f0; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-hover:hover .room-media img { transform: scale(1.07); }
.room-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ink); padding: 5px 12px;
  border-radius: 999px; font-size: .73rem; font-weight: 800; backdrop-filter: blur(6px);
}
.room-tag.sold { background: rgba(225,29,72,.94); color: #fff; }
.room-price-badge {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(15,23,42,.86); color: #fff; padding: 7px 14px; border-radius: 12px;
  font-weight: 800; font-size: .95rem; backdrop-filter: blur(6px);
}
.room-price-badge span { font-size: .72rem; font-weight: 600; opacity: .8; }
.room-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { margin-bottom: 6px; font-size: 1.16rem; }
.room-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); margin: 10px 0 14px; }
.room-facts span { display: inline-flex; align-items: center; gap: 5px; }
.room-amen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); font-size: .76rem; font-weight: 600; color: var(--ink-2);
}
.chip svg { color: var(--brand); }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price-now { font-size: 1.35rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.price-was { font-size: .88rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.price-unit { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------- amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }
.amenity {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.amenity:hover { transform: translateY(-4px); border-color: var(--brand-light); box-shadow: var(--shadow-sm); }
.amenity-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.amenity span { font-size: .86rem; font-weight: 700; color: var(--ink); }

/* ----------------------------------------------------------- gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: #e2e8f0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,23,42,.5), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .zoom-hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(6px);
  background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px; color: var(--ink);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover .zoom-hint { opacity: 1; transform: translateY(0); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.filter-row a {
  padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 700; color: var(--ink-2); text-transform: capitalize;
}
.filter-row a.active, .filter-row a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(2,6,23,.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px;
  animation: pop .35s var(--ease); user-select: none;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 18px; top: 18px; }
.lb-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
.lb-count { position: absolute; top: 26px; left: 24px; color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 700; }

/* --------------------------------------------------- room detail page */
.detail-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; }
.detail-hero .main { aspect-ratio: 16/11; }
.detail-hero .side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: filter .3s var(--ease); }
.detail-hero img:hover { filter: brightness(1.06); }
.detail-cols { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.booking-box { position: sticky; top: calc(var(--header-h) + 18px); }

/* price breakdown */
.breakdown { font-size: .92rem; }
.breakdown-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.breakdown-row.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 13px; font-size: 1.1rem; font-weight: 900; color: var(--ink); }
.breakdown-row.discount { color: var(--ok); font-weight: 700; }
.nights-table { max-height: 210px; overflow-y: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.nights-table div { display: flex; justify-content: space-between; padding: 7px 12px; font-size: .84rem; border-bottom: 1px solid var(--line); }
.nights-table div:last-child { border-bottom: 0; }
.nights-table .we { background: var(--accent-tint); }

/* ---------------------------------------------------------- calendar */
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal-head strong { font-size: 1rem; color: var(--ink); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button, .cal-nav a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.cal-nav button:hover, .cal-nav a:hover { border-color: var(--brand); color: var(--brand); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 9px 0; text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; background: var(--bg); }
.cal-day {
  min-height: 62px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; font-size: .74rem;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day .d { font-weight: 800; color: var(--ink); font-size: .82rem; }
.cal-day .p { color: var(--brand); font-weight: 700; }
.cal-day.empty { background: #fbfdfe; }
.cal-day.past { background: #f8fafc; color: #cbd5e1; }
.cal-day.past .d, .cal-day.past .p { color: #cbd5e1; }
.cal-day.weekend { background: #fffbeb; }
.cal-day.full { background: #fff1f2; }
.cal-day.full .p { color: var(--danger); }
.cal-day.blocked { background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 6px, #e2e8f0 6px, #e2e8f0 12px); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 5px; vertical-align: -2px; }

/* ---------------------------------------------------------- reviews */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-weight: 800; flex: none;
}
.rating-big { font-size: 3rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.04em; }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* -------------------------------------------------------------- FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 17px 20px; background: none; border: 0; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between;
  gap: 14px; align-items: center; font-family: inherit; line-height: 1.45;
}
.faq-q:hover { color: var(--brand); }
.faq-q svg { flex: none; transition: transform .3s var(--ease); color: var(--brand); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a > div { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------------------------------------------------------- footer */
.footer { background: var(--ink); color: #94a3b8; padding: 56px 0 0; margin-top: 60px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer a { color: #94a3b8; font-size: .92rem; }
.footer a:hover { color: var(--brand-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 36px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 42px; padding: 20px 0 92px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 11px; background: #1e293b; display: grid; place-items: center;
  color: #cbd5e1; transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------ floating UI */
.wa-float {
  position: fixed; right: 18px; bottom: 92px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 26px -6px rgba(37,211,102,.7);
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes waPulse {
  0%   { box-shadow: 0 8px 26px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 26px -6px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 26px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0); }
}
.social-rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 1px;
}
.social-rail a {
  width: 44px; height: 44px; display: grid; place-items: center; color: #fff;
  background: var(--ink); transition: width .25s var(--ease), background .25s var(--ease);
}
.social-rail a:first-child { border-top-right-radius: 12px; }
.social-rail a:last-child { border-bottom-right-radius: 12px; }
.social-rail a:hover { width: 54px; color: #fff; }
.social-rail a.fb:hover { background: #1877f2; }
.social-rail a.ig:hover { background: #e1306c; }
.social-rail a.yt:hover { background: #ff0000; }
.social-rail a.gg:hover { background: #4285f4; }
.social-rail a.wa:hover { background: #25D366; }

/* bottom tab bar — the "app" feel on phones */
.tabbar { display: none; }

/* ------------------------------------------------------------ flash */
.flash-wrap { position: fixed; top: 84px; right: 18px; z-index: 250; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, 92vw); }
.flash {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px;
  background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--brand);
  animation: slideIn .4s var(--ease); font-size: .92rem;
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash.success { border-left-color: var(--ok); }
.flash.error   { border-left-color: var(--danger); }
.flash.warning { border-left-color: var(--warn); }
.flash button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0; margin-left: auto; }

/* --------------------------------------------------------- steps bar */
.steps { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.step i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: var(--line); color: var(--muted); font-size: .8rem;
}
.step.done i, .step.active i { background: var(--brand); color: #fff; }
.step.active { color: var(--brand); }
.step-line { width: 34px; height: 2px; background: var(--line); }

/* --------------------------------------------------------- pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pg {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
}
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg.disabled { opacity: .4; pointer-events: none; }
.pg.dots { border: 0; background: none; }

/* ------------------------------------------------------------ table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  text-align: left; padding: 12px 14px; background: var(--bg); font-size: .74rem; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafdfe; }

/* --------------------------------------------------------- utilities */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.ratio-16-9 { aspect-ratio: 16/9; }
.rounded { border-radius: var(--radius); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg); font-weight: 800; color: var(--ink); }
.prose img { border-radius: 12px; margin: 1rem 0; }
.prose ul li { margin-bottom: 6px; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state svg { color: var(--line); margin: 0 auto 16px; }
.empty-state h3 { color: var(--ink-2); }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .v { font-size: 1.8rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat .k { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* suggest dropdown */
.suggest-wrap { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; z-index: 70;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; max-height: 380px; overflow-y: auto;
}
.suggest.show { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 11px 15px; border-bottom: 1px solid var(--line); color: var(--ink); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.hi { background: var(--bg); }
.suggest img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.suggest .t { font-weight: 700; font-size: .92rem; }
.suggest .m { font-size: .76rem; color: var(--muted); }
.suggest .k { margin-left: auto; font-size: .68rem; font-weight: 800; color: var(--brand); background: var(--brand-tint); padding: 3px 8px; border-radius: 6px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 260; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* sticky mobile CTA on room pages */
.mobile-cta { display: none; }

/* ------------------------------------------------------- responsive */
/* progressively drop header extras as the viewport narrows */
.header-search { display: none; }
@media (min-width: 1440px) { .header-search { display: block; } }
@media (max-width: 1180px) { .logo small { display: none; } .nav a { padding: 9px 9px; font-size: .86rem; } }
@media (max-width: 1080px) { .nav .nav-secondary { display: none; } }
@media (max-width: 980px)  { .header-actions .btn-wa span, .logo > span { display: none; } }
/* below the nav breakpoint there is room for the name again */
@media (max-width: 860px)  { .logo > span { display: block; font-size: .96rem; } }

@media (max-width: 1024px) {
  .detail-cols { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions .btn-desktop { display: none; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .social-rail { display: none; }
  .search-float { margin-top: -30px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 1; }
  .flash-wrap { top: auto; bottom: 96px; left: 12px; right: 12px; max-width: none; }
  @keyframes slideIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* app-style bottom tab bar */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(15,23,42,.06);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px;
    font-size: .66rem; font-weight: 700; color: var(--muted);
  }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active svg { transform: translateY(-2px); }
  .tabbar svg { transition: transform .25s var(--ease); }
  .tabbar .fab {
    margin-top: -22px; width: 50px; height: 50px; border-radius: 50%; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
    box-shadow: 0 8px 20px -6px rgba(15,118,110,.7);
  }
  .tabbar .fab span { display: none; }
  body { padding-bottom: 64px; }
  .wa-float { bottom: 84px; right: 14px; width: 52px; height: 52px; }
  .footer-bottom { padding-bottom: 26px; }

  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 95;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
    align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 16px rgba(15,23,42,.08);
  }
}

@media (max-width: 620px) {
  .sep { display: none; }
}

@media (max-width: 520px) {
  .search-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .otp-row input { width: 42px; height: 52px; font-size: 1.25rem; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-pad { padding: 18px; }
}

@media print {
  .header, .footer, .tabbar, .wa-float, .social-rail, .flash-wrap, .no-print, .mobile-cta { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
