/* ============================================================
   Varghese Luxury — Rooms + Booking
   ============================================================ */

/* ---------- Page header (Rooms page banner) ---------- */
.page-header {
  position: relative;
  min-height: clamp(360px, 56vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}

.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-header__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, .8) 0%, rgba(4, 12, 24, .5) 45%, rgba(4, 12, 24, .92) 100%),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(20, 55, 92, .3) 0%, rgba(4, 12, 24, .6) 100%);
}

.page-header__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px clamp(20px, 6vw, 64px) 56px;
  max-width: 780px;
  margin: 0 auto;
}

.page-header__crumb {
  margin: 0 0 20px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(226, 235, 245, .65);
}
.page-header__crumb a { color: rgba(226, 235, 245, .65); text-decoration: none; }
.page-header__crumb a:hover { color: var(--gold-bright); }
.page-header__crumb span { margin: 0 6px; color: var(--gold); }

.page-header__eyebrow {
  margin: 0 0 14px;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-header__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.08;
  font-size: clamp(38px, 6.5vw, 66px);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.page-header__text {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--cream);
  opacity: .9;
}

.page-header > .hero__nav { z-index: 3; }

.rooms {
  background: linear-gradient(180deg, var(--parch-1), var(--parch-2));
  color: var(--ink-navy);
  padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 72px);
}

.rooms__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 62px);
  text-align: center;
}
.rooms__eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.rooms__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 50px);
  letter-spacing: .015em;
}
.rooms__sub {
  margin: 16px auto 0;
  max-width: 580px;
  font-size: clamp(12.5px, 1.5vw, 15px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

/* ---- alternating feature rows ---- */
.rooms__list {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 7vw, 96px);
}

.roomrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
/* default: photo right, text left */
.roomrow__media { grid-area: 1 / 2; }
.roomrow__body  { grid-area: 1 / 1; }
/* reversed: photo left, text right */
.roomrow--rev .roomrow__media { grid-area: 1 / 1; }
.roomrow--rev .roomrow__body  { grid-area: 1 / 2; }

.roomrow__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 40px 70px -34px rgba(16, 38, 63, .45);
}
.roomrow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.roomrow:hover .roomrow__media img { transform: scale(1.05); }

.roomrow__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #1c1204;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
}

.roomrow__name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .01em;
  color: var(--ink-navy);
}
.roomrow__desc {
  margin: 18px 0 0;
  max-width: 42ch;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.62;
  letter-spacing: .01em;
  color: #3c4753;
}
.roomrow__desc::first-letter {
  font-size: 1.2em;
  color: var(--gold-deep);
}

.roomrow__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.roomrow__specs li {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-navy);
  background: var(--parch-1);
  border: 1px solid rgba(138, 90, 30, .22);
  border-radius: 3px;
  padding: 6px 10px;
}

.roomrow__foot {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
}
.roomrow__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-deep);
}
.roomrow__cta {
  padding: 13px 26px;
  font-size: 11px;
  cursor: pointer;
}
.roomrow__cta:hover { color: #1c1204 !important; }

/* mobile: photo → name → description → button (specs & price hidden) */
@media (max-width: 780px) {
  .roomrow {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .roomrow__media { aspect-ratio: 3 / 2; }
  .roomrow__specs,
  .roomrow__price { display: none; }
  .roomrow__foot { margin-top: 4px; }
  .roomrow__cta { width: 100%; text-align: center; }
}

/* gallery peek — links through to the full gallery page */
.rooms__gallery-peek {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  max-width: 1120px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(16, 38, 63, .1);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 20px 40px -30px rgba(16, 38, 63, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rooms__gallery-peek:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 50px -28px rgba(16, 38, 63, .5);
}

.rooms__gallery-thumbs {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.rooms__gallery-thumbs img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.rooms__gallery-thumbs img:nth-child(4) { display: none; }

.rooms__gallery-label {
  flex: 0 0 auto;
  padding-right: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  color: var(--ink-navy);
  white-space: nowrap;
}
.rooms__gallery-label span { color: var(--gold-deep); }

@media (min-width: 720px) {
  .rooms__gallery-thumbs img:nth-child(4) { display: block; }
}
@media (max-width: 520px) {
  .rooms__gallery-peek { flex-direction: column; align-items: stretch; }
  .rooms__gallery-thumbs img:nth-child(3) { display: none; }
  .rooms__gallery-label { text-align: center; padding: 4px 0 2px; }
}

/* ============================================================
   Booking form  —  white on dark blue
   ============================================================ */
.booking {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(28, 74, 122, .35) 0%, transparent 55%),
    linear-gradient(180deg, #0b2039, #071a30 60%, #050f1f);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 80px);
}

.booking__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.booking__eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
}
.booking__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 50px);
  color: #fff;
}
.booking__text {
  margin: 20px 0 24px;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(226, 235, 245, .72);
}
.booking__points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking__points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(226, 235, 245, .82);
}
.booking__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* form */
.booking__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 36px);
}

.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; }
.field--half { grid-column: span 1; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226, 235, 245, .7);
}
.field label span[aria-hidden] { color: var(--gold); margin-left: 3px; }
.field__opt { text-transform: none; letter-spacing: .02em; font-weight: 400; opacity: .7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(4, 12, 24, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(226, 235, 245, .38); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 180, 90, .18);
}
.field select option { color: #0b2039; }

/* date/number spinners in dark UA */
.field input[type="date"] { color-scheme: dark; }

.field--invalid input,
.field--invalid select {
  border-color: #e2726b;
  box-shadow: 0 0 0 3px rgba(226, 114, 107, .16);
}
.field__err {
  min-height: 0;
  font-size: 11px;
  color: #f0a6a0;
}

.booking__submit {
  width: 100%;
  padding: 15px 28px;
  font-size: 12px;
}
.booking__submit:hover { color: #1c1204 !important; }
.booking__submit[disabled] { opacity: .6; pointer-events: none; }

.booking__status {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  min-height: 0;
}
.booking__status.is-ok { color: #9fe0b8; }
.booking__status.is-err { color: #f0a6a0; }

@media (max-width: 860px) {
  .booking__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .booking__form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}

/* ============================================================
   Room inquiry modal  →  WhatsApp
   ============================================================ */
.inqmodal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 10, 20, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.inqmodal[hidden] { display: none; }
.inqmodal.is-open { opacity: 1; pointer-events: auto; }

.inqmodal__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  color: #fff;
  background: linear-gradient(180deg, #0b2039, #071a30);
  border: 1px solid rgba(217, 180, 90, .28);
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  transform: translateY(14px);
  transition: transform .25s ease;
}
.inqmodal.is-open .inqmodal__panel { transform: translateY(0); }

.inqmodal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.inqmodal__close:hover { background: var(--gold); color: #1c1204; border-color: var(--gold); }

.inqmodal__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.inqmodal__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  color: #fff;
}
.inqmodal__title span { color: var(--gold-bright); }
.inqmodal__text {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(226, 235, 245, .72);
}

.inqmodal__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.inqfield { display: flex; flex-direction: column; gap: 6px; }
.inqfield label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(226, 235, 245, .7);
}
.inqfield input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(4, 12, 24, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color-scheme: dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.inqfield input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 180, 90, .18);
}

.inqmodal__guests {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(226, 235, 245, .7);
}
.inqmodal__guests span { color: var(--gold-bright); font-weight: 600; }

.inqmodal__err {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: #f0a6a0;
}

.inqmodal__submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 4px;
  padding: 14px 22px;
  font-size: 11px;
}
.inqmodal__submit:hover { color: #1c1204 !important; }
.inqmodal__submit svg { width: 17px; height: 17px; }

@media (max-width: 400px) {
  .inqmodal__form { grid-template-columns: 1fr; }
}
