/* ============================================================================
   REVALHOME — STYLES
   Boutique aparthotel brand · Tallinn
   Palette: warm cream, deep espresso ink, terracotta accent (Old Town roofs)
   ========================================================================== */

:root {
  /* Revalhome brand palette (Nordic teal + linen + warm amber CTA) */
  --cream: #f6f0e6;      /* Linen — page background */
  --cream-2: #ece2d2;    /* Sand — alt surface */
  --ink: #143b42;        /* Reval Ink — deep teal, text & dark sections */
  --ink-soft: #3a565b;   /* muted teal for body copy */
  --muted: #6e7f7c;      /* Stone — muted text */
  --line: #ddd2bf;       /* hairlines */
  --clay: #dc8a3c;       /* Harbor Amber — accent / CTA */
  --clay-dark: #c0712a;  /* amber hover */
  --gold-2: #b89968;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(33,27,22,.06);
  --shadow-md: 0 18px 50px rgba(33,27,22,.14);
  --shadow-lg: 0 40px 90px rgba(33,27,22,.20);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* eyebrow / small caps label */
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--clay);
}

/* section heading block */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.05;
  letter-spacing: -.01em; margin: 14px 0 12px;
}
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: .98rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 26px rgba(194,104,60,.35); }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(194,104,60,.45); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); border: 1.5px solid rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(247,243,236,.9);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em;
  color: #fff; transition: color .4s var(--ease); display: inline-flex; align-items: baseline; gap: 0;
}
.logo .logo-home { color: var(--clay); }
.scrolled .logo { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.92);
  transition: color .3s, opacity .3s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--clay); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.scrolled .nav-links a { color: var(--ink-soft); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* language switcher */
.lang { display: flex; align-items: center; gap: 2px; border-radius: 100px; padding: 4px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.scrolled .lang { background: var(--cream-2); }
.lang button, .lang a {
  font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 100px; cursor: pointer;
  color: rgba(255,255,255,.85); transition: all .25s; text-transform: uppercase; letter-spacing: .04em;
}
.scrolled .lang button, .scrolled .lang a { color: var(--muted); }
.lang button.active, .lang a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.scrolled .lang button.active, .scrolled .lang a.active { background: var(--ink); color: var(--cream); }

.nav-cta { padding: 11px 22px; }

/* burger */
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: all .3s var(--ease); }
.scrolled .burger span { background: var(--ink); }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px;
  transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; font-weight: 500; padding: 8px 0; opacity: 0; transform: translateY(20px); }
body.menu-open .mobile-menu a { animation: fadeUp .5s var(--ease) forwards; }
body.menu-open .mobile-menu a:nth-child(1){ animation-delay:.12s }
body.menu-open .mobile-menu a:nth-child(2){ animation-delay:.18s }
body.menu-open .mobile-menu a:nth-child(3){ animation-delay:.24s }
body.menu-open .mobile-menu a:nth-child(4){ animation-delay:.30s }
body.menu-open .mobile-menu a:nth-child(5){ animation-delay:.36s }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.25) 35%, rgba(20,15,12,.7) 100%);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: #f0c9b3; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin: 18px 0 20px;
  text-wrap: balance;
}
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-anim > * { opacity: 0; transform: translateY(28px); animation: fadeUp .9s var(--ease) forwards; }
.hero-anim > *:nth-child(1){ animation-delay:.2s }
.hero-anim > *:nth-child(2){ animation-delay:.35s }
.hero-anim > *:nth-child(3){ animation-delay:.5s }
.hero-anim > *:nth-child(4){ animation-delay:.65s }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .line { width: 1px; height: 40px; background: rgba(255,255,255,.5); animation: scrollLine 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100%{ transform: scaleY(.3); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================================
   SEARCH / BOOKING BAR
   ========================================================================== */
/* search section sits below the hero (no overlap onto the image) */
.search-section {
  padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 40px);
  margin-top: 0; position: relative; z-index: 6;
}
.search-bar {
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 14px; display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr auto; gap: 8px;
  align-items: end; margin-top: 0; position: relative; z-index: 5;
}
.search-field { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px; border-radius: var(--r-sm); transition: background .25s; }
.search-field:hover { background: var(--cream); }
.search-field label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.search-field select, .search-field input {
  border: none; background: transparent; font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--ink); width: 100%; outline: none; padding: 2px 0;
}
.search-field input::-webkit-calendar-picker-indicator { opacity:.5; cursor:pointer; }
.search-bar .btn { height: 100%; }

/* custom themed select (Stay / Guests) — matches the calendar */
.rh-select { position: relative; }
.rh-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rh-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: transparent; border: 0; padding: 2px 0; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left;
}
.rh-select-btn .rh-chev { flex: 0 0 auto; color: var(--clay); transition: transform .2s var(--ease); }
.rh-select.open .rh-select-btn .rh-chev { transform: rotate(180deg); }
.rh-select-menu {
  position: absolute; top: calc(100% + 12px); left: -10px; min-width: calc(100% + 20px);
  width: max-content; max-width: 240px; max-height: 280px; overflow-y: auto;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}
.rh-select.open .rh-select-menu { opacity: 1; visibility: visible; transform: none; }
.rh-option {
  padding: 9px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500;
  color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.rh-option:hover { background: var(--cream-2); }
.rh-option.sel { background: var(--clay); color: #fff; }

/* floating search card variant inside hero */
.hero .search-bar { box-shadow: var(--shadow-lg); }

/* ============================================================================
   WHY DIRECT (value props)
   ========================================================================== */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: var(--white); border-radius: var(--r-md); padding: 34px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream-2); color: var(--clay);
  display: grid; place-items: center; margin-bottom: 20px; }
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: .96rem; }

/* ============================================================================
   STAYS / PROPERTIES
   ========================================================================== */
.stays { background: var(--cream-2); }
.stay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.stay-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stay-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stay-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.stay-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.stay-card:hover .stay-media img { transform: scale(1.07); }
.stay-badge {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 100px;
}
.stay-price-tag {
  position: absolute; bottom: 16px; right: 16px; background: rgba(33,27,22,.82); backdrop-filter: blur(6px);
  color: #fff; padding: 9px 15px; border-radius: 100px; font-size: .85rem;
}
.stay-price-tag b { font-size: 1.05rem; }
.stay-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.stay-loc { display: flex; align-items: center; gap: 6px; color: var(--clay); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.stay-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; }
.stay-tagline { color: var(--ink); font-style: italic; font-family: var(--serif); font-size: 1.05rem; margin: 4px 0 12px; opacity: .85; }
.stay-desc { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; flex: 1; }
.stay-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-size: .8rem; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 100px; }
.stay-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stay-foot .price small { color: var(--muted); font-size: .8rem; display: block; }
.stay-foot .price b { font-family: var(--serif); font-size: 1.5rem; }

/* ============================================================================
   ABOUT (split)
   ========================================================================== */
.about { background: var(--ink); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about .eyebrow { color: var(--gold-2); }
.about h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem,4vw,3rem); line-height: 1.08; margin: 14px 0 20px; }
.about p { color: rgba(247,243,236,.82); font-size: 1.1rem; }
.about-stats { display: flex; gap: 40px; margin-top: 34px; }
.about-stats .num { font-family: var(--serif); font-size: 2.4rem; color: #fff; line-height: 1; }
.about-stats .lbl { font-size: .85rem; color: rgba(247,243,236,.6); margin-top: 6px; }
.about-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================================
   LOCATION
   ========================================================================== */
.location { background: var(--cream); }
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 12px; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.loc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.loc-map { aspect-ratio: 16/9; background: var(--cream-2); }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-info { padding: 18px 22px 20px; }
.loc-info h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.loc-tag { display: block; color: var(--clay); font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; margin: 5px 0 12px; }
.loc-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.loc-link:hover { color: var(--clay); }
.loc-addr { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .94rem; font-weight: 500; margin-top: 6px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.loc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; min-height: 44px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; line-height: 1;
  border: 1px solid var(--line); color: var(--ink); background: var(--cream-2);
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.loc-btn:hover { background: #fff; border-color: var(--clay); color: var(--clay); transform: translateY(-1px); }
.loc-btn--dir { background: var(--clay); border-color: var(--clay); color: #fff; }
.loc-btn--dir:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.loc-btn--dir svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   REVIEWS
   ========================================================================== */
.reviews { background: var(--cream-2); }
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--r-md); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.review-score { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 100px; padding: 6px 14px; margin-bottom: 16px; }
.review-score b { color: var(--clay); font-size: 1.05rem; }
.review-stars { color: var(--clay); letter-spacing: 2px; }
.review-card p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.review-who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.review-who .flag { font-size: 1.3rem; }

/* ============================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--cream); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.faq-q .ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: all .3s var(--ease); font-size: 1.2rem; color: var(--clay); }
.faq-item.open .faq-q .ic { background: var(--clay); color: #fff; border-color: var(--clay); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 26px; color: var(--ink-soft); font-size: 1.02rem; }

/* ============================================================================
   CONTACT / CTA
   ========================================================================== */
.contact { background: var(--clay); color: #fff; text-align: center; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem,4.5vw,3.2rem); margin-bottom: 14px; }
.contact p { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 540px; margin: 0 auto 30px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact .btn-primary { background: #fff; color: var(--clay); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.contact .btn-primary:hover { background: var(--ink); color: #fff; }
.contact .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--clay); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(247,243,236,.7); padding: 70px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(247,243,236,.12); }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .85rem; color: rgba(247,243,236,.5); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(247,243,236,.2);
  display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

/* ============================================================================
   MODAL (property rooms / booking)
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,15,12,.6); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s; padding: 0; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--cream); width: 100%; max-width: 920px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(40px); transition: transform .45s var(--ease); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-hero { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(20,15,12,.65)); }
.modal-hero-text { position: absolute; left: 28px; bottom: 22px; color: #fff; }
.modal-hero-text h3 { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 500; }
.modal-hero-text .loc { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.4rem; display: grid; place-items: center; transition: transform .25s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-body { padding: 30px 28px 36px; }
.modal-body > p.lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 26px; }
.room-list { display: flex; flex-direction: column; gap: 16px; }
.room { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; align-items: center; padding-right: 20px; transition: box-shadow .3s; }
.room:hover { box-shadow: var(--shadow-md); }
.room-img { aspect-ratio: 1; height: 100%; min-height: 130px; }
.room-img img { width: 100%; height: 100%; object-fit: cover; }
.room-info h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.room-info p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 8px; }
.room-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-cta { text-align: right; }
.room-cta .price { font-family: var(--serif); font-size: 1.4rem; }
.room-cta .price small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.room-cta .btn { margin-top: 8px; }

/* ============================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s }
.reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { aspect-ratio: 16/10; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .lang, .nav-right .nav-cta { display: none; }
  .burger { display: block; }
  .nav-right { gap: 8px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: 1 / -1; }
  .stay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .search-bar { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .room { grid-template-columns: 1fr; padding-right: 0; }
  .room-img { aspect-ratio: 16/9; min-height: 0; }
  .room-info { padding: 16px 18px 0; }
  .room-cta { text-align: left; padding: 0 18px 18px; display: flex; align-items: center; justify-content: space-between; }
  .room-cta .btn { margin-top: 0; }
  .about-stats { gap: 26px; }
  .modal-hero-text { left: 18px; }
  .modal-body { padding: 24px 18px 30px; }
}

/* ---------- rating + gallery (replaces price UI) ---------- */
.stay-rating { position: absolute; bottom: 16px; right: 16px; background: rgba(20,59,66,.88);
  backdrop-filter: blur(6px); color: #fff; padding: 8px 14px; border-radius: 100px;
  font-size: .92rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.stay-rating small { font-weight: 500; opacity: .85; font-size: .72rem; }
.stay-rating-foot { display: flex; align-items: center; gap: 11px; }
.stay-rating-foot b { font-family: var(--serif); font-size: 1.8rem; color: var(--clay); line-height: 1; }
.stay-rating-foot span { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.modal-gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 22px; }
.modal-gallery .thumb { flex: 0 0 auto; width: 96px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; transition: border-color .2s, transform .2s; }
.modal-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-gallery .thumb.active { border-color: var(--clay); }
.modal-gallery .thumb:hover { transform: translateY(-2px); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--ink-soft);
  padding: 14px 16px; background: var(--cream); border-radius: var(--r-sm); }
.modal-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================================
   BOOKING (Beds24) MODAL — keeps the guest on revalhome.ee
   ========================================================================== */
.book-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,15,12,.62); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  display: flex; align-items: center; justify-content: center; padding: clamp(8px, 2vw, 28px);
}
.book-overlay.open { opacity: 1; visibility: visible; }
.book-dialog {
  background: var(--cream); width: 100%; max-width: 960px; height: min(92vh, 900px);
  border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.99); transition: transform .35s var(--ease);
}
.book-overlay.open .book-dialog { transform: translateY(0) scale(1); }
.book-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; background: var(--ink); color: #fff; flex: 0 0 auto;
}
.book-title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.book-title .logo-home { color: var(--clay); }
.book-head-actions { display: flex; align-items: center; gap: 16px; }
.book-newtab { color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.book-newtab:hover { color: #fff; }
.book-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: background .25s, transform .25s;
}
.book-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.book-frame-wrap { position: relative; flex: 1 1 auto; background: var(--cream); }
.book-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.book-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: var(--ink-soft); font-weight: 600;
  background: var(--cream); transition: opacity .3s; pointer-events: none;
}
.book-loading.hide { opacity: 0; }
.book-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--clay);
  animation: bookSpin .8s linear infinite;
}
@keyframes bookSpin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .book-overlay { padding: 0; }
  .book-dialog { height: 100vh; height: 100svh; max-width: none; border-radius: 0; }
}

/* ============================================================================
   THEMED CALENDAR (flatpickr) — matches the Revalhome look
   ========================================================================== */
.flatpickr-calendar {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  font-family: var(--sans); padding-bottom: 6px;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { border-bottom-color: var(--line); }
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--cream); }
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { border-top-color: var(--line); }
.flatpickr-calendar.arrowBottom::after { border-top-color: var(--cream); }
.flatpickr-months { padding: 8px 6px 4px; }
.flatpickr-months .flatpickr-month { color: var(--ink); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.flatpickr-current-month .flatpickr-monthDropdown-months:hover { background: var(--cream-2); }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--ink); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--clay); }
span.flatpickr-weekday { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.flatpickr-day { color: var(--ink); border-radius: 10px; font-weight: 500; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--cream-2); border-color: var(--cream-2); }
.flatpickr-day.today { border-color: var(--clay); }
.flatpickr-day.today:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
  background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: none;
}
.flatpickr-day.inRange {
  background: var(--cream-2); border-color: var(--cream-2);
  box-shadow: -5px 0 0 var(--cream-2), 5px 0 0 var(--cream-2);
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(110,127,124,.45); }
.flatpickr-day.flatpickr-disabled { text-decoration: line-through; }

/* ============================================================================
   HERO TRUST BAR · AMENITIES · WHATSAPP
   ========================================================================== */
.hero-trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; color: rgba(255,255,255,.92); font-size: .95rem; font-weight: 500;
}
.hero-trust .ht-rating { font-weight: 700; }
.hero-trust .ht-star { color: var(--clay); }
.hero-trust .ht-max { opacity: .7; font-weight: 500; }
.hero-trust .ht-sep { opacity: .5; }

.amenities { padding: clamp(50px,7vw,90px) 0; background: var(--cream); }
.ame-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px;
}
.ame-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 18px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ame-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clay); }
.ame-item svg { width: 30px; height: 30px; color: var(--clay); }
.ame-item span { font-weight: 600; font-size: .98rem; color: var(--ink); line-height: 1.3; }
@media (max-width: 860px) { .ame-grid { grid-template-columns: repeat(2, 1fr); } }

/* WhatsApp button (contact + floating) */
.btn-wa { background: #25D366; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn-wa svg { width: 20px; height: 20px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.55); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 620px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
