/* =====================================================================
   KULASAI LODGE – STYLES
   Colours and fonts are defined once below in :root – change them there.
   ===================================================================== */

:root {
  --bg: #f7f2ea;           /* warm off-white */
  --bg-alt: #efe7da;       /* beige for alternating sections */
  --surface: #fffdf9;      /* cards */
  --text: #2b2b2b;         /* charcoal */
  --text-muted: #5c5650;
  --gold: #b08d57;         /* muted gold (decorative) */
  --gold-dark: #7d5f2e;    /* gold for buttons/text – passes WCAG AA contrast */
  --gold-darker: #634a22;
  --line: #e2d8c8;
  --green: #2f6b3f;
  --amber: #8a5a00;
  --red: #9b2c2c;
  --whatsapp: #1c7c4a;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(43, 43, 43, 0.05), 0 8px 24px rgba(43, 43, 43, 0.07);
  --shadow-hover: 0 2px 4px rgba(43, 43, 43, 0.06), 0 14px 32px rgba(43, 43, 43, 0.11);
  --header-h: 68px;
  --container: 1160px;
}

/* ---------------- Base ---------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

/* Lighter focus ring where the background is dark */
.hero :focus-visible,
.contact-card :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: #e2c38f;
}

.mobile-bar :focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.setup-banner {
  background: #fff3d6;
  color: #5a4210;
  border-bottom: 1px solid #ecd9a8;
  font-size: 0.875rem;
  text-align: center;
  padding: 8px 16px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 0.975rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--gold-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-darker);
}

.btn-light {
  background: #fffdf9;
  color: var(--text);
}

.btn-light:hover {
  background: #f1e8d8;
}

.btn-outline {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #14603a;
}

.btn.is-disabled {
  background: #ddd3c3;
  color: #4a4238;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(247, 242, 234, 0.85);
    backdrop-filter: blur(8px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(43, 43, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--text);
  color: #d6b47a;
  font: 600 1.3rem/1 var(--font-serif);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font: 600 1.25rem/1 var(--font-serif);
  letter-spacing: 0.18em;
}

.logo-text small {
  font: 500 0.68rem/1.4 var(--font-sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--gold-dark);
  background: rgba(176, 141, 87, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(43, 43, 43, 0.08);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 8px 20px 16px;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.02rem;
  }

  .main-nav li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 380px) {
  .header-actions .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .header-actions .btn {
    padding: 0 12px;
  }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bottom-anchored so the illustration's "Sample image" label stays visible */
  object-position: 60% 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 24, 20, 0.82) 0%, rgba(28, 24, 20, 0.6) 45%, rgba(28, 24, 20, 0.2) 100%);
}

.hero-content {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero .eyebrow {
  color: #e2c38f;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  max-width: 14ch;
  margin: 10px 0 16px;
}

.hero-intro {
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

@media (max-width: 639px) {
  .hero {
    min-height: 560px;
    align-items: flex-end;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(28, 24, 20, 0.35) 0%, rgba(28, 24, 20, 0.85) 70%);
  }
  .hero-content {
    padding-bottom: 40px;
  }
  .hero .btn-row .btn {
    flex: 1 1 140px;
  }
}

/* ---------------- Sections ---------------- */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section-head h2,
.location-info h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 8px 0 12px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
}

.section-sub {
  color: var(--text-muted);
}

/* ---------------- Notice ---------------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fbf3e3;
  border: 1px solid #ead8b4;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 32px;
  color: #4a3a1f;
}

.notice .icon {
  margin-top: 3px;
  color: var(--gold-dark);
  width: 20px;
  height: 20px;
}

.notice-meta {
  font-size: 0.9rem;
  color: #6a5838;
  margin-top: 4px;
}

.notice-meta .dot {
  margin: 0 6px;
}

.notice-meta a {
  font-weight: 600;
  color: var(--green);
}

/* Small label for content that is still sample (e.g. the facilities list) */
.sample-note {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1px dashed #c9a55a;
  border-radius: 999px;
  background: #fff8e8;
  color: #5a4210;
  font-size: 0.85rem;
}

/* ---------------- Room cards ---------------- */

.room-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

/* Same grid as the live availability cards: 1 / 2 (+ wide last card) / 3 columns */
@media (min-width: 640px) {
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .room-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .room-card:last-child:nth-child(odd) .room-media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 1024px) {
  .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .room-card:last-child:nth-child(odd) {
    grid-column: auto;
    display: flex;
  }

  .room-card:last-child:nth-child(odd) .room-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

.room-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 10px 30px rgba(73, 56, 28, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .room-card:hover {
    box-shadow: 0 2px 4px rgba(43, 43, 43, 0.05), 0 18px 40px rgba(73, 56, 28, 0.13);
    transform: translateY(-3px);
  }
}

.room-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe4d0, #e2d3b8);
}

.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the bottom of the picture (the illustrations carry a "Sample image" label there) */
  object-position: 50% 100%;
}

.tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-sample {
  right: 12px;
  background: #fff3d6;
  color: #5a4210;
  border: 1px dashed #c9a55a;
}

.room-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  gap: 10px;
}

.room-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: -4px;
}

.room-name {
  font-size: 1.45rem;
}

.room-live-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.room-live-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.room-live-link:hover {
  color: #24532f;
}

.price-sample {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a5838;
  margin-bottom: -6px;
}

.room-media.no-image::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-ask {
  font-size: 1.3rem;
}

.load-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.room-meta li {
  position: relative;
  padding-left: 14px;
}

.room-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.room-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-amount {
  font: 600 1.5rem/1 var(--font-serif);
}

.price-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-actions .btn {
  flex: 1 1 auto;
  padding: 0 12px;
}

/* ---------------- Facilities ---------------- */

.facility-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .facility-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facility {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.facility-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.14);
  color: var(--gold-dark);
}

.facility-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.facility-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.facility-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------------- Gallery ---------------- */

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  min-height: 0;
}

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

@media (min-width: 760px) {
  .gallery-btn {
    aspect-ratio: auto;
  }
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-btn:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  text-align: left;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1000px, 94vw);
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(20, 18, 16, 0.88);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox p {
  color: #fff;
  text-align: center;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- Location ---------------- */

.location-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 2fr 3fr;
    gap: 48px;
  }
}

.address-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.address-block strong {
  color: var(--text);
  margin-bottom: 4px;
}

.address-line {
  display: block;
}

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

@media (min-width: 900px) {
  .map-frame {
    aspect-ratio: 16 / 10;
  }
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(176, 141, 87, 0.14) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(176, 141, 87, 0.14) 39px 40px),
    var(--surface);
}

.map-placeholder svg {
  width: 44px;
  height: 44px;
  fill: var(--gold-dark);
  margin-bottom: 6px;
}

.map-placeholder-title {
  font: 600 1.25rem/1.2 var(--font-serif);
  color: var(--text);
}

/* ---------------- Contact ---------------- */

.contact-card {
  display: grid;
  gap: 28px;
  background: var(--text);
  color: #f1ebe1;
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 24px;
  box-shadow: var(--shadow-hover);
}

@media (min-width: 860px) {
  .contact-card {
    grid-template-columns: 3fr 2fr;
    align-items: center;
    padding: 56px;
  }
}

.contact-card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 8px 0 12px;
}

.eyebrow-light {
  color: #e2c38f;
}

.contact-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list .icon {
  color: #e2c38f;
  margin-top: 4px;
}

.contact-list a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 195, 143, 0.5);
}

.contact-list a:hover {
  border-bottom-color: #e2c38f;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact .btn-primary {
  background: #c9a46a;
  color: #1f1a14;
}

.contact .btn-primary:hover {
  background: #d9b67d;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #211f1c;
  color: #cfc7ba;
  padding: 56px 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.4fr;
  }
}

.footer-brand {
  font: 600 1.5rem/1.2 var(--font-serif);
  color: #fff;
  letter-spacing: 0.08em;
}

.footer-tag {
  color: #e2c38f;
  margin-top: 6px;
}

.footer-title {
  font: 600 0.8rem/1 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cfc7ba;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e2c38f;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #a69e92;
}

/* ---------------- Mobile quick-action bar ---------------- */

.mobile-bar {
  display: none;
}

@media (max-width: 639px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding-bottom: env(safe-area-inset-bottom);
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--gold-dark);
  }

  .mobile-bar a + a {
    background: var(--whatsapp);
  }

  body {
    padding-bottom: 54px;
  }
}

/* =====================================================================
   LIVE AVAILABILITY – "Find Your Perfect Stay"
   Filled by js/availability.js. Aggregate counts only.
   ===================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stay {
  --stay-ivory: #fbf8f2;
  --stay-card: #fffdf9;
  --stay-green: #2f6b3f;
  --stay-green-soft: #e8f2ea;
  --stay-shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 10px 30px rgba(73, 56, 28, 0.08);
  --stay-shadow-hover: 0 2px 4px rgba(43, 43, 43, 0.05), 0 18px 40px rgba(73, 56, 28, 0.13);
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(214, 180, 122, 0.16), transparent 70%),
    linear-gradient(180deg, #f4ede2 0%, var(--stay-ivory) 45%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .stay {
    padding: 88px 0 96px;
  }
}

/* ---------- Heading ---------- */

.stay-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.stay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.stay-eyebrow::before,
.stay-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.stay-head h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: -0.01em;
  margin: 12px 0 10px;
}

.stay-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.stay-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 20px;
}

.stay-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(73, 56, 28, 0.06);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.stay-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b9ab94;
  flex-shrink: 0;
}

.stay-inner[data-state="available"] .stay-indicator {
  color: var(--stay-green);
  border-color: #c7ddcc;
}

.stay-inner[data-state="available"] .stay-indicator-dot {
  background: var(--stay-green);
  box-shadow: 0 0 0 0 rgba(47, 107, 63, 0.5);
  animation: stay-pulse 2.2s ease-out infinite;
}

.stay-inner[data-state="full"] .stay-indicator,
.stay-inner[data-state="none"] .stay-indicator {
  color: var(--red);
  border-color: #e9c9c4;
}

.stay-inner[data-state="full"] .stay-indicator-dot,
.stay-inner[data-state="none"] .stay-indicator-dot {
  background: var(--red);
}

.stay-inner[data-state="error"] .stay-indicator {
  color: #5a4210;
  border-color: #ead8b4;
}

.stay-inner[data-state="error"] .stay-indicator-dot {
  background: var(--gold);
}

@keyframes stay-pulse {
  70% { box-shadow: 0 0 0 9px rgba(47, 107, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 63, 0); }
}

.stay-checked {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stay-checked:empty {
  display: none;
}

/* ---------- Overall statistics ---------- */

.stay-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}

.stay-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 16px 8px 14px;
  background: var(--stay-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--stay-shadow);
}

.stay-stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #f5ecdc;
  color: var(--gold-dark);
}

.stay-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.stay-stat-available .stay-stat-icon {
  background: var(--stay-green-soft);
  color: var(--stay-green);
}

.stay-stat dt {
  order: 2;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
}

.stay-stat dd {
  order: 1;
  margin: 0;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  font: 600 clamp(2rem, 7vw, 2.75rem)/1 var(--font-serif);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stay-stat-available dd {
  color: var(--stay-green);
}

@media (min-width: 640px) {
  .stay-stats {
    gap: 20px;
  }

  /* Icon on the left, number above label on the right */
  .stay-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    justify-items: start;
    text-align: left;
    padding: 20px 22px;
  }

  .stay-stat-icon {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .stay-stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .stay-stat dd {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
  }

  .stay-stat dt {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
  }
}

/* Loading placeholders */
.stay-skeleton {
  display: block;
  width: 2.4rem;
  height: 2rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #efe7da 25%, #f8f3ea 50%, #efe7da 75%);
  background-size: 200% 100%;
  animation: stay-shimmer 1.4s linear infinite;
}

.stay-skeleton-line {
  width: 70%;
  height: 0.9rem;
  margin-top: 14px;
}

@keyframes stay-shimmer {
  to { background-position: -200% 0; }
}

/* ---------- Room type cards ---------- */

.stay-rooms-wrap {
  margin-bottom: 40px;
}

.stay-rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stay-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last card on the two-column layout spans the full width, picture beside text */
  .stay-room:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .stay-room:last-child:nth-child(odd) .stay-room-media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 1024px) {
  .stay-rooms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .stay-room:last-child:nth-child(odd) {
    grid-column: auto;
    display: flex;
  }

  .stay-room:last-child:nth-child(odd) .stay-room-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

.stay-room {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--stay-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--stay-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .stay-room:hover {
    box-shadow: var(--stay-shadow-hover);
    transform: translateY(-3px);
  }
}

.stay-room-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe4d0, #e2d3b8);
}

.stay-room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the bottom of the picture (the illustrations carry a "Sample image" label there) */
  object-position: 50% 100%;
  transition: transform 0.6s ease, filter 0.3s ease;
}

@media (hover: hover) {
  .stay-room:hover .stay-room-media img {
    transform: scale(1.03);
    transform-origin: 50% 100%;
  }
}

.stay-room.is-full .stay-room-media img,
.stay-room.is-none .stay-room-media img {
  filter: saturate(0.55);
}

/* soft fade so the badge reads well over any picture */
.stay-room-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 16, 0.28) 0%, transparent 38%);
  pointer-events: none;
}

.stay-room-media.no-image::before {
  content: "K";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 3rem/1 var(--font-serif);
  color: rgba(99, 74, 34, 0.35);
}

.stay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.stay-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.stay-badge-available {
  color: var(--stay-green);
}

.stay-badge-full,
.stay-badge-none {
  color: var(--red);
}

.stay-room-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.stay-room-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.stay-room-name {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.stay-room-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stay-room.is-available .stay-room-summary {
  color: var(--stay-green);
  font-weight: 600;
}

.stay-meter {
  height: 6px;
  margin: 14px 0 18px;
  border-radius: 999px;
  background: #ece4d6;
  overflow: hidden;
}

.stay-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8a52, var(--stay-green));
  transition: width 0.5s ease;
}

.stay-room-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stay-room-stat {
  text-align: center;
}

.stay-room-stat + .stay-room-stat {
  border-left: 1px solid var(--line);
}

.stay-room-stat dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stay-room-stat dd {
  margin: 2px 0 0;
  font: 600 1.5rem/1.15 var(--font-serif);
  font-variant-numeric: tabular-nums;
}

.stay-room-stat.is-available dd {
  color: var(--stay-green);
}

/* ---------- Fallback ---------- */

.stay-fallback {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 20px 22px;
  background: var(--stay-card);
  border: 1px solid #ead8b4;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--stay-shadow);
  color: var(--text-muted);
}

.stay-fallback .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold-dark);
}

.stay-fallback-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---------- Call to action ---------- */

.stay-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 22px;
  border-radius: 18px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(214, 180, 122, 0.18), transparent 70%),
    #2b2622;
  color: #e9e1d4;
  box-shadow: 0 16px 40px rgba(43, 38, 34, 0.22);
}

@media (min-width: 768px) {
  .stay-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 36px;
  }
}

.stay-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.stay-cta-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
}

.stay-cta-text p:last-child {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #cfc5b5;
  max-width: 560px;
}

.stay-cta-btn {
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(28, 124, 74, 0.35);
}

.stay-cta-btn:hover {
  box-shadow: 0 10px 26px rgba(28, 124, 74, 0.45);
}

@media (max-width: 767px) {
  .stay-cta-btn {
    width: 100%;
  }
}

.stay-cta :focus-visible {
  outline-color: #e2c38f;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stay-inner[data-state="available"] .stay-indicator-dot,
  .stay-skeleton {
    animation: none;
  }

  .stay-room,
  .stay-room-media img,
  .stay-meter-fill {
    transition: none;
  }

  .stay-room:hover,
  .stay-room:hover .stay-room-media img {
    transform: none;
  }
}
