:root {
  --bg: #f6f2ed;
  --card: #ffffff;
  --text: #1f1d1a;
  --muted: #5e5a56;
  --accent: #9a6b31;
  --accent-dark: #6b4415;
  --line: rgba(31, 29, 26, 0.1);
  --success: #2a9d8f;
  font-size: 16px;
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #2e2a26;
  background: var(--bg);
  cursor: auto;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom cursor - only visible on desktop with pointer device (above modals & room viewer) */
.cursor {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10010;
  display: none; /* Hidden by default */
}

/* Show custom cursor only on devices with fine pointer (desktop) */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-enabled {
    cursor: none;
  }

  body.custom-cursor-enabled .cursor {
    display: block;
  }

  body.custom-cursor-enabled a,
  body.custom-cursor-enabled button,
  body.custom-cursor-enabled .chip,
  body.custom-cursor-enabled .room-card,
  body.custom-cursor-enabled .review-card {
    cursor: none;
  }

  body.custom-cursor-enabled .modal-backdrop,
  body.custom-cursor-enabled .modal-card,
  body.custom-cursor-enabled .modal-close,
  body.custom-cursor-enabled .room-viewer-close,
  body.custom-cursor-enabled .room-viewer-arrow {
    cursor: none;
  }
}

.pointer-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(154, 107, 49, 0.6);
}

.pointer-glow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(154, 107, 49, 0.4);
  border-radius: 50%;
  transition:
    transform 0.12s ease-out,
    border-color 0.2s,
    opacity 0.2s;
}

.pointer-trail {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(154, 107, 49, 0.15);
  background: radial-gradient(rgba(154, 107, 49, 0.15), transparent 70%);
  opacity: 0.6;
  filter: blur(1px);
  transition: opacity 0.3s;
}

.pointer-glow.active {
  border-color: var(--accent);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
  font-weight: 600;
}

.eyebrow {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: #a67c52;
  font-weight: 400;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.5rem clamp(1rem, 4vw, 5rem) 4rem;
  padding-top: max(2.5rem, env(safe-area-inset-top));
  padding-left: max(clamp(1rem, 4vw, 5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 5rem), env(safe-area-inset-right));
  color: #fff;
  overflow: hidden;
  contain: paint;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  contain: paint;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.6),
    rgba(15, 15, 15, 0.4)
  );
  pointer-events: none;
}

.hero .nav,
.hero .hero-content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  font-family: "Montserrat", sans-serif;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.logo {
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
  font-weight: 600;
}

.lead {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.btn {
  font-family: "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 500;
  transition:
    transform 0.2s,
    background 0.3s,
    color 0.3s;
  cursor: pointer;
}

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

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(154, 107, 49, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: inherit;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn.block {
  width: 100%;
}

.btn.outline {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn.outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

main {
  padding: 4rem clamp(1rem, 5vw, 6rem);
  padding-left: max(clamp(1rem, 5vw, 6rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 5vw, 6rem), env(safe-area-inset-right));
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading p,
.section-heading .eyebrow {
  font-family: "Montserrat", sans-serif;
}

.section-heading .eyebrow {
  font-size: 0.85rem;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 4.25vw, 2.35rem);
}

/* Boutique Suites section – image left, text right, inside one curvy box */
.boutique-suites {
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: var(--bg);
}

/* .boutique-suites-box { */
/*   display: grid; */
/*   grid-template-columns: 1fr 1fr; */
/*   max-width: 1200px; */
/*   margin: 0 auto; */
/*   height: calc(100vh - 2rem); */
/*   max-height: 900px; */
/*   overflow: hidden; */
/*   background: var(--card); */
/*   border-radius: 2rem; */
/*   box-shadow: */
/*     0 24px 60px rgba(0, 0, 0, 0.08), */
/*     0 0 0 1px rgba(31, 29, 26, 0.06); */
/* } */

.boutique-suites-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(31, 29, 26, 0.06);
}

.boutique-suites-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

/* .boutique-suites-image { */
/*   width: 100%; */
/*   height: 100%; */
/*   max-width: 100%; */
/*   max-height: 100%; */
/*   object-fit: contain; */
/*   object-position: center; */
/*   display: block; */
/* } */

.boutique-suites-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KEY CHANGE */
}

.boutique-suites-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.boutique-suites-text {
  width: 100%;
  max-width: 480px;
}

.boutique-suites-text .eyebrow {
  color: #a67c52;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  margin: 0 0 1rem;
}

.boutique-suites-heading-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.boutique-suites-text h2 {
  color: var(--text);
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
}

.boutique-suites-text .rooms-intro {
  font-family: "Montserrat", sans-serif;
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.boutique-suites-text .rooms-intro + .rooms-intro {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .boutique-suites-box {
    grid-template-columns: 1fr;
  }

  .boutique-suites-image-wrap {
    min-height: 280px;
  }

  .boutique-suites-image {
    max-height: 50vh;
  }

  .boutique-suites-content {
    padding: 2.5rem 1.5rem;
  }
}

/* Room cards section – separate section below Boutique Suites */
.rooms.room-cards-section {
  background: var(--bg);
  padding: 4rem clamp(1rem, 5vw, 6rem) 4rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.room-card {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12);
}

.room-media {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.room-media.robusta {
  background-image: url("./assets/Robusta(1).jpeg");
}

.room-media.arabica {
  background-image: url("./assets/Arabica(5).jpeg");
}

.room-media.excelsa {
  background-image: url("./assets/Excelsa(4).jpeg");
}

.room-media.liberica {
  background-image: url("./assets/Liberica(1).jpeg");
}

.room-body {
  padding: 1.5rem;
}

.room-body p {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}

.room-body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}

.booking-timings {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.guest-limit-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.5rem 0 0;
}

.booking {
  padding: 4rem 0;
}

/* Room photos modal (photos uploaded by admin shown here) */
/* Full-window room image viewer with slider arrows */
.room-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10001;
}

.room-viewer {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  pointer-events: none;
}

.room-viewer:not(.hidden) {
  pointer-events: auto;
}

.room-viewer-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.room-viewer-img {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.room-viewer-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10003;
  pointer-events: auto;
  transition: background 0.2s;
}

.room-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.room-viewer-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10003;
  pointer-events: auto;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.room-viewer-prev {
  left: 1.5rem;
}

.room-viewer-next {
  right: 1.5rem;
}

.room-viewer-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.room-viewer-arrow.hidden {
  display: none;
}

.room-viewer-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  min-height: 540px;
}

.form-panel,
.summary-panel {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(31, 29, 26, 0.08);
}

.form-panel {
  display: flex;
  flex-direction: column;
}

.form-panel-guest-row {
  margin-top: auto;
}

.summary-panel {
  display: flex;
  flex-direction: column;
}

.summary-amenities {
  flex: 1;
  min-height: 0;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.summary-amenities-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.summary-amenities-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.summary-amenities-list li {
  margin-bottom: 0.35rem;
}

.summary-payment-block {
  margin-top: auto;
}

.summary-payment-block .notice {
  margin-bottom: 1rem;
}

.summary-payment-block .btn {
  margin-bottom: 0.5rem;
}

.guest-details {
  margin-bottom: 1.5rem;
  border-color: rgba(31, 29, 26, 0.15);
  display: block;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.guest-details.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
}

.guest-details:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-display {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  text-align: center;
  background: rgba(154, 107, 49, 0.03);
}

label,
legend {
  font-family: "Montserrat", sans-serif;
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

input,
select {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

textarea {
  font-family: "Montserrat", sans-serif;
}

fieldset {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid form .grid.three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.chip-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chip {
  font-family: "Montserrat", sans-serif;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--muted);
}

.form-errors {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #a31610;
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-errors.hidden {
  display: none;
}

.availability-indicator {
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: 600;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.availability-indicator.hidden {
  display: none !important;
}

.availability-indicator.loading {
  background: rgba(154, 107, 49, 0.1);
  border: 1px solid rgba(154, 107, 49, 0.3);
  color: var(--accent-dark);
}

.availability-indicator.success {
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.4);
  color: #2e7d32;
  animation: successPulse 0.4s ease;
}

.availability-indicator.error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #a31610;
}

.availability-indicator .spinner {
  font-size: 1.2rem;
  animation: spin 1s linear infinite;
}

.availability-indicator .check {
  font-size: 1.2rem;
  font-weight: bold;
}

.availability-indicator .cross {
  font-size: 1.2rem;
  font-weight: bold;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.totals {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

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

.activities {
  padding: 4rem 0;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.activity-grid article {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(154, 107, 49, 0.1),
    rgba(154, 107, 49, 0.05)
  );
  border: 1px solid rgba(154, 107, 49, 0.2);
}

.activity-grid article p {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 4rem 0;
}

.terms > div {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

.terms ul {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

.terms li {
  margin-bottom: 0.5em;
  font-size: 0.875rem;
}

.terms li:last-child {
  margin-bottom: 0;
}

.qr-wrapper {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  border: 1px solid var(--line);
}

.qr-wrapper.large {
  width: 220px;
  height: 220px;
  margin: 1.5rem auto;
}

.gallery {
  padding: 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s;
}

.gallery-grid figure:hover img {
  transform: scale(1.08);
}

/* Admin shots carousel (Taj-style) */
.admin-shots-carousel {
  position: relative;
  width: 100%;
  max-width: min(720px, 68vw);
  margin: 2.5rem auto 3rem;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0e9df;
  border: 1px solid rgba(154, 107, 49, 0.2);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.16),
    0 16px 40px rgba(154, 107, 49, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1px rgba(154, 107, 49, 0.12);
}

.admin-shots-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.admin-shots-slide {
  flex: 0 0 6.25%;
  min-width: 0;
  height: 100%;
}

.admin-shots-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.admin-shots-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition:
    background 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.admin-shots-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.05);
}

.admin-shots-prev {
  left: clamp(0.75rem, 4vw, 1.5rem);
}

.admin-shots-next {
  right: clamp(0.75rem, 4vw, 1.5rem);
}

.map {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem clamp(1rem, 5vw, 6rem);
  margin-top: 1.5rem;
}

.map-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--line);
  background: var(--card);
}

.map-preview a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.map-preview img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.4s;
}

/* Tablet: map section responsive; hide overlay text, keep image (background text only) */
@media (max-width: 1024px) {
  .map {
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
  }
  .map-preview {
    max-width: 100%;
  }
  .map-preview img {
    height: 340px;
    object-position: center center;
  }
  .map-preview__heading,
  .map-preview__subheading {
    display: none;
  }
  .map-preview__label {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

/* Tablet / iPad: consistent padding and alignment between mobile and desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 2.5rem 2rem 3.5rem;
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }

  main {
    padding: 3rem 2rem 4rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }

  .boutique-suites {
    padding: 1rem 2rem;
  }

  .boutique-suites-content {
    padding: 2.5rem 2rem;
  }

  .rooms.room-cards-section {
    padding: 3rem 2rem 4rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }

  .booking {
    padding: 3rem 2rem;
  }

  .room-viewer {
    padding: 2.5rem 2rem;
  }

  .section-heading {
    padding-left: 0;
    padding-right: 0;
  }

  .map {
    padding: 2rem;
  }

  .reviews-grid-index {
    padding: 0 2rem;
  }
}

/* Mobile: rectangle box, full width, site aesthetic; hide overlay text, keep image (background text only) */
@media (max-width: 768px) {
  .map {
    padding: 1.5rem 1rem;
  }
  .map-preview {
    max-width: 100%;
    border-radius: 1.25rem;
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.08),
      0 0 0 1px var(--line);
  }
  .map-preview img {
    height: 280px;
    object-position: center center;
  }
  .map-preview__heading,
  .map-preview__subheading {
    display: none;
  }
  .map-preview__label {
    bottom: 0.75rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    max-width: calc(100% - 1.5rem);
  }
}

@media (max-width: 480px) {
  .map {
    padding: 1.25rem 0.75rem;
  }
  .map-preview {
    border-radius: 1rem;
  }
  .map-preview img {
    height: 240px;
    object-position: center center;
  }
  .map-preview__heading,
  .map-preview__subheading {
    display: none;
  }
  .map-preview__label {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

.map-preview a:hover img {
  transform: scale(1.03);
}

.map-preview__heading {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: #1f1d1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  text-align: center;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.map-preview__subheading {
  position: absolute;
  top: 3.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  color: #1f1d1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  text-align: center;
  width: calc(100% - 2rem);
  padding: 0 0.5rem;
  pointer-events: none;
}

.map-preview__label {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(31, 29, 26, 0.8);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.reviews-section {
  padding: 4rem 0;
}

.reviews-grid-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1rem, 5vw, 5rem);
}

.reviews-grid-index .review-card {
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
}

.reviews-grid-index .review-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: "Cormorant Garamond", serif;
}

.reviews-grid-index .review-card .rating {
  color: var(--accent);
  font-weight: 600;
  margin: 0.5rem 0;
}

.reviews-grid-index .review-card .review-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  margin: 0.75rem 0;
  color: #2e2a26;
}

.reviews-grid-index .review-card small {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: var(--muted);
}

.admin {
  padding: 4rem 0 2rem;
}

.admin-auth,
.admin-grid form {
  background: var(--card);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-inputs input {
  margin-bottom: 0.5rem;
}

.admin-bookings {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.block-calendar-panel {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.booking-row {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.booking-row:last-child {
  border-bottom: none;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(42, 157, 143, 0.1);
  color: var(--success);
}

.status-badge.awaiting-admin {
  background: rgba(247, 178, 24, 0.15);
  color: #c77700;
}

.status-badge.pending {
  background: rgba(31, 29, 26, 0.08);
  color: var(--text);
}

.status-badge.confirmed {
  background: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
}

.status-badge.cancelled,
.status-badge.rejected {
  background: rgba(179, 38, 30, 0.12);
  color: #b3261e;
}

.btn.danger {
  background: #b3261e;
  color: #fff;
}

.btn.danger:hover {
  background: #921f17;
}

.btn.danger.outline {
  background: transparent;
  border: 1px solid #b3261e;
  color: #b3261e;
}

.btn.danger.outline:hover {
  background: rgba(179, 38, 30, 0.08);
}

/* Global button hover - ensure all buttons have consistent hover */
button:not(:disabled):hover,
.btn:not(:disabled):hover {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

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

.seasonal-overrides {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.5rem;
}

.seasonal-overrides h4 {
  margin-bottom: 0.4rem;
}

.override-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
}

.override-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.override-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  gap: 1rem;
  width: 100%;
}

.override-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.override-card > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.override-card .price {
  font-weight: 600;
}

#blockCalendar {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.block-card {
  border: 2px solid var(--accent);
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  background: rgba(154, 107, 49, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(154, 107, 49, 0.15);
}

.block-card__title {
  font-weight: 600;
}

.block-card__dates {
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.block-card__actions {
  display: flex;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

footer {
  display: block;
  text-align: center;
  padding: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fbfbf6;
  min-height: 120px;
}

.footer-logo {
  height: 11rem;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

footer a {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.modal.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-backdrop {
  display: block;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  background: var(--card);
  border-radius: 1.2rem;
  padding: 2rem;
  width: min(420px, calc(100% - 2rem));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: pop 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-list {
  padding-left: 1.2rem;
  line-height: 1.5;
}

.modal-price-summary {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--text);
}
.modal-price-summary strong {
  color: var(--accent);
}
.modal-price-rules {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@keyframes pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
    padding-top: max(2rem, env(safe-area-inset-top));
  }

  /* Hero video: portrait fill; show lower part (outro/logo) and avoid extra layers to reduce scroll jank */
  .hero-video {
    object-fit: cover;
    object-position: center 65%;
  }

  /* Better text rendering on mobile */
  .hero h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .lead {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  .nav {
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
  }

  .nav a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .logo {
    font-size: 1.15rem;
    letter-spacing: 0.15em;
  }

  .hero-content {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  main {
    padding: 3rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .booking-form {
    min-height: auto;
  }

  .admin-shots-carousel {
    max-width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .room-viewer {
    padding: 2rem 1rem;
  }

  .room-viewer-close {
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
  }

  .room-viewer-prev {
    left: 0.5rem;
  }

  .room-viewer-next {
    right: 0.5rem;
  }

  .room-viewer-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  input,
  select {
    border-radius: 0.8rem;
  }

  /* Disable custom cursor on mobile */
  body {
    cursor: default !important;
  }

  .cursor {
    display: none !important;
  }
}

/* Extra small screens (e.g. narrow phones) */
@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1rem 2.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
  }

  .nav ul {
    gap: 0.5rem 0.75rem;
  }

  .nav a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  main {
    padding: 2rem 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .terms {
    padding: 2.5rem 0;
  }

  .terms > div {
    padding: 1.25rem;
  }
}

/* High-resolution displays (retina screens) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-weight: 600;
  }
}

/* Touch-friendly tap targets (mobile/tablet) */
@media (hover: none) and (pointer: coarse) {
  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chip {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .admin-shots-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .room-viewer-close,
  .room-viewer-arrow {
    min-width: 44px;
    min-height: 44px;
  }
}
