/* ===========================================================
   Lingzhou – HOME PAGE ONLY styles
   Loaded only on index.php (after style.css). Uses the same theme
   variables and fonts from style.css: --navy, --gold, --font-head, --font-body
   =========================================================== */

:root {
  --hm-sand: #efe9dd;      /* booking card background */
  --hm-sand-2: #f7f3ec;    /* field background */
  --hm-line: #e2d8c5;      /* field borders */
  --hm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- HERO ---------- */
.hm-hero {
  position: relative;
  min-height: calc(100vh - 110px);   /* full screen minus top bar + nav */
  min-height: calc(100svh - 110px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

/* Slides (background images) – crossfade + slow zoom */
.hm-hero-slides { position: absolute; inset: 0; z-index: -2; }
.hm-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--hm-ease), transform 7s linear;
  will-change: opacity, transform;
}
.hm-slide.is-active { opacity: 1; transform: scale(1); }

/* Placeholder slides – shown only until real photos are added to assets/img/hero/ */
.hm-slide--ph1 { background-image: radial-gradient(circle at 75% 35%, #5a4630 0%, #2a2118 45%, #120e0a 100%); }
.hm-slide--ph2 { background-image: radial-gradient(circle at 25% 60%, #2e4a6b 0%, #172c47 45%, #0b1522 100%); }
.hm-slide--ph3 { background-image: radial-gradient(circle at 60% 70%, #4b3b2a 0%, #1c2433 55%, #0d1119 100%); }

/* Dark overlay for text legibility */
.hm-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, .78) 0%, rgba(10, 12, 16, .45) 55%, rgba(10, 12, 16, .25) 100%),
    linear-gradient(0deg, rgba(10, 12, 16, .65) 0%, rgba(10, 12, 16, 0) 40%);
}

.hm-hero-inner { position: relative; width: 100%; padding-top: 70px; padding-bottom: 230px; }

/* Text block – fades out / in when the slide changes (same text on all slides) */
.hm-hero-text {
  max-width: 1100px;
  transition: opacity .55s var(--hm-ease), transform .55s var(--hm-ease);
}
.hm-hero-text.is-out { opacity: 0; transform: translateY(18px); }

.hm-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: #f1ece3;
  margin-bottom: 1.6rem;
}
.hm-spark { color: var(--gold); font-style: normal; font-size: 1.15rem; line-height: 1; }

.hm-hero .hm-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: .2px;
  margin: 0 0 2.6rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hm-hero .hm-title span { color: var(--gold); }

.hm-hero-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.75rem; }

.hm-btn-gold {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--gold); color: #fff;
  font-weight: 500; font-size: 1.1rem;
  padding: 1.15rem 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.hm-btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(184, 146, 90, .35); }
.hm-btn-gold i { transition: transform .25s; }
.hm-btn-gold:hover i { transform: translate(3px, -3px); }

.hm-hero-lead { max-width: 470px; margin: 0; font-size: 1.12rem; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hm-hero-lead a { color: var(--gold); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hm-hero-lead a:hover { color: #fff; }

/* Controls: progress line + counter + arrows */
.hm-hero-controls {
  position: absolute; left: calc(var(--bs-gutter-x, 1.5rem) * .5); right: calc(var(--bs-gutter-x, 1.5rem) * .5); bottom: 125px;
  display: flex; align-items: center; gap: 1.25rem;
}
.hm-progress { flex: 1; height: 1px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hm-progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.hm-progress-bar.is-running { animation: hmProgress var(--hm-duration, 6s) linear forwards; }
@keyframes hmProgress { from { width: 0; } to { width: 100%; } }

.hm-counter { font-family: var(--font-head); font-size: 1.15rem; color: rgba(255, 255, 255, .7); letter-spacing: .08em; min-width: 64px; text-align: center; }
.hm-counter #hmCurrent { color: #fff; font-weight: 700; }

.hm-arrow {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff;
  display: grid; place-items: center; font-size: 1.15rem;
  transition: background .25s, border-color .25s, color .25s;
}
.hm-arrow:hover, .hm-arrow:focus-visible { background: var(--gold); border-color: var(--gold); color: #fff; outline: none; }

/* ---------- CHECK AVAILABILITY ---------- */
.hm-booking-wrap { position: relative; z-index: 3; margin-top: -86px; padding-bottom: 30px; background: linear-gradient(#0000 86px, var(--hm-sand-2) 86px); }

.hm-booking {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.05fr;
  gap: 1.4rem;
  align-items: end;
  background: var(--hm-sand);
  padding: 2.6rem 3.4rem;
  box-shadow: 0 30px 60px rgba(15, 31, 51, .12);
}
.hm-field { position: relative; min-width: 0; }
.hm-field > label {
  display: flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #5b5348;
  margin-bottom: .9rem;
}
.hm-field > label i { color: var(--gold); font-size: 1.05rem; }

.hm-field input[type="date"],
.hm-select,
.hm-select-wrap select {
  width: 100%; height: 66px;
  background: var(--hm-sand-2);
  border: 1px solid var(--hm-line);
  border-radius: 0;
  padding: 0 1.4rem;
  font-family: var(--font-body);
  font-size: 1.1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.hm-field input[type="date"]:focus,
.hm-select:focus,
.hm-select-wrap select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
.hm-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

.hm-select { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.hm-select i, .hm-select-wrap i { color: var(--gold-dark); font-size: .9rem; }
.hm-select-wrap { position: relative; }
.hm-select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.hm-select-wrap i { position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* Date fields: native picker, friendly "16 Nov 2026" text on top */
.hm-date { position: relative; }
.hm-date input[type="date"] { color: transparent; cursor: pointer; }
.hm-date input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hm-date input[type="date"]::-webkit-datetime-edit { color: transparent; }
.hm-date-text { position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 1.1rem; color: var(--ink); }
.hm-date > i { position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--gold-dark); font-size: .9rem; }
.no-js-date .hm-date input[type="date"] { color: var(--ink); }

/* Guest dropdown */
.hm-guest-menu { width: 100%; min-width: 260px; border-radius: 0; border: 1px solid var(--hm-line); padding: 1rem 1.2rem; box-shadow: 0 20px 40px rgba(15, 31, 51, .15); }
.hm-counter-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; }
.hm-counter-row + .hm-counter-row { border-top: 1px solid #eee6d8; }
.hm-counter-row small { display: block; color: var(--muted); font-size: .78rem; }
.hm-stepper { display: flex; align-items: center; gap: .75rem; }
.hm-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hm-line); background: #fff; color: var(--navy); font-size: 1.1rem; line-height: 1; }
.hm-stepper button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); }
.hm-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.hm-stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.hm-done { width: 100%; margin-top: .6rem; border: 0; background: var(--navy); color: #fff; padding: .55rem; }

.hm-btn-check {
  width: 100%; height: 66px;
  border: 0; border-radius: 0;
  background: var(--gold); color: #fff;
  font-family: var(--font-body);
  font-size: 1.15rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: background .25s;
}
.hm-btn-check:hover { background: var(--gold-dark); }
.hm-btn-check i { transition: transform .25s; }
.hm-btn-check:hover i { transform: translate(3px, -3px); }

.hm-field.has-error input { border-color: #c0392b; }
.hm-error { grid-column: 1 / -1; color: #b03a2e; font-size: .9rem; margin: -.4rem 0 0; }

/* Trust badges */
.hm-trust { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; color: #55504a; font-size: 1.05rem; }
.hm-trust i { color: var(--gold); margin-right: .35rem; }


/* ---------- ABOUT / WHO WE ARE (portrait image) ---------- */
.hm-about { position: relative; z-index: 0; overflow-x: clip; }
.hm-about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); /* shows until about.jpg is added */
}
/* thin gold frame offset behind the photo */
.hm-about-media::before {
  content: ''; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold); border-radius: var(--radius);
  z-index: -1;
}
.hm-about-media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.hm-about-badge {
  position: absolute; left: -24px; bottom: 40px;
  background: var(--gold); color: #fff;
  padding: 1.3rem 1.6rem; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 31, 51, .25);
}
.hm-about-badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; margin-bottom: .25rem; }

@media (max-width: 991px) {
  .hm-about-media { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 575px) {
  .hm-about-media::before { inset: 14px -10px -14px 14px; }
  .hm-about-badge { left: 12px; bottom: 16px; padding: 1rem 1.2rem; }
  .hm-about-badge strong { font-size: 1.8rem; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hm-booking { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .hm-field--btn { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hm-hero { min-height: 88svh; }
  .hm-hero-inner { padding-top: 56px; padding-bottom: 200px; }
  .hm-eyebrow { font-size: .75rem; letter-spacing: .18em; }
  .hm-title { margin-bottom: 1.8rem; }
  .hm-title br { display: none; }
  .hm-btn-gold { padding: .95rem 1.8rem; font-size: 1rem; }
  .hm-hero-lead { font-size: 1rem; }
  .hm-hero-controls { bottom: 112px; gap: .75rem; }
  .hm-arrow { width: 48px; height: 48px; }
  .hm-booking-wrap { margin-top: -80px; background: linear-gradient(#0000 80px, var(--hm-sand-2) 80px); }
  .hm-booking { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; }
  .hm-field > label { font-size: .78rem; margin-bottom: .55rem; }
  .hm-field input[type="date"], .hm-select, .hm-select-wrap select, .hm-btn-check { height: 54px; font-size: 1rem; padding: 0 .9rem; }
  .hm-select-wrap i, .hm-date > i { right: .9rem; }
  .hm-date-text { left: .9rem; font-size: 1rem; }
  .hm-trust { font-size: .9rem; gap: .6rem 1.2rem; }
}
@media (max-width: 420px) {
  .hm-booking { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide { transition: opacity .6s; transform: none !important; }
  .hm-hero-text { transition: opacity .3s; transform: none !important; }
}


/* Add to the END of assets/css/home.css */

/* ---------- ROOMS SLIDER (managed in Admin → Rooms) ---------- */
.hm-rooms {
  position: relative;
  padding: 110px 0 90px;
  color: #fff;
  background-color: var(--navy);
  /* subtle grain texture on our navy (no image file needed) */
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(184, 146, 90, .10) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 255, 255, .05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow: hidden;
}
.hm-rooms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 3.2rem; }
.hm-rooms .hm-eyebrow { margin-bottom: 1rem; }
.hm-rooms-title {
  font-family: var(--font-head); font-weight: 600; color: #fff;
  letter-spacing: .5px; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; margin: 0;
}
.hm-rooms-nav { display: flex; gap: .9rem; flex-shrink: 0; }
.hm-rooms-nav .hm-arrow { width: 56px; height: 56px; }
.hm-rooms-nav .hm-arrow:disabled { opacity: .35; pointer-events: none; }
.hm-rooms .alert { margin-bottom: 2rem; }

/* Track – native horizontal scroll with snap (touch friendly), arrows scroll it */
.hm-rooms-track {
  --gap: 2rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * 2) / 3);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hm-rooms-track::-webkit-scrollbar { display: none; }
.hm-rooms-track:focus-visible { outline: 1px dashed var(--gold); outline-offset: 6px; }

/* Card: outer frame + full-bleed photo */
.hm-room {
  scroll-snap-align: start;
  padding: 20px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .35s, background .35s;
}
.hm-room:hover { border-color: rgba(184, 146, 90, .55); background: rgba(184, 146, 90, .06); }
.hm-room-inner {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2), #0a1424);
}
.hm-room-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hm-ease); }
.hm-room:hover .hm-room-inner > img { transform: scale(1.06); }
.hm-room-ph { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 3.2rem; color: rgba(184, 146, 90, .35); }
/* dark fade so text is readable on any photo */
.hm-room-inner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 26, 0) 35%, rgba(10, 16, 26, .55) 62%, rgba(10, 16, 26, .92) 100%);
}

.hm-room-tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(247, 243, 236, .9); color: var(--navy);
  font-size: .9rem; font-weight: 600; padding: .3rem .8rem;
}

.hm-room-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 20px; }
.hm-room-body h3 { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; margin: 0 0 .35rem; }
.hm-room-hotel { color: rgba(255, 255, 255, .7); font-size: .88rem; margin: 0 0 .9rem; }
.hm-room-hotel i { color: var(--gold); }
.hm-room-meta { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.hm-room-meta i { color: var(--gold); margin-right: .3rem; }

.hm-room-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hm-room-price { color: rgba(255, 255, 255, .75); font-size: .95rem; white-space: nowrap; }
.hm-room-price strong { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 1.9rem; line-height: 1; margin-right: .15rem; }
.hm-room-price .hm-room-ask { font-size: 1.25rem; }
.hm-room-btn {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  background: rgba(15, 31, 51, .7); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: .75rem 1.4rem; font-size: .98rem; font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background .25s, border-color .25s;
}
.hm-room-btn:hover, .hm-room-btn:focus-visible { background: var(--gold); border-color: var(--gold); color: #fff; outline: none; }
.hm-room-btn i { transition: transform .25s; }
.hm-room-btn:hover i { transform: translate(2px, -2px); }

/* Dots */
.hm-rooms-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 2.4rem; min-height: 8px; }
.hm-rooms-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s, border-radius .3s; cursor: pointer; }
.hm-rooms-dots span.is-active { width: 26px; border-radius: 4px; background: var(--gold); }

/* Enquiry popup */
.hm-modal .modal-content { border: 0; border-radius: 0; }
.hm-modal .modal-header { align-items: flex-start; padding: 1.6rem 1.8rem 1rem; border-bottom: 1px solid #eee6d8; }
.hm-modal .modal-title { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); margin: 0; }
.hm-modal-sub { color: var(--muted); font-size: .92rem; }
.hm-modal .modal-body { padding: 1.4rem 1.8rem; }
.hm-modal .modal-footer { padding: 1rem 1.8rem 1.5rem; border-top: 0; }
.hm-btn-sm { padding: .8rem 1.7rem; font-size: 1rem; }

/* ---------- ROOMS SLIDER – responsive ---------- */
@media (max-width: 1199px) {
  .hm-rooms-track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 767px) {
  .hm-rooms { padding: 80px 0 64px; }
  .hm-rooms-head { margin-bottom: 2rem; }
  .hm-rooms-nav { display: none; }                         /* swipe on phones */
  .hm-rooms-track { --gap: 1rem; grid-auto-columns: 86%; }
  .hm-room { padding: 12px; }
  .hm-room-body { padding: 0 16px 16px; }
  .hm-room-price strong { font-size: 1.6rem; }
  .hm-room-btn { padding: .65rem 1.1rem; font-size: .92rem; }
  .hm-modal .modal-header, .hm-modal .modal-body, .hm-modal .modal-footer { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ---------- BOOKING CTA (replaces old Careers + owner CTA) ---------- */
.hm-cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 130px 0;
  background: radial-gradient(circle at 30% 20%, #3a2c1d 0%, #1a150f 55%, #0d0b08 100%) center / cover no-repeat;
}
.hm-cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, .55) 0%, rgba(10, 12, 16, .78) 100%); }
.hm-cta-inner { position: relative; z-index: 1; max-width: 860px; }
.hm-cta .hm-eyebrow { margin-bottom: 1.2rem; }
.hm-cta-title { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.06; margin: 0 0 1.2rem; }
.hm-cta-title span { color: var(--gold); }
.hm-cta-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 600px; margin: 0 auto 2.4rem; }
.hm-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hm-btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(255, 255, 255, .45); color: #fff; border-radius: 999px;
  padding: 1.15rem 2.2rem; font-size: 1.1rem; font-weight: 500; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.hm-btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hm-cta-contact { list-style: none; padding: 1.6rem 0 0; margin: 2.8rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.4rem; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 720px; color: rgba(255, 255, 255, .8); }
.hm-cta-contact i { color: var(--gold); margin-right: .35rem; }
.hm-cta-contact a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.hm-cta-contact a:hover { color: var(--gold); }
@media (min-width: 992px) { .hm-cta { background-attachment: fixed; } }   /* gentle parallax on desktop */
@media (max-width: 767px) {
  .hm-cta { padding: 90px 0; }
  .hm-cta-title br { display: none; }
  .hm-btn-ghost { padding: .95rem 1.6rem; font-size: 1rem; }
}