/*
 * Single room page (templates/single-room.php). Everything is scoped to .iwt-room-page so the
 * theme, the Elementor header/footer and other plugin views are unaffected.
 * Palette and fonts follow the Harku Villa Elementor kit, with fallbacks when the kit is absent.
 */
.iwt-room-page {
  --hv-green: var(--e-global-color-primary, #263126);
  --hv-green-2: var(--e-global-color-2da94da, #344034);
  --hv-gold: var(--e-global-color-accent, #b2a478);
  --hv-gold-dark: var(--e-global-color-afe58bc, #9f8f62);
  --hv-gold-light: #ddd1a8;
  --hv-cream: var(--e-global-color-secondary, #f1f0ea);
  --hv-paper: var(--e-global-color-854a996, #fbfaf7);
  --hv-ink: var(--e-global-color-text, #1b1b15);
  --hv-line: var(--e-global-color-3fd990f, #d8d6cd);
  --hv-field: #cfcbbf;
  --hv-muted: #55544c;
  --hv-serif: "Cormorant Garamond", Georgia, serif;
  --hv-sans: "Manrope", system-ui, sans-serif;
  --hv-wrap: 1320px;
  --hv-gutter: 40px;
  /* Clearance for the site's fixed header (sticky booking card, anchor jumps). */
  --hv-header-offset: 112px;
  display: block;
  background: var(--hv-paper);
  color: var(--hv-muted);
  font: 400 16px/1.7 var(--hv-sans);
  overflow-x: clip;
}
.iwt-room-page *, .iwt-room-page *::before, .iwt-room-page *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- Hero */
.iwt-room-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; background: var(--hv-green); color: #fff; }
.iwt-room-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; }
/* Cinematic black overlay, about 55–65% across the photo: strongest behind the transparent
   header (top) and the price bar (bottom), with a little extra behind the title on the left.
   The hero is its own stacking context (isolation), so the image and overlay stay below the
   fixed site header, which keeps its own z-index and stays clickable. */
.iwt-room-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .08) 55%, rgba(0, 0, 0, 0) 100%),
  linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .6) 22%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .62) 75%, rgba(0, 0, 0, .82) 100%); }
.iwt-room-hero.is-plain { background: radial-gradient(ellipse at 75% 15%, var(--hv-green-2) 0%, var(--hv-green) 55%, #161c16 100%); }
.iwt-room-hero.is-plain::after { background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 45%); }
/* 200px top padding keeps the title clear of the overlapping header on desktop. */
.iwt-room-hero-inner { width: 100%; max-width: var(--hv-wrap); margin: 0 auto; padding: 200px var(--hv-gutter) 56px; }
.iwt-room-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.iwt-room-crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.iwt-room-crumbs a:hover, .iwt-room-crumbs a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.iwt-room-crumbs [aria-current] { color: #fff; }
.iwt-room-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hv-gold-light); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.iwt-room-eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.iwt-room-page .iwt-room-title { margin: 0; max-width: 18ch; font-family: var(--hv-serif); font-size: clamp(48px, 6.4vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.iwt-room-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 17px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.iwt-room-hero-facts li { display: inline-flex; align-items: center; }
.iwt-room-hero-facts li + li::before { content: ""; width: 5px; height: 5px; margin: 0 16px 0 -14px; border-radius: 50%; background: var(--hv-gold); }
.iwt-room-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .28); }
.iwt-room-hero .iwt-hotel-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: rgba(255, 255, 255, .85); }
.iwt-room-hero .iwt-hotel-price strong { font-family: var(--hv-serif); font-size: 44px; font-weight: 600; line-height: 1; color: #fff; }
.iwt-room-hero .iwt-hotel-price small { font-size: 15px; color: rgba(255, 255, 255, .85); }
.iwt-room-hero .iwt-hotel-price del { font-size: 16px; color: rgba(255, 255, 255, .7); }

/* Buttons shared by hero, mobile bar and final call to action. */
.iwt-room-page .iwt-room-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 16px 34px; border: 1px solid var(--hv-gold); border-radius: 0; background: var(--hv-gold); color: var(--hv-ink); font: 700 14px/1 var(--hv-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.iwt-room-page .iwt-room-cta::after { content: "\2192"; font-size: 18px; letter-spacing: 0; }
.iwt-room-page .iwt-room-cta:hover, .iwt-room-page .iwt-room-cta:focus-visible { background: #fff; border-color: #fff; color: var(--hv-ink); }

/* ---------------------------------------------------------------- Layout: 65 / 35 */
.iwt-room-page .iwt-room-body { max-width: var(--hv-wrap); margin: 0 auto; padding: 80px var(--hv-gutter) 96px; font: 400 16px/1.7 var(--hv-sans); color: var(--hv-muted); container-type: normal;
  --iwt-primary: var(--hv-gold); --iwt-primary-dark: var(--hv-green); --iwt-line: var(--hv-line); --iwt-radius: 0; --iwt-text: var(--hv-muted); --iwt-muted: #6b6a61; }
.iwt-room-layout { display: grid; grid-template-columns: minmax(0, 68fr) minmax(400px, 32fr); gap: 56px; align-items: start; }
.iwt-room-main { min-width: 0; }
.iwt-room-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--hv-line); }
.iwt-room-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.iwt-room-page .iwt-room-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hv-gold-dark); }
.iwt-room-page .iwt-room-section h2 { margin: 0 0 28px; font-family: var(--hv-serif); font-size: clamp(34px, 3.2vw, 46px); font-weight: 600; line-height: 1.1; color: var(--hv-ink); }
.iwt-room-page .iwt-room-lead { max-width: 62ch; margin: 0 0 20px; font-family: var(--hv-serif); font-size: 25px; line-height: 1.45; color: var(--hv-ink); }
.iwt-room-content { max-width: 68ch; margin-bottom: 32px; font-size: 17px; line-height: 1.85; }
.iwt-room-content > :first-child { margin-top: 0; }
.iwt-room-content p { margin: 0 0 1.1em; }
.iwt-room-content img { height: auto; }

/* Room facts */
/* Items grow to fill each row, so any number of facts leaves no empty cells. */
.iwt-room-details { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hv-line); border-left: 1px solid var(--hv-line); }
.iwt-room-details li { flex: 1 1 220px; display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; background: #fff; border-right: 1px solid var(--hv-line); border-bottom: 1px solid var(--hv-line); }
.iwt-room-details .dashicons { flex: 0 0 auto; width: 24px; height: 24px; font-size: 24px; color: var(--hv-gold-dark); }
.iwt-room-details strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hv-ink); }
.iwt-room-details span { font-size: 16px; line-height: 1.5; }

/* Gallery: one large photo with supporting photos; the existing lightbox script still applies. */
.iwt-room-page .iwt-hotel-gallery { margin: 0; border-radius: 0; grid-auto-rows: 250px; gap: 12px; max-width: none; }
.iwt-room-page .iwt-hotel-gallery a { background: var(--hv-cream); }
.iwt-room-page .iwt-hotel-gallery img { transition: transform .5s ease; }
.iwt-room-page .iwt-hotel-gallery a:hover img { transform: scale(1.03); }

/* Amenities */
.iwt-room-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 28px; margin: 0; padding: 0; list-style: none; }
.iwt-room-amenities li { display: flex; align-items: center; gap: 16px; padding: 4px 0; font-size: 17px; color: var(--hv-ink); }
.iwt-room-amenities svg { flex: 0 0 auto; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--hv-line); border-radius: 50%; background: #fff; fill: none; stroke: var(--hv-gold-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Policies */
.iwt-room-policies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.iwt-room-policies div { padding: 18px 0 18px 20px; border-left: 2px solid var(--hv-gold); margin-bottom: 16px; }
.iwt-room-page .iwt-room-policies dt { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hv-ink); }
.iwt-room-page .iwt-room-policies dd { margin: 0; font-size: 17px; line-height: 1.55; text-align: left; color: var(--hv-muted); }
.iwt-room-page .iwt-hotel-contacts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; padding: 24px 0 0; border-top: 1px solid var(--hv-line); font-size: 15px; }
.iwt-room-page .iwt-hotel-contacts a { color: var(--hv-green); font-weight: 700; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- Booking card (existing form, restyled) */
.iwt-room-page .iwt-room-booking { position: sticky; top: calc(var(--hv-header-offset) + 16px); max-height: calc(100vh - var(--hv-header-offset) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scroll-margin-top: calc(var(--hv-header-offset) + 16px); padding: 30px 28px; background: #fff; border: 1px solid var(--hv-line); border-top: 4px solid var(--hv-gold); border-radius: 0; box-shadow: 0 30px 70px rgba(27, 27, 21, .1); }
.iwt-room-page .iwt-room-booking-title { margin: 0 0 12px; font-family: var(--hv-serif); font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--hv-ink); }
.iwt-room-booking > .iwt-hotel-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.iwt-room-booking > .iwt-hotel-price strong { font-family: var(--hv-serif); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--hv-ink); }
.iwt-room-booking > .iwt-hotel-price small { font-size: 15px; color: var(--hv-muted); }
.iwt-room-booking > .iwt-hotel-price del { font-size: 15px; }
.iwt-room-page .iwt-room-booking-note { margin: 8px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--hv-line); font-size: 14px; line-height: 1.55; color: #6b6a61; }
.iwt-room-booking .iwt-hotel { max-width: none; margin: 0; font-family: var(--hv-sans); container-type: normal; }
.iwt-room-booking .iwt-hotel-booking-layout { display: block; }
.iwt-room-booking .iwt-hotel-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.iwt-room-page .iwt-room-booking label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking input:not([type="checkbox"]):not([type="radio"]),
.iwt-room-page .iwt-room-booking select,
.iwt-room-page .iwt-room-booking textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--hv-field); border-radius: 0; background: #fff; color: var(--hv-ink); font: 500 16px/1.4 var(--hv-sans); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.iwt-room-page .iwt-room-booking input:hover, .iwt-room-page .iwt-room-booking select:hover { border-color: #b9b4a4; }
.iwt-room-page .iwt-room-booking input:focus, .iwt-room-page .iwt-room-booking select:focus, .iwt-room-page .iwt-room-booking textarea:focus { outline: none; border-color: var(--hv-green); box-shadow: 0 0 0 3px rgba(178, 164, 120, .35); }
.iwt-room-page .iwt-room-booking [aria-invalid="true"] { border-color: #a4262c !important; }
.iwt-room-page .iwt-room-booking .iwt-hotel-field-error { font-size: 13px; font-weight: 500; color: #a4262c; }
.iwt-room-page .iwt-room-booking fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.iwt-room-page .iwt-room-booking legend { margin: 0 0 16px; padding: 0; font-family: var(--hv-serif); font-size: 22px; font-weight: 600; color: var(--hv-ink); }
.iwt-room-booking .iwt-hotel-guest-group > label { margin-bottom: 16px; }
.iwt-room-booking .iwt-hotel-guest-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.iwt-room-booking .iwt-hotel-stepper-field input { padding-inline: 34px !important; text-align: center; }
.iwt-room-page .iwt-room-booking .iwt-hotel-stepper { top: 38px; width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-stepper:hover { background: var(--hv-cream); }
.iwt-room-booking .iwt-hotel-guest-summary { margin: 12px 0 0; font-size: 14px; color: #6b6a61; }
.iwt-room-page .iwt-room-booking details { margin-top: 18px; padding: 0; border-top: 1px solid var(--hv-line); }
.iwt-room-page .iwt-room-booking summary { padding: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--hv-ink); cursor: pointer; }
.iwt-room-page .iwt-room-booking details[open] > summary { margin-bottom: 16px; }
.iwt-room-booking .iwt-hotel-booking-review { position: static; margin-top: 26px; padding: 26px 0 0; border: 0; border-top: 1px solid var(--hv-line); border-radius: 0; background: transparent; }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-review > h3 { margin: 0 0 16px; font-family: var(--hv-serif); font-size: 24px; font-weight: 600; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-review > label { margin-bottom: 4px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-check { width: 100%; min-height: 54px; margin-top: 20px; border: 1px solid var(--hv-green); border-radius: 0; background: #fff; color: var(--hv-green); font: 700 14px/1 var(--hv-sans); letter-spacing: .12em; text-transform: uppercase; }
.iwt-room-page .iwt-room-booking .iwt-hotel-check:hover { background: var(--hv-green); color: #fff; }
.iwt-room-booking .iwt-hotel-quote { margin: 20px 0; padding: 18px; background: var(--hv-paper); border: 1px solid var(--hv-line); font-size: 15px; }
.iwt-room-booking .iwt-hotel-quote:empty { padding: 0; border: 0; background: none; }
.iwt-room-page .iwt-room-booking .iwt-hotel-quote dt { font-size: 15px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-quote dd { font-size: 15px; font-weight: 600; }
.iwt-room-page .iwt-room-booking .iwt-hotel-quote .iwt-hotel-total { font-family: var(--hv-serif); font-size: 24px; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-options legend { font-size: 20px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option { flex-direction: row; gap: 14px; margin-bottom: 10px; padding: 16px; border: 1px solid var(--hv-field); border-radius: 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option:has(:checked) { border-color: var(--hv-green); background: #f6f5ef; box-shadow: inset 4px 0 var(--hv-gold); }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option strong { font-size: 15px; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option small { font-size: 13px; line-height: 1.45; color: #6b6a61; }
.iwt-room-page .iwt-room-booking .iwt-hotel-checkbox { flex-direction: row; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 15px; font-weight: 500; }
.iwt-room-page .iwt-room-booking input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--hv-green); }
.iwt-room-page .iwt-room-booking button[type="submit"] { width: 100%; min-height: 58px; margin-top: 16px; border: 1px solid var(--hv-green); border-radius: 0; background: var(--hv-green); color: #fff; font: 700 15px/1 var(--hv-sans); letter-spacing: .14em; text-transform: uppercase; }
.iwt-room-page .iwt-room-booking button[type="submit"]:hover { background: var(--hv-ink); border-color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-message:not(:empty) { margin-top: 16px; padding: 12px 14px; border-left: 3px solid #a4262c; background: #fbeeee; font-size: 15px; color: #7c1d22; }
.iwt-room-page .iwt-room-booking .iwt-hotel-message[data-tone="success"] { border-color: #24634b; background: #ebf5f0; color: #1d5440; }


/* ---------------------------------------------------------------- Compact booking card
   Same fields and scripts; related fields share rows and repeated content is hidden. */
.iwt-room-page .iwt-room-booking-title { font-size: 32px; margin-bottom: 6px; }
.iwt-room-booking > .iwt-hotel-price strong { font-size: 36px; }
.iwt-room-booking .iwt-hotel-fields { gap: 14px 14px; }
.iwt-room-page .iwt-room-booking fieldset { margin-top: 18px; }
/* The guest group heading repeats the card title; keep it for screen readers only. */
.iwt-room-page .iwt-room-booking .iwt-hotel-guest-group > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Room type + rooms, then adults + children. */
.iwt-room-booking .iwt-hotel-guest-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.iwt-room-booking .iwt-hotel-guest-group > label { margin-bottom: 0; }
.iwt-room-booking .iwt-hotel-guest-fields { display: contents; }
.iwt-room-booking .iwt-hotel-guest-summary { grid-column: 1 / -1; margin: 0; }
.iwt-room-page .iwt-room-booking details { margin-top: 14px; }
.iwt-room-page .iwt-room-booking summary { padding-top: 12px; }
.iwt-room-page .iwt-room-booking details[open] > summary { margin-bottom: 12px; }
/* Hotel policies are already shown beside the form. */
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-review > details:last-of-type:not(:has(input)) { display: none; }
.iwt-room-booking .iwt-hotel-booking-review { margin-top: 18px; padding-top: 18px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-review > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.iwt-room-page .iwt-room-booking .iwt-hotel-check { min-height: 50px; margin-top: 16px; }
.iwt-room-booking .iwt-hotel-quote { min-height: 0; margin: 14px 0; }
.iwt-room-booking .iwt-hotel-quote:empty::before { font-size: 14px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-options { margin-top: 6px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-options legend { margin-bottom: 10px; font-size: 19px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option { margin-bottom: 8px; padding: 12px 14px; }
/* Only the chosen payment option explains itself. */
.iwt-room-page .iwt-room-booking .iwt-hotel-payment-option:not(:has(:checked)) small { display: none; }
.iwt-room-page .iwt-room-booking .iwt-hotel-checkbox { padding: 4px 0; }
.iwt-room-page .iwt-room-booking button[type="submit"] { min-height: 56px; margin-top: 12px; }
@media (max-width: 1024px) {
  /* Stacked below the content: full card height, no inner scrolling. */
  .iwt-room-page .iwt-room-booking { max-height: none; overflow: visible; }
}

/* ---------------------------------------------------------------- Related rooms and final call to action */
.iwt-room-related { padding: 88px 0; background: var(--hv-cream); }
.iwt-room-related > .iwt-hotel { max-width: var(--hv-wrap); margin: 0 auto; padding: 0 var(--hv-gutter); }
.iwt-room-page .iwt-room-related h2 { margin: 0 0 32px; font-family: var(--hv-serif); font-size: clamp(34px, 3.2vw, 46px); font-weight: 600; color: var(--hv-ink); }
.iwt-room-page .iwt-room-related .iwt-hotel-room-card { border-radius: 0; border-color: var(--hv-line); }
.iwt-room-page .iwt-room-related .iwt-hotel-room-card h3 { font-family: var(--hv-serif); font-size: 26px; }
.iwt-room-page .iwt-room-related .iwt-hotel-button { border-radius: 0; }
.iwt-room-final { position: relative; padding: 96px var(--hv-gutter); background: var(--hv-green); text-align: center; color: #fff; }
.iwt-room-final-inner { max-width: 760px; margin: 0 auto; }
.iwt-room-page .iwt-room-final .iwt-room-kicker { color: var(--hv-gold-light); }
.iwt-room-page .iwt-room-final h2 { margin: 0 0 32px; font-family: var(--hv-serif); font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; line-height: 1.1; color: #fff; }

/* ---------------------------------------------------------------- Laptop / tablet */
@media (max-width: 1200px) {
  .iwt-room-page { --hv-gutter: 32px; }
  .iwt-room-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}
@media (max-width: 1024px) {
  .iwt-room-hero { min-height: 500px; }
  .iwt-room-hero-inner { padding-top: 170px; padding-bottom: 48px; }
  .iwt-room-layout { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  /* Below the content on tablets and phones: never sticky, never covering the screen. */
  .iwt-room-page .iwt-room-booking { position: static; max-width: 640px; width: 100%; margin: 0 auto; }
  .iwt-room-page .iwt-room-body { padding-top: 64px; padding-bottom: 80px; }
}
/* ---------------------------------------------------------------- Mobile */
@media (max-width: 640px) {
  .iwt-room-page { --hv-gutter: 20px; --hv-header-offset: 88px; font-size: 16px; }
  .iwt-room-hero { min-height: 460px; }
  .iwt-room-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .58) 30%, rgba(0, 0, 0, .6) 65%, rgba(0, 0, 0, .84) 100%); }
  .iwt-room-hero-inner { padding-top: 132px; padding-bottom: 32px; }
  .iwt-room-crumbs { margin-bottom: 14px; font-size: 12px; }
  .iwt-room-hero-facts { font-size: 15px; }
  .iwt-room-hero-actions { margin-top: 22px; padding-top: 18px; }
  .iwt-room-hero .iwt-hotel-price strong { font-size: 34px; }
  .iwt-room-page .iwt-room-cta { width: 100%; }
  .iwt-room-page .iwt-room-body { padding-top: 48px; padding-bottom: 104px; }
  .iwt-room-section { padding-bottom: 40px; margin-bottom: 40px; }
  .iwt-room-page .iwt-room-section h2 { margin-bottom: 20px; }
  .iwt-room-policies { grid-template-columns: minmax(0, 1fr); }
  .iwt-room-page .iwt-hotel-gallery { grid-auto-rows: auto; }
  .iwt-room-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .iwt-room-amenities li { font-size: 15px; gap: 12px; }
  .iwt-room-amenities svg { width: 40px; height: 40px; padding: 9px; }
  .iwt-room-page .iwt-room-booking { padding: 28px 20px; }
  .iwt-room-page .iwt-room-booking-title { font-size: 30px; }
  .iwt-room-booking .iwt-hotel-fields { grid-template-columns: minmax(0, 1fr); }
  .iwt-room-related { padding: 56px 0; }
  .iwt-room-final { padding: 64px var(--hv-gutter); }
}
/* Mobile booking bar (shown by the existing script while the booking card is off screen). */
@media (max-width: 540px) {
  .iwt-room-page .iwt-hotel-mobile-cta { gap: 12px; padding-inline: 16px; background: #fff; border-top: 1px solid var(--hv-line); }
  .iwt-room-page .iwt-hotel-mobile-cta .iwt-hotel-price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; margin: 0; }
  .iwt-room-page .iwt-hotel-mobile-cta .iwt-hotel-price del { font-size: 12px; line-height: 1.2; }
  .iwt-room-page .iwt-hotel-mobile-cta .iwt-hotel-price strong { font-family: var(--hv-serif); font-size: 24px; line-height: 1.1; white-space: nowrap; color: var(--hv-ink); }
  .iwt-room-page .iwt-hotel-mobile-cta .iwt-hotel-price small { font-size: 12px; line-height: 1.2; white-space: nowrap; }
  .iwt-room-page .iwt-hotel-mobile-cta .iwt-room-cta { flex: 0 0 auto; width: auto; min-height: 48px; padding: 12px 18px; font-size: 12px; }
}
@media (max-width: 380px) {
  .iwt-room-booking .iwt-hotel-guest-fields, .iwt-room-amenities { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .iwt-room-page * { transition: none !important; } }

/* Two-step booking form in the room panel (see frontend.css): divider above the summary, and the hotel
   policies summary stays hidden here because the page already shows them. */
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-review > h3 { margin: 22px 0 16px; padding-top: 20px; border-top: 1px solid var(--hv-line); }
.iwt-room-page .iwt-room-booking .iwt-hotel-pay-step > details:last-of-type:not(:has(input)) { display: none; }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-layout { display: flex; flex-direction: column; }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-main, .iwt-room-page .iwt-room-booking .iwt-hotel-booking-review { display: contents; }
.iwt-room-page .iwt-room-booking .iwt-hotel-booking-layout { align-items: stretch; }
.iwt-room-page .iwt-room-booking .iwt-hotel-pay-step button[type="submit"] { width: 100%; }
.iwt-room-page .iwt-room-booking .iwt-hotel-breakdown dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.iwt-room-page .iwt-room-booking .iwt-hotel-breakdown dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--hv-muted); text-align: left; }
.iwt-room-page .iwt-room-booking .iwt-hotel-breakdown dd { margin: 2px 0 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-contact-step { margin-top: 4px; padding-top: 0; border-top: 0; }
.iwt-room-page .iwt-room-booking .iwt-hotel-contact-step > legend { margin: 0 0 14px; font-family: var(--hv-serif); font-size: 24px; font-weight: 600; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-guest-info { grid-template-columns: minmax(0, 1fr); }
/* Add-ons inside the booking panel, below the Grand Total (see frontend.css). */
.iwt-room-page .iwt-room-booking .iwt-hotel-addons { margin: 0 0 20px; padding: 18px 0 0; border-top: 1px solid var(--hv-line); }
.iwt-room-page .iwt-room-booking .iwt-hotel-addons-head h3 { font-family: var(--hv-serif); color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-addon-add { border-color: var(--hv-gold); color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-addon-add.is-on { background: var(--hv-ink); border-color: var(--hv-ink); color: #fff; }
.iwt-room-page .iwt-room-booking .iwt-hotel-stay-title { margin: 22px 0 14px; padding-top: 20px; border-top: 1px solid var(--hv-line); font-family: var(--hv-serif); font-size: 24px; font-weight: 600; color: var(--hv-ink); }
.iwt-room-page .iwt-room-booking .iwt-hotel-requests { margin-top: 18px; }
.iwt-room-page .iwt-room-booking .iwt-hotel-requests textarea { min-height: 84px; }
/* Desktop: a slightly wider booking column so three add-on cards per row stay readable. */
@media (min-width: 1025px) {
  .iwt-room-layout { grid-template-columns: minmax(0, 60fr) minmax(460px, 40fr); gap: 48px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon h4 { font-size: 16px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon-desc { font-size: 12.5px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon-category { font-size: 10px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon-price strong { font-size: 14.5px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon-price small { font-size: 11.5px; }
  .iwt-room-page .iwt-room-booking .iwt-hotel-addon-add { font-size: 11.5px; min-height: 34px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .iwt-room-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; }
}
