/* ============================================================
   J's Place Baguio: Design tokens
   Palette drawn from the properties themselves: warm plaster
   walls, pine forest outside Baguio's windows, the wood grain
   and woven rattan used throughout the interiors.
   ============================================================ */

/* Fonts are hosted on this site (all free under the SIL Open Font License). The ₱ sign lives in the latin-ext files. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/playfair-display-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F6F2EA;
  --paper-deep: #EFE9DD;
  --ink: #262420;
  --ink-soft: #55524A;
  --pine: #3C4A34;
  --pine-deep: #232B1E;
  --wood: #B98F5A;
  --wood-soft: #E4D3B6;
  --clay: #A85C3E;
  --mist: #C9CFC6;
  --line: rgba(38, 36, 32, 0.14);

  --serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;   /* headings (stand-in for Airbnb Cereal) */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;               /* body, navigation, buttons, prices */
  --editorial: 'Playfair Display', Georgia, serif;                               /* special editorial touches */

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

/* ---------- slat motif ----------
   Recurring visual device echoing the wooden lattice screen
   on the Legarda balcony. Used as dividers & decoration. */
.slats {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 22px;
}
.slats span {
  width: 3px;
  background: var(--wood);
  border-radius: 1px;
}
.slats.dark span { background: var(--wood-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.2px;
}
.brand span { color: var(--clay); }
.nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
}
.nav a {
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 84vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,43,30,.86) 0%, rgba(35,43,30,.6) 45%, rgba(35,43,30,.18) 75%, rgba(35,43,30,.05) 100%);
}
.hero-content {
  position: relative;
  color: var(--paper);
  padding-bottom: 64px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 15px;
  color: var(--wood-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  color: var(--paper);
}
.hero p {
  color: var(--wood-soft);
  font-size: 18px;
  margin-top: 18px;
  max-width: 46ch;
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

.intro {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 32px;
}
.intro .rule { background: var(--wood); border-radius: 2px; }
.intro p { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- property cards ---------- */
.homes { display: grid; gap: 28px; }
.home-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
}
.home-card.reverse { grid-template-columns: 1fr 1.1fr; }
.home-card.reverse .home-media { order: 2; }
.home-media { position: relative; min-height: 340px; }
.home-media img { width: 100%; height: 100%; object-fit: cover; }
.home-media.placeholder {
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-tag {
  font-size: 13px;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 12px;
}
.home-body h3 { font-size: 30px; margin-bottom: 10px; }
.home-meta {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.home-body p { color: var(--ink-soft); }
.home-price {
  font-family: var(--serif);
  font-size: 22px;
  margin: 18px 0 22px;
  color: var(--ink);
}
.home-price small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
}
.badge-soon {
  display: inline-block;
  padding: 5px 12px;
  background: var(--mist);
  color: var(--pine-deep);
  font-size: 13px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 14px;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { position: relative; padding-left: 44px; }
.step-num {
  position: absolute; left: 0; top: 2px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--clay);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- footer ---------- */
footer {
  background: var(--pine-deep);
  color: var(--wood-soft);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
footer .brand { color: var(--paper); }
.footer-col h4, .footer-pay h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; color: var(--wood-soft); font-size: 15px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(228,211,182,0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(228,211,182,0.6);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   Property detail page
   ============================================================ */
.prop-header { padding-top: 28px; }
.back-link {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.prop-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.prop-address { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }

.gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
  height: 480px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main { position: relative; height: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.gallery-side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-more {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(38,36,32,.78);
  color: var(--paper);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 20px;
  cursor: pointer;
}
.filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 56px;
}
.filmstrip img {
  width: 130px; height: 88px; object-fit: cover;
  border-radius: 4px; cursor: pointer; flex-shrink: 0;
  opacity: .8; transition: opacity .2s;
}
.filmstrip img:hover { opacity: 1; }

.prop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
.prop-main > * + *, .prop-wide > * + * { margin-top: 52px; }
.prop-main h2, .prop-wide h2 { font-size: 24px; margin-bottom: 16px; }

.quick-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-fact { font-size: 15px; }
.quick-fact strong { display: block; font-family: var(--serif); font-size: 20px; }
.quick-fact span { color: var(--ink-soft); font-size: 13px; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.amenity .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wood); flex-shrink: 0;
}

.bed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bed-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
.bed-card h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.bed-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.nearby-group { margin-bottom: 22px; }
.nearby-group h4 {
  font-size: 14px; font-weight: 600; color: var(--pine);
  margin-bottom: 10px;
}
.nearby-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.nearby-row span:last-child { color: var(--ink-soft); font-size: 14px; }

.rules-list { display: grid; gap: 14px; }
.rule-row { display: grid; grid-template-columns: 160px 1fr; gap: 18px; font-size: 15px; }
.rule-row strong { color: var(--ink-soft); font-weight: 500; font-size: 14px; }

.map-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- booking widget ---------- */
.booking-card {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(38,36,32,0.06);
}
.booking-price {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 4px;
}
.booking-price small { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.booking-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }

.date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.date-field {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.date-field:last-child { border-right: none; }
.date-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 3px; }
.date-field .val { font-size: 14px; font-weight: 500; }

.guest-field {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.guest-field label { font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink); background: none; cursor: pointer;
  font-size: 15px; line-height: 1;
}
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

.price-breakdown {
  font-size: 14px;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-soft); }
.price-row.total { color: var(--ink); font-weight: 600; font-size: 16px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }

.booking-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.booking-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ---------- calendar popover ---------- */
.calendar-pop {
  display: none;
  position: absolute;
  z-index: 30;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(38,36,32,0.14);
  padding: 20px;
  width: 320px;
  margin-top: 8px;
}
.calendar-pop.open { display: block; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head button { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.cal-head span { font-family: var(--serif); font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: var(--ink-soft); padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 50%; cursor: pointer;
}
.cal-day:hover:not(.blocked):not(.empty) { background: var(--paper-deep); }
.cal-day.blocked { color: var(--mist); text-decoration: line-through; cursor: not-allowed; }
.cal-day.empty { visibility: hidden; }
.cal-day.selected { background: var(--pine); color: var(--paper); }
.cal-day.in-range { background: var(--wood-soft); }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.avail { background: var(--pine); }
.legend-dot.booked { background: var(--mist); }

/* ---------- lightbox ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(35,43,30,0.94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--paper); font-size: 32px; cursor: pointer; background: none; border: none;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--paper); font-size: 40px; cursor: pointer;
  padding: 12px;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ---------- placeholder page ---------- */
.placeholder-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper-deep);
}
.placeholder-hero .inner { max-width: 520px; }
.placeholder-hero p { color: var(--ink-soft); margin: 18px auto 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--pine-deep);
  color: var(--paper);
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px 32px; gap: 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; font-size: 22px; cursor: pointer; }
  .home-card, .home-card.reverse { grid-template-columns: 1fr; }
  .home-card.reverse .home-media { order: 0; }
  .home-media { min-height: 240px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .prop-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-side { display: none; }
  .amenity-grid { grid-template-columns: 1fr; }
  .bed-cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
}

/* ---------- booking modal ---------- */
.modal { display:none; position:fixed; inset:0; z-index:150; background:rgba(35,43,30,.6); align-items:center; justify-content:center; padding:20px; }
.modal.open { display:flex; }
.modal-box { position:relative; background:white; border-radius:8px; padding:32px; width:100%; max-width:460px; max-height:92vh; overflow-y:auto; }
.modal-box h3 { font-size:24px; margin-bottom:6px; }
.modal-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:28px; cursor:pointer; color:var(--ink-soft); }
.modal-sub { color:var(--ink-soft); font-size:14px; margin-bottom:20px; }
.modal-box label { display:block; font-size:14px; font-weight:500; margin-bottom:14px; }
.modal-box label small { color:var(--ink-soft); font-weight:400; }
.modal-box input { display:block; width:100%; margin-top:6px; padding:12px 14px; border:1px solid var(--line); border-radius:6px; font-family:var(--sans); font-size:15px; background:var(--paper); }
.form-error { color:var(--clay); font-size:13px; min-height:18px; margin-bottom:8px; }
.pay-box { background:var(--paper-deep); border-radius:6px; padding:16px 18px; margin-bottom:18px; }
.pay-box div { display:flex; justify-content:space-between; align-items:center; padding:5px 0; font-size:14px; }
.pay-box strong { font-family:var(--serif); font-size:20px; }
.pay-steps { padding-left:20px; margin:0 0 20px; font-size:14px; color:var(--ink-soft); }
.pay-steps li { margin-bottom:6px; }

.cal-note { font-size:12px; color:var(--ink-soft); margin:10px 0 0; }

/* ---------- calendar with nightly prices ---------- */
.calendar-pop { width: 352px; max-width: calc(100vw - 32px); }
.cal-day { aspect-ratio: auto; height: 46px; flex-direction: column; gap: 1px; border-radius: 6px; line-height: 1.1; }
.cal-price { font-size: 10px; color: var(--ink-soft); }
.cal-day.selected .cal-price { color: var(--wood-soft); }

/* ---------- Messenger button ---------- */
.msg-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pine); color: var(--paper);
  padding: 12px 18px; border-radius: 28px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(35, 43, 30, 0.28);
}
.msg-fab:hover { background: var(--pine-deep); }
.msg-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 880px) { .msg-fab { right: 14px; bottom: 14px; padding: 11px 16px; } }
@media (max-width: 880px) {
  .calendar-pop { width: 100%; max-width: none; padding: 14px; }
  .cal-day { height: 44px; }
}

.hero-content { text-shadow: 0 1px 12px rgba(35,43,30,.35); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }

/* ---------- owner page ---------- */
.owner-wrap { max-width: 640px; padding-top: 28px; padding-bottom: 80px; }
.owner-signout { padding: 8px 16px; font-size: 14px; }
.owner-card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.owner-title { font-size: clamp(26px, 5vw, 34px); margin-bottom: 8px; }
.owner-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.owner-h2 { font-size: 22px; margin: 36px 0 14px; }
.owner-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.owner-label input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; background: var(--paper); font-family: var(--sans); }
.owner-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.owner-warn { background: #F6E3DA; color: #7A3A22; border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; max-width: none; }
.owner-status { color: var(--ink-soft); font-size: 14px; text-align: center; margin-top: 20px; }
.owner-cal { padding: 16px; }
.owner-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.owner-grid .dow { font-size: 11px; color: var(--ink-soft); text-align: center; padding-bottom: 6px; }
.oc-day { height: 52px; border: 1px solid var(--line); border-radius: 6px; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--sans); color: var(--ink); cursor: pointer; padding: 0; }
.oc-num { font-size: 14px; }
.oc-lbl { font-size: 9px; letter-spacing: .02em; }
.oc-closed { background: repeating-linear-gradient(45deg, #F3E4DC, #F3E4DC 5px, #FBF3EF 5px, #FBF3EF 10px); color: var(--clay); border-color: #E2C3B3; }
.oc-agoda { background: var(--mist); color: var(--ink-soft); border-color: transparent; cursor: default; }
.oc-direct { background: var(--pine); color: var(--paper); border-color: transparent; cursor: default; }
.oc-past { opacity: .35; cursor: default; }
.owner-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.owner-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.sw-open { background: white; }
.sw-closed { background: repeating-linear-gradient(45deg, #F3E4DC, #F3E4DC 2px, #FBF3EF 2px, #FBF3EF 4px); border-color: #E2C3B3; }
.sw-agoda { background: var(--mist); border-color: transparent; }
.sw-direct { background: var(--pine); border-color: transparent; }
.owner-booking { margin-bottom: 12px; }
.ob-dates { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.ob-meta, .ob-ref { color: var(--ink-soft); font-size: 14px; }
.ob-guest { font-weight: 600; margin-top: 10px; }
.ob-contact { font-size: 14px; margin: 2px 0 6px; }
.ob-contact a { color: var(--pine); text-decoration: underline; }
.owner-wrap section { padding: 0; }

.ob-cancel { margin-top: 12px; padding: 9px 16px; font-size: 14px; border-color: var(--clay); color: var(--clay); }
.ob-cancel:hover { background: var(--clay); color: white; }
.ob-cancel-armed { background: var(--clay); color: white; }

/* ============================================================
   Typography update: Plus Jakarta Sans headings, Inter body,
   Playfair Display for editorial touches
   ============================================================ */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.08; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.home-body h3 { font-size: clamp(20px, 2vw, 24px); }
.step h3 { font-size: 20px; }
.prop-main h2, .prop-wide h2 { font-size: 24px; }
.nav { font-size: 15px; }
.btn { font-size: 15px; }

/* Editorial: brand wordmark, intro statement, step numbers */
.brand { font-family: var(--editorial); font-weight: 600; letter-spacing: 0; }
.intro p { font-family: var(--editorial); font-weight: 400; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--ink); }
.step-num { font-family: var(--editorial); }

/* Prices and numbers in Inter */
.home-price, .booking-price, .quick-fact strong, .pay-box strong { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.home-price { font-size: 22px; }
.booking-price { font-size: 26px; }

.bed-card h4 { margin: 0 0 8px; }

/* ---------- floating buttons: Book now (main) + Message us ---------- */
.fab-row {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; gap: 10px; align-items: center;
}
.fab-row .msg-fab { position: static; box-shadow: 0 8px 22px rgba(35, 43, 30, 0.18); background: var(--paper); color: var(--pine); border: 1.5px solid var(--pine); }
.fab-row .msg-fab:hover { background: var(--pine); color: var(--paper); }
.book-fab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pine); color: var(--paper);
  padding: 12px 20px; border-radius: 28px; border: 1.5px solid var(--pine);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(35, 43, 30, 0.28);
  transition: opacity .2s ease, transform .2s ease;
}
.book-fab:hover { background: var(--pine-deep); }
.book-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.book-fab.fab-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
body.cal-open .fab-row { display: none; }
@media (max-width: 880px) {
  .fab-row { left: 14px; right: 14px; bottom: 14px; justify-content: flex-end; }
  .book-fab { flex: 1; justify-content: center; padding: 13px 16px; max-width: 260px; }
  .fab-row .msg-fab { padding: 12px 16px; }
}
@media (max-width: 380px) { .fab-row .msg-fab { font-size: 0; gap: 0; padding: 12px 14px; } .fab-row .msg-fab svg { width: 20px; height: 20px; } }
footer { padding-bottom: 96px; }

/* ---------- touch-friendly sizes (phones, tablets, foldables) ----------
   Apple and Google recommend tap targets of about 44px. */
.nav-toggle { width: 44px; height: 44px; display: none; align-items: center; justify-content: center; margin-right: -10px; font-size: 24px; color: var(--ink); }
@media (max-width: 880px) { .nav-toggle { display: inline-flex; } .nav a { padding: 10px 0; } }
.brand { display: inline-flex; align-items: center; gap: 0.28em; min-height: 44px; }
.back-link { min-height: 40px; padding: 8px 0; }
.stepper { gap: 10px; }
.stepper button { width: 40px; height: 40px; font-size: 18px; }
.date-field { padding: 12px 14px; min-height: 64px; }
.date-field label { font-size: 12px; }
.cal-head button { min-width: 40px; min-height: 40px; }
@media (min-width: 881px) { .nav a { padding: 12px 0; } }   /* taller menu links: easier taps on tablets in landscape */
@media (max-width: 420px) { .booking-price small { display: block; margin-top: 4px; line-height: 1.4; } }

/* side spacing on the 'coming soon' page so text never touches the screen edge */
.placeholder-hero { padding: 64px 24px; }

/* space between the address and the photo gallery */
.prop-header .prop-address { margin-bottom: 24px; }

/* ---------- gentle fade-in on scroll (see script.js) ---------- */
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.reveal-on .reveal.revealed { opacity: 1; transform: none; }

/* homepage headline fades in when the page opens */
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: heroIn 1s cubic-bezier(.2,.65,.25,1) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero img { animation: heroIn 1.2s ease-out both; animation-name: heroPhoto; }
@keyframes heroPhoto { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero img { animation: none; }
}

/* house rules: label above the text on phones, for easier reading */
@media (max-width: 600px) { .rule-row { grid-template-columns: 1fr; gap: 2px; } .rules-list { gap: 18px; } }

/* ---------- Guest reviews (copied from Agoda) ---------- */
.rating-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  margin: 0 0 4px; font-size: 14px; color: var(--ink-soft);
  text-decoration: none;
}
.rating-chip strong { color: var(--ink); font-weight: 600; }
.rating-chip .star { color: var(--wood); font-size: 16px; }
.rating-chip:hover { text-decoration: underline; }
.rating-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 18px;
}
.rating-big { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.rating-big strong { font-family: var(--serif); font-size: 96px; font-weight: 700; line-height: .9; letter-spacing: -0.03em; color: var(--pine); margin-bottom: 6px; }
.rating-big span { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.rating-big a { font-size: 13px; color: var(--ink-soft); text-decoration: underline; padding: 6px 0; }
.sub-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.sub-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.sub-label strong { font-weight: 600; color: var(--pine); }
.sub-bar { height: 5px; border-radius: 3px; background: var(--paper-deep); overflow: hidden; }
.sub-bar i { display: block; height: 100%; background: var(--pine); border-radius: 3px; }
.review-list {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 12px; scroll-padding-left: 2px; -webkit-overflow-scrolling: touch;
}
.review-list .review-card { flex: 0 0 min(340px, 84%); scroll-snap-align: start; }
.review-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--ink-soft); }
.review-nav span { margin-right: auto; }
.review-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.review-arrow:disabled { opacity: .35; cursor: default; }
.rating-inline { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.rating-inline strong { font-family: var(--serif); font-size: 72px; font-weight: 700; line-height: .9; letter-spacing: -0.03em; color: var(--pine); }
.rating-inline span { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.rating-inline small { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.review-card {
  margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.review-top { display: flex; align-items: flex-start; gap: 10px; }
.review-score {
  flex: none; background: var(--pine); color: #fff; font-weight: 600; font-size: 13px;
  padding: 4px 8px; border-radius: 6px; line-height: 1.3;
}
.review-title { font-family: var(--serif); font-size: 16px; line-height: 1.35; }
.review-card blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); flex: 1; }
.review-card figcaption { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.review-card figcaption strong { color: var(--ink); font-weight: 600; }
.review-source { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.review-source a { text-decoration: underline; display: inline-block; padding: 8px 0; }
@media (max-width: 700px) {
  .review-arrow { display: none; }
  .rating-summary { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 420px) { .sub-scores { grid-template-columns: 1fr; } }
@media (min-width: 701px) { .review-nav span { visibility: hidden; } }

/* ---------- Payment methods (footer) ---------- */
.footer-pay { padding: 0 0 24px; }
.footer-pay h4 { margin-bottom: 10px; }
.footer-pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pay li {
  font-size: 13px; color: var(--wood-soft); padding: 6px 12px;
  border: 1px solid rgba(228,211,182,0.28); border-radius: 999px;
}

/* Let the review row scroll inside the column instead of stretching the page */
.prop-main, .prop-main > div { min-width: 0; }

/* ---------- Booking safely / scam reassurance ---------- */
.safe-box {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 28px;
}
.safe-head { display: flex; gap: 16px; align-items: flex-start; }
.safe-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-deep); color: var(--pine);
}
.safe-box h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.safe-head p { color: var(--ink-soft); }
.safe-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.safe-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.safe-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--pine); font-weight: 700; }
.safe-list strong { color: var(--ink); font-weight: 600; }
.safe-list a { text-decoration: underline; }
.safe-agoda {
  margin-top: 24px; padding: 20px; border-radius: 12px; background: var(--paper);
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
}
.safe-agoda strong { display: block; font-weight: 600; margin-bottom: 4px; }
.safe-agoda p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.safe-agoda .btn { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .safe-box { padding: 22px 18px; }
  .safe-list { grid-template-columns: 1fr; }
  .safe-agoda { flex-direction: column; align-items: stretch; }
  .safe-agoda .btn { text-align: center; white-space: normal; }
}
@media (max-width: 420px) { .safe-head { flex-direction: column; gap: 12px; } }

/* ---------- Rounded photos ---------- */
.gallery { border-radius: 0; overflow: visible; gap: 10px; }
.gallery-side { gap: 10px; }
.gallery-main img, .gallery-side img { border-radius: 16px; }
.filmstrip img { border-radius: 10px; }
.home-card { border-radius: 18px; }
.lightbox img { border-radius: 14px; will-change: transform, opacity; }

/* ---------- Photo protection (makes saving harder; can't stop screenshots) ---------- */
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* ---------- Legarda layout: booking box follows you down the top half; reviews, rules and map use the full width ---------- */
.prop-layout > aside { align-self: stretch; }
.prop-wide { margin-top: 72px; }
.prop-wide > div { min-width: 0; }
.prop-wide .safe-box h2 { font-size: clamp(22px, 2.6vw, 28px); }
.prop-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prop-two > div { min-width: 0; }
.prop-wide .review-list .review-card { flex-basis: min(360px, 84%); }
@media (max-width: 900px) { .prop-two { grid-template-columns: 1fr; gap: 52px; } }

/* ---------- Gallery: keep every photo inside its tile (Safari stretched them over the photo strip) ---------- */
.gallery { grid-template-rows: minmax(0, 1fr); }
.gallery > * { min-height: 0; }
.gallery-main { overflow: hidden; border-radius: 16px; }
.gallery-side { grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 0; }
.gallery-main img, .gallery-side img { display: block; min-height: 0; }
.gallery-more { z-index: 2; }
@media (max-width: 880px) {
  .gallery { grid-template-rows: auto; }
  .gallery-main { height: auto; aspect-ratio: 3 / 2; }
}
.gallery-main img { position: absolute; inset: 0; }
.gallery-side { overflow: hidden; }

/* ---------- Reviews: no scrollbar, auto-drifting row with soft faded edges ---------- */
.review-list { scrollbar-width: none; -ms-overflow-style: none; }
.review-list::-webkit-scrollbar { display: none; }
.review-list.auto-scroll { scroll-snap-type: none; }
.review-list {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
@media (max-width: 700px) {
  .review-list {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
}
.review-arrow:disabled { opacity: 1; cursor: pointer; }

/* ---------- Note under the photos ---------- */
.filmstrip:has(+ .photo-note) { margin-bottom: 10px; }
p.photo-note { font-size: 13px; line-height: 1.55; color: var(--ink-soft); max-width: 78ch; margin: 0 0 48px; }

/* ---------- About the building ---------- */
.building-story p { color: var(--ink-soft); }
.building-story p + p { margin-top: 12px; }

/* ---------- Voucher box in the booking form ---------- */
.voucher-field { margin-bottom: 14px; }
.modal-box .voucher-field label { margin-bottom: 6px; }
.voucher-row { display: flex; gap: 8px; }
.modal-box .voucher-row input { margin-top: 0; flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.voucher-row .btn { flex: none; padding: 0 18px; min-height: 46px; font-size: 14px; }
.voucher-msg { font-size: 13px; margin: 6px 0 0; min-height: 0; }
.voucher-msg.good { color: var(--pine); font-weight: 500; }
.voucher-msg.bad { color: var(--clay); }

/* ---------- Owner page: voucher codes ---------- */
.owner-voucher-form .ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.owner-voucher-form .owner-label select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 16px; background: var(--paper); font-family: var(--sans); color: var(--ink);
}
.owner-voucher-form .owner-label small { color: var(--ink-soft); font-weight: 400; }
.ov-amount { display: flex; gap: 8px; }
.ov-amount select { flex: 0 0 96px; }
.ov-amount input { flex: 1; min-width: 0; }
.ov-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ov-actions .btn { justify-content: center; }
.ov-code { font-family: var(--serif); font-size: 20px; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ov-pill { font-family: var(--sans); font-size: 12px; letter-spacing: 0; padding: 3px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); }
.ov-pill.on { background: #E3EBDD; color: var(--pine); }
.ov-pill.off { background: #F6E3DA; color: #7A3A22; }
.ov-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ov-buttons .btn { padding: 9px 16px; font-size: 14px; }
.owner-voucher.paused { opacity: .7; }
@media (max-width: 420px) { .owner-voucher-form .ov-grid { grid-template-columns: 1fr; } }
.ov-actions [hidden] { display: none; }

/* ---------- "All inclusive of taxes and fees" ---------- */
.incl-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px;
  font-size: 13px; font-weight: 500; color: var(--pine);
  background: #E3EBDD; padding: 4px 10px; border-radius: 999px;
}
.home-body .incl-badge { align-self: flex-start; margin: 8px 0 20px; }
.price-incl { font-size: 12px; color: var(--ink-soft); text-align: right; margin-top: 4px; }

/* ---------- Video tour (sidebar under the booking box; follows you down the page on computers) ---------- */
.prop-layout > aside { display: flex; flex-direction: column; gap: 24px; }
.prop-layout > aside .booking-card { position: static; }
.tour { position: sticky; top: 100px; }
.tour[hidden] { display: none; }
.tour-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 9 / 16; max-height: calc(100vh - 150px); margin: 0 auto;
  border-radius: 18px; overflow: hidden; background: var(--pine-deep);
  box-shadow: 0 12px 30px rgba(38,36,32,0.10);
}
.tour-frame img, .tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tour-frame iframe { pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.tour-frame.playing iframe { opacity: 1; }
.tour-play { border: 0; cursor: pointer; }
.tour-play[hidden] { display: none; }
.tour-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,43,30,0) 55%, rgba(35,43,30,.55) 100%); pointer-events: none; }
.tour-frame.playing::after { opacity: .6; }
.tour-label { pointer-events: none; }
.tour-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(246,242,234,.92); color: var(--pine); transition: transform .2s ease;
}
.tour-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.tour-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: var(--paper); font-size: 14px; font-weight: 600; }
.tour-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; max-width: none; }
@media (max-width: 880px) {
  .tour { position: static; }
  .tour-frame { max-width: 360px; max-height: none; }
}

/* ---------- House rules: "see all" and FAQ ---------- */
.rules-more { margin-top: 18px; }
.rules-more > summary, .faq-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.rules-more > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.rules-more > summary {
  display: inline-flex; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.rules-more > summary::after { content: '+'; font-size: 18px; line-height: 1; }
.rules-more[open] > summary::after { content: '−'; }
.rules-more > .rules-list { margin-top: 18px; }
p.rules-agree { font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { padding: 18px 2px; font-size: 16px; font-weight: 600; min-height: 44px; }
.faq-item > summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item > p { margin: -4px 0 18px; padding-right: 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 72ch; }
.faq-item a, .faq-more a { text-decoration: underline; }
p.faq-more { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; border-top: 0; }
  .faq-item { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* ---------- BIR registration badge (footer) ---------- */
.footer-bir { padding: 0 0 24px; }
.footer-bir img { display: block; width: 100%; max-width: 340px; height: auto; background: #fff; border-radius: 10px; padding: 6px; }

/* ---------- Booking terms page ---------- */
.terms p, .terms li { line-height: 1.7; }
.terms a { text-decoration: underline; }
.terms-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.terms-list li { padding-left: 4px; }

/* ---------- "I agree" box in the booking form ---------- */
.modal-box label.agree-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.modal-box .agree-row input { flex: none; display: inline-block; width: 20px; height: 20px; padding: 0; margin: 1px 0 0; accent-color: var(--pine); }
.agree-row a { text-decoration: underline; }

/* ---------- Book direct and save / longer-stay discount ---------- */
.direct-save {
  display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 6px; padding: 10px 12px;
  background: #F4EDE2; border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--ink);
}
.direct-save svg { flex: none; margin-top: 2px; color: var(--clay); }
.direct-save strong { font-weight: 600; }
p.direct-save-line { font-size: 13px; color: var(--ink-soft); margin: -12px 0 18px; }
.price-row.discount span { color: var(--pine); font-weight: 500; }
.price-tip { font-size: 12px; color: var(--clay); margin-top: 6px; }
.ov-auto > summary { cursor: pointer; font-size: 15px; min-height: 28px; }
.ov-auto .owner-voucher { box-shadow: none; border: 1px solid var(--line); margin-top: 10px; }

/* Owner page: "close it on Agoda" to-dos */
.agoda-todo { border: 2px solid #C9714A; background: #FFF8F3; margin-bottom: 18px; }
.at-item { padding: 14px 0; border-top: 1px solid var(--line); }
.at-item:first-of-type { border-top: 0; padding-top: 4px; }
.at-what { font-size: 17px; margin-bottom: 4px; }
.at-close .at-what strong { color: #7A3A22; }
.at-done { margin-top: 10px; }
