/* ---------- Colours and sizes used across the site ---------- */

/* Light theme: "golden hour". Porcelain white page, rich gold brand colour, deep dusk-indigo text */
:root {
  /* Page background (cool porcelain, so the gold looks bright instead of muddy) */
  --bg: #F6F7FB;
  /* Background for raised areas like the form and room cards */
  --surface: #FFFFFF;
  /* Second background for alternating sections */
  --band: #FFF6D6;
  /* Main text colour (deep dusk indigo) */
  --ink: #1C1B3A;
  /* Softer text for notes */
  --muted: #535272;
  /* The brand gold, used for big buttons and fills */
  --gold: #F2B705;
  /* Brighter gold for the shimmer highlight */
  --gold-light: #FFD84D;
  /* Darker gold that is readable as text on the light page */
  --gold-text: #8F6400;
  /* Text colour that sits on top of the gold */
  --on-gold: #1C1B3A;
  /* Indigo for secondary fills (room headboards, roof) */
  --indigo: #2D2B6B;
  /* Thin lines and borders */
  --line: #DCDDEB;
  /* WhatsApp's green, darkened so white text on it is readable */
  --wa: #128C4A;
  /* Error text */
  --error: #A3271C;
  /* Card shadow tinted with indigo */
  --shadow: 0 14px 34px -18px rgba(45, 43, 107, 0.35);

  /* Hero drawing: golden-hour sky from soft blue to gold at the horizon */
  --sky-top: #A9C8F0;
  /* Middle of the sky */
  --sky-mid: #FFE7A6;
  /* Horizon glow */
  --sky-low: #FFC738;
  /* Sun */
  --sun: #FFB800;
  /* Glow around the sun */
  --halo: #FFE58A;
  /* Faraway city */
  --city: #E7C46A;
  /* Ground */
  --ground: #F4E6B8;
  /* Building wall */
  --wall: #FFFDF6;
  /* Windows before they light up */
  --win-off: #C9CCE0;
  /* Windows once lit */
  --win-on: #F2B705;
  /* Pool water */
  --pool: #58AEDB;
  /* Room drawing pillows */
  --room-pillow: #F8E3A0;
  /* Room drawing floor (warm gold boards) */
  --room-floor: #F6DE92;
  /* How strong the lamp glow is in the room drawings */
  --glow-op: 0.3;
  /* Stars start hidden in light mode */
  --stars: 0;
  /* How much the dusk layer can darken the light-mode sky as you scroll */
  --dusk-max: 0.55;

  /* Heading font */
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  /* Body font */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Widest the content gets */
  --max: 1120px;
  /* Space at the sides of the page */
  --gutter: clamp(16px, 4vw, 40px);
  /* Corner roundness for big blocks */
  --radius-lg: 28px;
  /* Corner roundness for small items */
  --radius-sm: 10px;
  /* The easing curve used for most motion: quick start, soft landing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tell the browser which colour scheme is active */
  color-scheme: light;
}

/* Dark theme colours, used when the phone is in dark mode and the visitor hasn't picked Light */
@media (prefers-color-scheme: dark) {
  /* Only applies if the visitor hasn't forced light mode */
  :root:not([data-theme="light"]) {
    /* Night indigo background */
    --bg: #10112A;
    /* Raised areas */
    --surface: #191B3D;
    /* Alternating sections */
    --band: #15173A;
    /* Main text (warm white) */
    --ink: #F7F3E3;
    /* Softer text */
    --muted: #B7B6D6;
    /* Gold glows brighter at night */
    --gold: #F7C531;
    /* Shimmer highlight */
    --gold-light: #FFF0A8;
    /* Gold text */
    --gold-text: #FFD45C;
    /* Text on gold stays dark */
    --on-gold: #15142E;
    /* Lighter indigo so shapes show on the dark page */
    --indigo: #5B58B8;
    /* Borders */
    --line: #2E3160;
    /* WhatsApp green */
    --wa: #1FA855;
    /* Error text */
    --error: #FF9B8F;
    /* Deeper shadow */
    --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
    /* Night sky */
    --sky-top: #090A22;
    /* Middle of the night sky */
    --sky-mid: #1E2058;
    /* Last light at the horizon */
    --sky-low: #3C3780;
    /* Moon */
    --sun: #FFF1C2;
    /* Moon glow */
    --halo: #4B4A94;
    /* City at night */
    --city: #1A1B45;
    /* Ground at night */
    --ground: #14153A;
    /* Wall at night */
    --wall: #2A2C5E;
    /* Unlit windows at night */
    --win-off: #1B1C44;
    /* Lit windows glow gold */
    --win-on: #FFC93C;
    /* Pool at night */
    --pool: #2C5F9E;
    /* Room drawing pillows at night (warm white, not olive) */
    --room-pillow: #EDE6CF;
    /* Room drawing floor at night */
    --room-floor: #2B2A62;
    /* Softer lamp glow so it doesn't muddy the indigo */
    --glow-op: 0.16;
    /* Stars on */
    --stars: 1;
    /* No extra dusk needed at night */
    --dusk-max: 0;
    /* Use dark scrollbars and form controls */
    color-scheme: dark;
  }
}

/* Same dark colours when the visitor picks Dark on the switch */
:root[data-theme="dark"] {
  /* Night indigo background */
  --bg: #10112A;
  /* Raised areas */
  --surface: #191B3D;
  /* Alternating sections */
  --band: #15173A;
  /* Main text */
  --ink: #F7F3E3;
  /* Softer text */
  --muted: #B7B6D6;
  /* Brighter gold */
  --gold: #F7C531;
  /* Shimmer highlight */
  --gold-light: #FFF0A8;
  /* Gold text */
  --gold-text: #FFD45C;
  /* Text on gold */
  --on-gold: #15142E;
  /* Lighter indigo */
  --indigo: #5B58B8;
  /* Borders */
  --line: #2E3160;
  /* WhatsApp green */
  --wa: #1FA855;
  /* Error text */
  --error: #FF9B8F;
  /* Deeper shadow */
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  /* Night sky */
  --sky-top: #090A22;
  /* Middle of the night sky */
  --sky-mid: #1E2058;
  /* Horizon */
  --sky-low: #3C3780;
  /* Moon */
  --sun: #FFF1C2;
  /* Moon glow */
  --halo: #4B4A94;
  /* City */
  --city: #1A1B45;
  /* Ground */
  --ground: #14153A;
  /* Wall */
  --wall: #2A2C5E;
  /* Unlit windows */
  --win-off: #1B1C44;
  /* Lit windows */
  --win-on: #FFC93C;
  /* Pool */
  --pool: #2C5F9E;
  /* Room drawing pillows at night */
  --room-pillow: #EDE6CF;
  /* Room drawing floor at night */
  --room-floor: #2B2A62;
  /* Softer lamp glow */
  --glow-op: 0.16;
  /* Stars on */
  --stars: 1;
  /* No dusk layer */
  --dusk-max: 0;
  /* Dark form controls */
  color-scheme: dark;
}

/* ---------- Basics ---------- */

/* Make widths include padding and borders, which is easier to reason about */
*, *::before, *::after { box-sizing: border-box; }

/* Smooth scrolling when jumping to a section */
html { scroll-behavior: smooth; }

/* Page-wide text and background */
body {
  /* Remove the browser's default gap around the page */
  margin: 0;
  /* Page background colour */
  background: var(--bg);
  /* Text colour */
  color: var(--ink);
  /* Body font */
  font-family: var(--font-body);
  /* Comfortable reading size that grows a little on big screens */
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  /* Space between lines */
  line-height: 1.6;
  /* Stop sideways scrolling on small phones (clip is the modern, cleaner version; hidden is the fallback) */
  overflow-x: hidden; overflow-x: clip;
  /* Fade colours smoothly when the theme changes */
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Headings use the display font */
h1, h2, h3 {
  /* Display font */
  font-family: var(--font-display);
  /* Gloock has one weight, so don't fake bold */
  font-weight: 400;
  /* Tighter lines for big text */
  line-height: 1.12;
  /* Remove default top gap */
  margin: 0 0 0.5em;
  /* Keep heading lines balanced */
  text-wrap: balance;
}

/* Paragraph spacing */
p { margin: 0 0 1em; }

/* Links in body text use the readable gold */
a { color: var(--gold-text); text-underline-offset: 3px; }

/* Clear outline when moving around with the keyboard */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Link that only appears when a keyboard user tabs to it */
.skip {
  /* Take it out of the normal flow */
  position: absolute;
  /* Hide it above the screen */
  left: 8px; top: -60px;
  /* Readable box */
  background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--radius-sm);
  /* Sit above everything */
  z-index: 100;
}
/* Slide the skip link into view when focused */
.skip:focus { top: 8px; }

/* ---------- Gold shimmer on prices ---------- */

/* Gold text with a light streak that sweeps across it */
.gold-shine {
  /* Base gold text colour, used if the streak effect isn't supported */
  color: var(--gold-text);
  /* A gold band with a bright streak in the middle, twice as wide as the text */
  background: linear-gradient(100deg, var(--gold-text) 0%, var(--gold-text) 40%, var(--gold-light) 50%, var(--gold-text) 60%, var(--gold-text) 100%);
  /* Make the band twice as wide so it can slide */
  background-size: 250% 100%;
  /* Start with the streak off to the right */
  background-position: 100% 0;
  /* Show the band only through the letters */
  -webkit-background-clip: text; background-clip: text;
  /* Let the band show through the letters */
  -webkit-text-fill-color: transparent;
}

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

/* Shared button look */
.btn {
  /* Lay out icon and text in a row */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  /* Big enough to tap easily */
  min-height: 48px; padding: 12px 22px;
  /* Pill shape */
  border-radius: 999px; border: 2px solid transparent;
  /* Text style */
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  /* Keep the words centred when a long label wraps onto two lines */
  text-align: center;
  /* Smooth lift, press and colour changes */
  transition: transform 0.25s var(--ease), background-color 0.2s ease, box-shadow 0.25s var(--ease);
}
/* Lift slightly when hovered with a mouse */
.btn:hover { transform: translateY(-2px); }
/* Press-down effect when tapped */
.btn:active { transform: translateY(1px) scale(0.98); }

/* WhatsApp button colours */
.btn-wa { background: var(--wa); color: #FFFFFF; }
/* Slightly darker with a green glow when hovered */
.btn-wa:hover { background: color-mix(in srgb, var(--wa) 85%, #000); box-shadow: 0 10px 22px -10px var(--wa); }
/* Size of the WhatsApp logo inside the button */
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Outline button for secondary actions */
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
/* Gold fill on hover */
.btn-quiet:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Button inside each room card: solid gold */
.btn-room { background: var(--gold); color: var(--on-gold); position: relative; overflow: hidden; }
/* Gold glow on hover */
.btn-room:hover { box-shadow: 0 10px 24px -10px var(--gold); }

/* ---------- Top bar ---------- */

/* Header that sticks to the top while scrolling */
.topbar {
  /* Stay at the top */
  position: sticky; top: 0; z-index: 20;
  /* Lay out items in a row that can wrap on small screens */
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  /* Inner spacing */
  padding: 10px var(--gutter);
  /* Background slightly see-through with a blur behind */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  /* Thin line underneath */
  border-bottom: 1px solid var(--line);
}
/* Thin gold line under the header that fills up as you read down the page */
.topbar::after {
  /* Sit along the bottom edge */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  /* Gold */
  background: var(--gold);
  /* Scaled by the script from 0 (top of page) to 1 (bottom) */
  transform: scaleX(var(--read, 0)); transform-origin: left;
}

/* Hotel name link */
.brand {
  /* Logo and name in a row */
  display: inline-flex; align-items: center; gap: 8px;
  /* Name style */
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); text-decoration: none;
  /* Push everything else to the right */
  margin-right: auto;
  /* Never let the name wrap onto two lines */
  white-space: nowrap;
}
/* Logo drawing: gold fronds */
.brand-mark { width: 30px; height: 30px; fill: var(--gold); flex: none; transition: transform 0.6s var(--ease); }
/* The palm leans a little when the name is hovered */
.brand:hover .brand-mark { transform: rotate(-8deg); }
/* Trunk of the palm tree in the logo */
.brand-trunk { fill: none; stroke: var(--indigo); stroke-width: 4; stroke-linecap: round; }

/* The System / Dark / Light switch */
.theme-switch {
  /* Buttons in a row inside a pill */
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
/* Each option in the switch */
.theme-switch button {
  /* Plain text button */
  border: 0; background: transparent; color: var(--muted);
  /* Text style */
  font: 500 0.8125rem/1 var(--font-body);
  /* Tap area */
  padding: 8px 11px; min-height: 34px; border-radius: 999px; cursor: pointer;
  /* Smooth colour change */
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* The option that is currently on */
.theme-switch button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

/* Menu button: hidden on wide screens */
.menu-btn {
  /* Hidden by default */
  display: none;
  /* Look */
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  /* Text and tap size */
  font: 700 0.9rem/1 var(--font-body); padding: 10px 14px; min-height: 40px; border-radius: 999px; cursor: pointer;
}

/* Section links */
.site-nav { display: flex; align-items: center; gap: 4px; }
/* Each link */
.site-nav a {
  /* Plain text links */
  color: var(--ink); text-decoration: none; font-weight: 500;
  /* Tap area */
  padding: 8px 12px; border-radius: 999px;
  /* Smooth hover */
  transition: background-color 0.2s ease;
}
/* Light gold highlight on hover */
.site-nav a:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
/* The Book link stands out in gold */
.site-nav .nav-book { background: var(--gold); color: var(--on-gold); }

/* Medium and small screens: fold the links into the Menu button */
@media (max-width: 860px) {
  /* Show the menu button */
  .menu-btn { display: inline-block; }
  /* Links become a full-width panel under the header, hidden until opened */
  .site-nav {
    /* Hidden by default */
    display: none;
    /* Take the full width on its own line */
    flex-basis: 100%; flex-direction: column; align-items: stretch;
    /* Space above */
    padding: 6px 0 4px;
  }
  /* Show the panel when the menu is open, sliding down */
  .site-nav.open { display: flex; animation: drop-in 0.3s var(--ease); }
  /* Bigger tap targets in the panel */
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
}
/* Menu panel slides down a little as it appears */
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Small phones: theme switch moves to its own line so nothing runs off the screen */
@media (max-width: 480px) {
  /* Put the switch on its own row, stretched across */
  .theme-switch { order: 3; flex-basis: 100%; justify-content: space-between; }
  /* Each option takes an equal share */
  .theme-switch button { flex: 1; }
  /* Keep the links panel below the switch */
  .site-nav { order: 4; }
}

/* Very narrow screens (folded phones, about 280 wide): shrink the name and Menu button so they share one row */
@media (max-width: 340px) {
  /* Smaller hotel name and tighter gap */
  .brand { font-size: 1.05rem; gap: 6px; }
  /* Smaller palm logo */
  .brand-mark { width: 24px; height: 24px; }
  /* Slimmer Menu button */
  .menu-btn { padding: 8px 12px; }
  /* Less space between items */
  .topbar { column-gap: 8px; }
}

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

/* Opening section: text and drawing side by side */
.hero {
  /* Two columns on wide screens */
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  /* Centre and limit width */
  max-width: var(--max); margin: 0 auto;
  /* Space around */
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px);
  /* Leave room for the sticky header when jumping here */
  scroll-margin-top: 80px;
}
/* Big heading */
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); letter-spacing: -0.01em; max-width: 14ch; }
/* Intro paragraph */
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
/* The starting price inside the intro */
.lede strong { font-weight: 700; }
/* The two hero buttons */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Drawing container */
.hero-art { margin: 0; }
/* Drawing scales with the column and gets a soft shadow */
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }
/* Small caption under the drawing */
.hero-art figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; text-align: right; }

/* Sky colours (set on the gradient stops so they follow the theme) */
.sky-top { stop-color: var(--sky-top); }
/* Middle of the sky */
.sky-mid { stop-color: var(--sky-mid); }
/* Horizon */
.sky-low { stop-color: var(--sky-low); }
/* Stars: hidden in light mode until the scroll sunset brings them out */
.a-stars circle { fill: #FFFFFF; }
/* Stars show fully at night, or as much as the sunset allows in light mode */
.a-stars { opacity: max(var(--stars), calc(var(--p, 0) * 0.9)); }
/* Sun or moon */
.a-sun { fill: var(--sun); }
/* Glow around the sun */
.a-halo { fill: var(--halo); opacity: 0.55; }
/* Faraway city */
.a-city { fill: var(--city); }
/* Ground */
.a-ground { fill: var(--ground); }
/* Building */
.a-wall { fill: var(--wall); }
/* Roof slab */
.a-roof { fill: var(--indigo); }
/* Bar shade in gold */
.a-awning { fill: var(--gold); }
/* Bar posts */
.a-post { stroke: var(--indigo); stroke-width: 4; }
/* Light string */
.a-string { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.45; }
/* Bulbs */
.a-bulbs circle { fill: var(--gold-light); }
/* Room windows start unlit */
.a-win rect { fill: var(--win-off); transition: fill 0.7s ease; }
/* A window that has its light on */
.a-win rect.lit { fill: var(--win-on); }
/* Door */
.a-door { fill: var(--indigo); }
/* Pool */
.a-pool { fill: var(--pool); }
/* Water ripples */
.a-ripple { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; opacity: 0.7; }
/* Palm trunks */
.a-trunk { fill: none; stroke: var(--gold-text); stroke-width: 9; stroke-linecap: round; }
/* Palm leaves in indigo so they read against the gold sky */
.a-frond { fill: var(--indigo); }
/* Dusk layer: deep indigo, see-through, darkened by scrolling in light mode */
.a-dusk { fill: #1C1B3A; opacity: calc(var(--p, 0) * var(--dusk-max)); pointer-events: none; }
/* Without the script, every window shows lit so the drawing still looks finished */
html:not(.js) .a-win rect { fill: var(--win-on); }

/* Hero motion, only for people who haven't asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  /* The sun sinks and the city drifts as you scroll (the script sets --p from 0 to 1) */
  .a-sun-wrap { transform: translateY(calc(var(--p, 0) * 150px)); }
  /* The city moves less than the sun, which gives the feeling of depth */
  .a-city { transform: translateY(calc(var(--p, 0) * 24px)); }
  /* Bulbs on the string twinkle in turn */
  .a-bulbs circle { animation: twinkle 2.4s ease-in-out infinite; }
  /* Stagger each bulb so the twinkle travels along the string */
  .a-bulbs circle:nth-child(2) { animation-delay: 0.3s; } .a-bulbs circle:nth-child(3) { animation-delay: 0.6s; }
  .a-bulbs circle:nth-child(4) { animation-delay: 0.9s; } .a-bulbs circle:nth-child(5) { animation-delay: 1.2s; }
  .a-bulbs circle:nth-child(6) { animation-delay: 1.5s; }
  /* Stars flicker slowly at different speeds */
  .a-stars circle { animation: twinkle 3.2s ease-in-out infinite; }
  /* Every other star flickers on its own beat */
  .a-stars circle:nth-child(odd) { animation-duration: 4.4s; animation-delay: 1s; }
  /* The ripples drift sideways across the pool */
  .a-ripple { stroke-dasharray: 14 10; animation: ripple 6s linear infinite; }
  /* The sun's glow breathes slowly */
  .a-halo { animation: breathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  /* Palm trees sway from the base of the trunk */
  .a-palm { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
  /* The right palm sways on a different beat */
  .a-palm-right { animation-duration: 8.5s; animation-delay: -2s; }
}
/* Fade a light down and back up */
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Slide the dashed ripple line along */
@keyframes ripple { to { stroke-dashoffset: -96; } }
/* Grow and shrink the sun's glow */
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.12); opacity: 0.7; } }
/* Lean the palm left and right a tiny amount */
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

/* ---------- Scroll reveals ---------- */

/* Only hide things when the script is running and motion is welcome, so nothing is ever stuck invisible */
@media (prefers-reduced-motion: no-preference) {
  /* Start a little lower and see-through */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  /* Once on screen, settle into place */
  .js [data-reveal].in { opacity: 1; transform: none; }
  /* Facts arrive one after another */
  .js .facts [data-reveal]:nth-child(2) { transition-delay: 0.08s; } .js .facts [data-reveal]:nth-child(3) { transition-delay: 0.16s; } .js .facts [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
  /* Facilities arrive one after another */
  .js .stay-item:nth-child(2) { transition-delay: 0.1s; } .js .stay-item:nth-child(3) { transition-delay: 0.2s; }
  /* Prices get a gold streak sweeping across when their card arrives */
  .js .in .gold-shine, .js .lede .gold-shine { animation: shine 1.6s 0.4s var(--ease) both; }
  /* Sweep again when the card is hovered */
  .room:hover .gold-shine { animation: shine 1.2s var(--ease) both; }
  /* Facility icons start undrawn */
  .js .stay-item svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s 0.2s var(--ease); }
  /* And draw themselves in once on screen */
  .js .stay-item.in svg path { stroke-dashoffset: 0; }
}
/* Slide the bright streak from right to left across the gold text */
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Quick facts strip ---------- */

/* Band across the page */
.facts { border-block: 1px solid var(--line); background: var(--band); }
/* The list of facts in a row */
.facts dl {
  /* Four columns on wide screens */
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  /* Centre and limit width */
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
}
/* Each fact has a short gold mark on its left */
.facts dl > div { border-left: 3px solid var(--gold); padding-left: 12px; }
/* Fact label */
.facts dt { font-size: 0.875rem; color: var(--muted); }
/* Fact value */
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }

/* ---------- Shared section layout ---------- */

/* Centre each section and give it breathing room */
.rooms, .stay, .book, .faq {
  /* Limit width */
  max-width: var(--max); margin: 0 auto;
  /* Space around */
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  /* Leave room for the sticky header when jumping here */
  scroll-margin-top: 70px;
}
/* Section headings */
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
/* Intro under section headings */
.section-intro { color: var(--muted); max-width: 56ch; }

/* ---------- Rooms ---------- */

/* Three room cards side by side on wide screens */
.room-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
/* Each room card: drawing on top, then details, then the button */
.room {
  /* Stack the parts */
  display: flex; flex-direction: column; gap: 14px;
  /* Card look */
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 18px;
  /* Smooth lift and glow on hover */
  transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
/* On hover the card rises and its edge turns gold */
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
/* Room drawing */
.room-art { width: 100%; height: auto; display: block; border-radius: 14px; clip-path: inset(0 round 14px); }
/* Room text block grows so the buttons line up */
.room-info { flex: 1; padding: 0 4px; }
/* Room name */
.room h3 { font-size: 1.6rem; margin-bottom: 0.2em; }
/* Price line */
.price { margin: 0; color: var(--muted); }
/* The naira amount itself, large and gold */
.price .gold-shine { font-family: var(--font-display); font-size: 2rem; margin-right: 4px; }
/* Small note under the price */
.room-note { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
/* Button fills the card width */
.btn-room { align-self: stretch; }

/* Colours of the room drawings */
.r-wall { fill: color-mix(in srgb, var(--indigo) 14%, var(--surface)); }
/* Floor */
.r-floor { fill: var(--room-floor); }
/* Headboard */
.r-head { fill: var(--indigo); }
/* Bed cover */
.r-bed { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
/* Pillows and cushions */
.r-pillow { fill: var(--room-pillow); }
/* Chair and sofa */
.r-accent { fill: color-mix(in srgb, var(--indigo) 55%, var(--surface)); }
/* Bedside table */
.r-table { fill: color-mix(in srgb, var(--indigo) 40%, var(--surface)); }
/* Lamp stands and cords */
.r-stand { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0.6; }
/* Lamp shades start unlit */
.r-lamp { fill: color-mix(in srgb, var(--gold) 35%, var(--surface)); transition: fill 0.6s ease 0.5s; }
/* Warm light from the lamp starts off */
.r-glow { fill: var(--gold); opacity: 0; transition: opacity 1s ease 0.6s; }
/* Window in the room */
.r-window { fill: var(--sky-top); stroke: var(--indigo); stroke-width: 3; }
/* Archway in the suite */
.r-arch { fill: none; stroke: var(--indigo); stroke-width: 4; }
/* When a room card comes into view (or the script isn't running) the lamp switches on */
.room.in .r-lamp, html:not(.js) .r-lamp { fill: var(--gold); }
/* And its warm glow spreads across the wall */
.room.in .r-glow, html:not(.js) .r-glow { opacity: var(--glow-op); }
/* Hovering the card turns the lamp up a little */
.room:hover .r-glow { opacity: calc(var(--glow-op) * 1.5); transition-delay: 0s; }

/* Tablets: cards one under another, drawing beside the details */
@media (max-width: 900px) {
  /* One card per row */
  .room-list { grid-template-columns: 1fr; }
  /* Drawing on the left, details and button on the right */
  .room { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 12px 20px; padding: 14px; }
  /* Drawing spans both rows */
  .room-art { grid-row: span 2; }
  /* Button sits under the details */
  .btn-room { justify-self: start; }
}
/* Phones: everything stacked */
@media (max-width: 520px) {
  /* One column inside the card */
  .room { grid-template-columns: 1fr; }
  /* Drawing back to a single row */
  .room-art { grid-row: auto; }
  /* Button full width */
  .btn-room { justify-self: stretch; }
}

/* ---------- Your stay ---------- */

/* Full-width tinted band behind this section */
.stay { position: relative; }
/* The band itself, drawn behind the content */
.stay::before {
  /* Fill the whole width of the screen */
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--band); z-index: -1;
}
/* Three facilities side by side */
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 24px; }
/* Each facility, with a gold line on top */
.stay-item { border-top: 3px solid var(--gold); padding-top: 18px; }
/* Facility icon */
.stay-item svg { width: 44px; height: 44px; fill: none; stroke: var(--gold-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* Small dots in the car icon */
.stay-item svg circle { fill: var(--gold-text); stroke: none; }
/* Facility name */
.stay-item h3 { font-size: 1.5rem; margin-top: 10px; }
/* Facility description */
.stay-item p { color: var(--muted); max-width: 36ch; }
/* Stack the facilities on small screens */
@media (max-width: 760px) { .stay-grid { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */

/* Text and form side by side */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
/* Explanation text width */
.book-text p { max-width: 44ch; }
/* Small print */
.small { font-size: 0.875rem; color: var(--muted); }
/* The form box */
.book-form {
  /* Raised box with a gold top edge */
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-lg);
  /* Inner space */
  padding: clamp(20px, 3vw, 32px);
  /* Stack fields */
  display: flex; flex-direction: column;
  /* Soft shadow */
  box-shadow: var(--shadow);
}
/* Field labels */
.book-form label { font-weight: 700; font-size: 0.9375rem; margin: 14px 0 6px; }
/* First label has no gap above */
.book-form > label:first-child { margin-top: 0; }
/* Text boxes, dates and the drop-down */
.book-form input:not([type="checkbox"]), .book-form select {
  /* Full width */
  width: 100%; min-height: 48px;
  /* Allow date boxes to shrink below the phone's built-in minimum width, so they never push the page wider than the screen */
  min-width: 0; max-width: 100%;
  /* Text style */
  font: 500 1rem var(--font-body); color: var(--ink);
  /* Look */
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  /* Smooth border and glow */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Gold border and soft gold ring when a field is active */
.book-form input:focus, .book-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); outline: none; }
/* Red border on fields with a problem */
.book-form [aria-invalid="true"] { border-color: var(--error); }
/* Two date fields side by side */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
/* Each half of the date row may shrink instead of overflowing */
.row > div { min-width: 0; }
/* Labels inside the date row keep normal spacing */
.row label { display: block; }
/* Tick box row */
.book-form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 18px; cursor: pointer; }
/* Bigger tick box in gold */
.check input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
/* Running cost estimate */
.estimate { margin: 16px 0 0; color: var(--gold-text); font-weight: 700; min-height: 1.6em; }
/* A new estimate pops in gently */
.estimate.bump { animation: bump 0.4s var(--ease); }
/* Error message */
.form-error { margin: 4px 0 12px; color: var(--error); font-weight: 500; min-height: 1.6em; }
/* Hide the estimate and error lines completely while they have no text, so there's no empty gap */
.estimate:empty, .form-error:empty { min-height: 0; margin: 0; }
/* Keep space above the send button */
.book-form .btn-wa { margin-top: 16px; }
/* Stack text and form on smaller screens */
@media (max-width: 860px) { .book { grid-template-columns: minmax(0, 1fr); } }
/* Stack the two dates on phones, where side-by-side date boxes are too cramped to read */
@media (max-width: 480px) { .row { grid-template-columns: minmax(0, 1fr); } }
/* Grow slightly and settle back */
@keyframes bump { 0% { transform: scale(0.97); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* ---------- Questions ---------- */

/* Each question */
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
/* Line under the last question */
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
/* The question line you tap */
.faq summary {
  /* Bigger, tappable question text */
  cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.0625rem;
  /* Room for the plus sign */
  position: relative; list-style: none;
  /* Smooth colour change */
  transition: color 0.2s ease;
}
/* Question turns gold when hovered */
.faq summary:hover { color: var(--gold-text); }
/* Hide the default triangle in Safari */
.faq summary::-webkit-details-marker { display: none; }
/* Plus sign on the right */
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--gold-text); transition: transform 0.3s var(--ease); }
/* Turn the plus into a cross when open */
.faq details[open] summary::after { transform: rotate(45deg); }
/* Answer text */
.faq details p { color: var(--muted); padding-bottom: 8px; max-width: 64ch; }
/* The answer slides down softly when opened */
.faq details[open] p { animation: drop-in 0.35s var(--ease); }

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

/* Footer layout */
.footer {
  /* Items in a row that wraps */
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-start;
  /* Limit width */
  max-width: var(--max); margin: 0 auto;
  /* Space, with extra at the bottom so the floating button doesn't cover text */
  padding: 32px var(--gutter) 96px;
  /* Line above */
  border-top: 1px solid var(--line);
  /* Text style */
  color: var(--muted); font-size: 0.9375rem;
}
/* Hotel name in the footer */
.footer-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-right: auto; line-height: 1.3; }
/* Area under the name */
.footer-name span { font-family: var(--font-body); font-size: 0.9375rem; color: var(--muted); }

/* Social media buttons in a row that wraps */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
/* Each social button: a pill with an icon and a word */
.social-btn {
  /* Icon and word in a row */
  display: inline-flex; align-items: center; gap: 8px;
  /* Tap size */
  min-height: 44px; padding: 8px 16px 8px 12px;
  /* Pill look */
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  /* Text */
  color: var(--ink); text-decoration: none; font-weight: 700;
  /* Smooth hover */
  transition: transform 0.25s var(--ease), border-color 0.2s ease, background-color 0.2s ease;
}
/* Lift and gold edge on hover */
.social-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
/* Icon size and colour */
.social-btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
/* The Instagram icon is drawn with lines, not filled */
.social-btn svg.outline { fill: none; stroke: currentColor; stroke-width: 2; }
/* WhatsApp is the main one, so it gets its green */
.social-wa { background: var(--wa); border-color: var(--wa); color: #FFFFFF; }
/* Keep the green when hovered */
.social-wa:hover { border-color: var(--wa); background: color-mix(in srgb, var(--wa) 85%, #000); }

/* ---------- Floating WhatsApp button ---------- */

/* Round green button in the bottom-left corner (the AI chat button sits in the bottom-right) */
.wa-float {
  /* Stay fixed in the bottom-left corner, clear of phone notches, level with the chat button on the right */
  position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(11px, env(safe-area-inset-bottom)); z-index: 30;
  /* Round button */
  width: 58px; height: 58px; border-radius: 50%;
  /* Centre the logo */
  display: grid; place-items: center;
  /* Colours and shadow */
  background: var(--wa); color: #FFFFFF; box-shadow: 0 6px 18px color-mix(in srgb, var(--wa) 45%, transparent);
  /* Smooth press, and a smooth fade when it tucks away or comes back */
  transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0.25s;
}
/* Grow slightly on hover */
.wa-float:hover { transform: scale(1.06); }
/* Tucked away (shrunk, faded and not clickable) while the hero's own WhatsApp button is on screen */
.wa-float.tucked { opacity: 0; visibility: hidden; transform: scale(0.6) translateY(16px); pointer-events: none; }
/* Logo size */
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
/* A ring that ripples out from the button a few times after the page loads, to show it's there */
@media (prefers-reduced-motion: no-preference) {
  /* The ring itself */
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s 2s ease-out 3; opacity: 0; }
}
/* Grow the ring and fade it out */
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Hero on smaller screens ---------- */

/* Tablets and phones: stack the hero */
@media (max-width: 860px) {
  /* One column */
  .hero { grid-template-columns: 1fr; }
  /* Heading can use more width */
  .hero h1 { max-width: 18ch; }
  /* Drawing not too large */
  .hero-art { max-width: 560px; }
  /* Facts in two columns */
  .facts dl { grid-template-columns: 1fr 1fr; }
}
/* Phones: full-width hero buttons */
@media (max-width: 480px) {
  /* Each button takes the full width */
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Privacy page ---------- */

/* Simple readable column for the privacy page */
.page { max-width: 68ch; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 96px; }
/* Privacy page heading size */
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
/* Privacy page subheadings */
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Small phones have a taller header (switch on its own line), so leave more room when jumping to a section */
@media (max-width: 480px) { .rooms, .stay, .book, .faq { scroll-margin-top: 110px; } }

/* ---------- Less motion ---------- */

/* For people who prefer less motion: no smooth scrolling, no animations, no slides */
@media (prefers-reduced-motion: reduce) {
  /* Jump straight to sections */
  html { scroll-behavior: auto; }
  /* Stop all animations and transitions */
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Polish added during the screen-size review ---------- */

/* Tablets (hero stacked but screen still wide): centre the hero so the drawing doesn't leave an empty strip on the right */
@media (min-width: 561px) and (max-width: 860px) {
  /* Centre all the hero text */
  .hero-text { text-align: center; }
  /* Centre the heading and intro paragraph blocks themselves */
  .hero h1, .hero .lede { margin-inline: auto; }
  /* Centre the two buttons */
  .hero-actions { justify-content: center; }
  /* Centre the drawing, keeping it at its full allowed width (auto margins would otherwise shrink it) */
  .hero-art { margin-inline: auto; width: 100%; }
  /* Centre the small caption under the drawing */
  .hero-art figcaption { text-align: center; }
}

/* Laptops and desktops: the booking text stays in view beside the tall form while you scroll, instead of leaving an empty gap */
@media (min-width: 861px) {
  /* Stick just below the header */
  .book-text { position: sticky; top: 96px; }
}

/* Small note box at the bottom of the screen (for example "this is a sample website") */
#site-note {
  /* Fixed near the bottom, centred, clear of the corner buttons */
  position: fixed; left: 50%; bottom: 84px; z-index: 40;
  /* Never wider than the screen */
  width: max-content; max-width: min(420px, calc(100vw - 32px));
  /* Look: dark pill with light text in both themes */
  background: #1b1f3b; color: #fff; padding: 10px 16px; border-radius: 14px;
  /* Text and shadow */
  font: 500 0.92rem/1.4 var(--font-body); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  /* Hidden until shown, slightly lower */
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  /* Smooth fade and slide */
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
/* Visible state */
#site-note.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
