/* 5 Stars /book — Opus design comp v2 (27 Nov 2026)
   Direction: "a day on the island". Photography leads; the villa page is told as a day,
   morning to night, with the page tone following the light. No JavaScript. System fonts. */
:root {
  color-scheme: light;
  /* palette taken from the house photos */
  --jungle: #15281e;      /* dark base, text */
  --canopy: #24402f;      /* secondary dark */
  --rice: #f2f3ec;        /* light base, faintly green */
  --stone: #e4e6dc;       /* light surface */
  --white: #fcfcf9;
  --sun: #e2ad55;         /* brand gold: primary action */
  --sun-hover: #ecbf72;
  --lagoon: #1f6560;      /* links on light, 6.4:1 on rice */
  --muted: #4c574f;       /* 7:1 on rice */
  --line: #cdd2c3;
  --morning: #f4ead2;
  --midday: #dbe9e5;
  --evening: #3b2a21;
  --night: #15281e;
  --on-dark: #f2efe6;
  --on-dark-2: #c9cdbf;   /* 9:1 on jungle */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Lato, "Noto Sans", "Noto Sans Thai", sans-serif;
  --gut: clamp(20px, 4.5vw, 64px);
  --wrap: min(1280px, 100% - 2 * var(--gut));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rice); color: var(--jungle); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 3px solid #1d5fd1; outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--sun); }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; z-index: 30; left: 12px; top: -80px; padding: 12px 18px; border-radius: 6px; background: var(--sun); color: var(--jungle); font-weight: 650; }
.skip:focus { top: 12px; }
.label { font: 600 .875rem/1.3 var(--sans); color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 26px; border-radius: 6px; background: var(--sun); color: var(--jungle); font: 650 1rem/1.2 var(--sans); text-align: center; text-decoration: none; transition: background-color .18s; }
.btn:hover { background: var(--sun-hover); }
.link { color: var(--lagoon); font-weight: 600; text-decoration: underline; }

/* brand + nav */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand b { display: block; font: 500 1.3125rem/1 var(--serif); }
.brand small { display: block; margin-top: 3px; font-size: .75rem; color: var(--muted); letter-spacing: .01em; }
.nav { display: flex; gap: 8px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.nav svg { width: 17px; height: 17px; }
.nav .glass { background: rgba(21,40,30,.55); color: var(--on-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .glass:hover { background: rgba(21,40,30,.75); }
.nav .plain { border: 1px solid var(--line); background: var(--white); }
.nav .plain:hover { border-color: var(--jungle); }

/* ================================================================ VILLA */
.v-hero { display: grid; grid-template-columns: minmax(500px, 41%) 1fr; min-height: min(100svh, 1000px); }
.v-intro { display: flex; flex-direction: column; padding: 26px clamp(28px, 3.6vw, 56px) 36px var(--gut); }
.v-intro .brand { align-self: flex-start; }
.v-title { margin-top: auto; padding-top: 48px; }
.v-title h1 { margin-top: 10px; font-size: clamp(3.5rem, 2rem + 4.4vw, 6rem); line-height: .94; letter-spacing: -.03em; }
.v-title .where { font: 500 1rem/1.3 var(--sans); color: var(--muted); }
.v-title .lede { margin-top: 18px; max-width: 30em; font-size: 1.1875rem; line-height: 1.5; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; margin-top: 22px; border-block: 1px solid var(--line); }
.facts div { padding: 10px 18px 10px 0; margin-right: 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { font-weight: 600; font-size: .9375rem; }

.quote-card { margin-top: 26px; padding: 20px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -28px rgba(21,40,30,.45); }
.qc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qc-top h2 { font: 600 .875rem/1.3 var(--sans); color: var(--muted); letter-spacing: 0; }
.qc-top p { font-size: .8125rem; color: var(--muted); }
.qc-note { display: flex; gap: 9px; margin-top: 12px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.qc-note svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: #8a5a12; }
.qc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.qc-actions .btn { flex: 1 1 220px; }
.qc-fine { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

.v-photo { position: relative; overflow: hidden; background: var(--canopy); }
.v-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.v-photo .nav { position: absolute; top: 24px; right: var(--gut); z-index: 2; }
.v-photo .count { position: absolute; z-index: 2; right: var(--gut); bottom: 28px; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--white); font-size: .9375rem; font-weight: 650; text-decoration: none; }
.v-photo .count svg { width: 18px; height: 18px; }

/* sticky dock (desktop) */
.dock { position: sticky; top: 0; z-index: 20; background: rgba(21,40,30,.96); color: var(--on-dark); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dock .wrap { display: flex; align-items: center; gap: 16px 28px; min-height: 72px; }
.dock .name { font: 400 1.5rem/1 var(--serif); }
.dock nav { display: flex; gap: 22px; font-size: .9375rem; }
.dock nav a { color: var(--on-dark-2); text-decoration: none; }
.dock nav a:hover { color: var(--on-dark); text-decoration: underline; }
.dock .sum { margin-left: auto; text-align: right; font-size: .875rem; color: var(--on-dark-2); line-height: 1.3; }
.dock .sum b { display: block; color: var(--on-dark); font: 400 1.25rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
.dock .btn { min-height: 46px; padding: 10px 22px; }

/* a day here */
.day { scroll-margin-top: 72px; }
.day-intro { padding-block: clamp(64px, 9vw, 120px) clamp(28px, 4vw, 48px); }
.day-intro h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1.02; max-width: 14em; }
.day-intro p { margin-top: 16px; max-width: 34em; color: var(--muted); font-size: 1.1875rem; }
.hour { padding-block: clamp(56px, 7vw, 96px); }
.hour .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hour.flip .wrap { grid-template-columns: 1fr 1.25fr; }
.hour.flip .pics { order: 2; }
.hour-morning { background: var(--morning); }
.hour-midday { background: var(--midday); }
.hour-evening { background: var(--evening); color: var(--on-dark); }
.hour-night { background: var(--night); color: var(--on-dark); }
.time { display: flex; align-items: center; gap: 12px; font: 600 .9375rem/1 var(--sans); }
.time svg { width: 26px; height: 26px; }
.hour-morning .time { color: #8a5a12; }
.hour-midday .time { color: var(--lagoon); }
.hour-evening .time, .hour-night .time { color: var(--sun); }
.hour h3 { margin-top: 16px; font-size: clamp(2rem, 1.4rem + 2vw, 3.125rem); line-height: 1.04; }
.hour .body { margin-top: 16px; max-width: 32em; font-size: 1.0625rem; }
.hour-evening .body, .hour-night .body { color: var(--on-dark-2); }
.hour .list { margin-top: 18px; display: grid; gap: 6px; font-size: .9375rem; }
.hour .list li { padding-left: 20px; position: relative; }
.hour .list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: currentColor; opacity: .6; }
.pics { display: grid; grid-template-columns: 1fr .62fr; gap: 12px; align-items: end; }
.pics img { width: 100%; object-fit: cover; border-radius: 4px; }
.pics img:first-child { aspect-ratio: 4 / 5; }
.pics img:nth-child(2) { aspect-ratio: 3 / 4; margin-bottom: -40px; }
.pics.one { grid-template-columns: 1fr; }
.pics.one img:first-child { aspect-ratio: 5 / 4; }
.said { margin-top: 26px; padding-left: 18px; border-left: 2px solid currentColor; max-width: 30em; }
.said p { font: 400 1.25rem/1.45 var(--serif); }
.said footer { margin-top: 8px; font-size: .875rem; opacity: .8; }
.hour-morning .said { border-color: #c8913a; }
.hour-midday .said { border-color: var(--lagoon); }
.hour-night .said, .hour-evening .said { border-color: var(--sun); }
.hour-night .said p { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.32; color: var(--on-dark); }

/* house details */
.block { padding-block: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 72px; }
.block h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; }
.block .intro { margin-top: 12px; max-width: 36em; color: var(--muted); }
.amen { columns: 4 220px; column-gap: 40px; margin-top: 36px; }
.amen section { break-inside: avoid; margin-bottom: 30px; }
.amen h3 { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font: 650 1rem/1.3 var(--sans); }
.amen li { padding-block: 3px; font-size: .9375rem; color: var(--muted); }
.amen li b { color: var(--jungle); font-weight: 600; }

.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 36px; }
.where img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; }
.dist { display: grid; }
.dist div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 18px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
.dist div:first-child { border-top: 1px solid var(--line); }
.dist dt { font: 400 2rem/1 var(--serif); font-variant-numeric: lining-nums; }
.dist dd { color: var(--muted); }
.where .fine { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.where .said { border-color: var(--lagoon); }

.know { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); margin-top: 36px; align-items: start; }
.booking-terms { margin-top: 20px; max-width: 62ch; }
.booking-terms h3 { font-size: 1.35rem; }
.booking-terms p + p { margin-top: 8px; }
.notice { padding: 24px 26px; border-radius: 10px; background: #f1e2bd; scroll-margin-top: 90px; }
.notice h3 { display: flex; gap: 10px; align-items: center; font: 650 1.0625rem/1.3 var(--sans); }
.notice h3 svg { width: 22px; height: 22px; color: #8a5a12; flex: none; }
.notice p { margin-top: 8px; color: #45402f; }
details.rule { border-bottom: 1px solid var(--line); }
details.rule:first-child { border-top: 1px solid var(--line); }
details.rule > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; cursor: pointer; list-style: none; font: 400 1.25rem/1.3 var(--serif); }
details.rule > summary::-webkit-details-marker { display: none; }
details.rule > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--jungle); border-bottom: 1.5px solid var(--jungle); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
details.rule[open] > summary::after { transform: rotate(-135deg); }
details.rule ul { display: grid; gap: 6px; padding-bottom: 20px; color: var(--muted); font-size: .9375rem; }

.gallery { columns: 4 240px; column-gap: 10px; margin-top: 36px; }
.gallery-hint { margin-top: 14px; color: var(--muted); }
.gallery-hint + .gallery { margin-top: 16px; }
.gallery a { display: block; margin-bottom: 10px; break-inside: avoid; }
.gallery img { width: 100%; border-radius: 3px; }

.closing { margin-top: clamp(72px, 9vw, 128px); background: var(--jungle); color: var(--on-dark); }
.closing .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: end; padding-block: clamp(56px, 7vw, 96px); }
.closing h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); line-height: 1; }
.closing p { margin-top: 14px; color: var(--on-dark-2); max-width: 36em; }
.closing .btn { min-width: 280px; }

.foot { background: var(--jungle); color: var(--on-dark-2); border-top: 1px solid rgba(242,239,230,.14); font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px max(32px, env(safe-area-inset-bottom)); }
.foot a { color: var(--on-dark); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.bar { display: none; }

/* ---------- villa responsive ---------- */
@media (max-width: 1100px) {
  .dock nav { display: none; }
}
@media (max-width: 960px) {
  .v-hero { grid-template-columns: 1fr; min-height: 0; }
  .v-photo { order: -1; height: 64svh; min-height: 420px; }
  .v-intro { padding: 0 var(--gut) 8px; }
  .v-intro .brand { position: absolute; top: 22px; left: var(--gut); z-index: 3; color: var(--on-dark); }
  .v-intro .brand small { color: var(--on-dark-2); }
  .v-title { padding-top: 26px; }
  .hour .wrap, .hour.flip .wrap { grid-template-columns: 1fr; }
  .hour.flip .pics { order: 0; }
  .where, .know { grid-template-columns: 1fr; }
  .closing .wrap { grid-template-columns: 1fr; }
  .closing .btn { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  body.villa { font-size: 1rem; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html:has(body.villa) { scroll-padding-bottom: 96px; }
  .v-photo { height: 55svh; min-height: 360px; }
  .v-photo .nav .txt { display: none; }
  .v-photo .nav a { padding: 0 13px; }
  .v-photo .count { left: var(--gut); right: auto; bottom: 18px; min-height: 40px; font-size: .875rem; padding: 0 14px; }
  .v-title h1 { font-size: 3.5rem; }
  .v-title .lede { font-size: 1.0625rem; }
  .facts div { padding-right: 12px; margin-right: 12px; }
  .facts:has(.wifi) { display: grid; grid-template-columns: 1fr 1fr; }
  .facts:has(.wifi) div { padding: 8px 10px; margin: 0; }
  .facts:has(.wifi) div:nth-child(even) { border-right: 0; }
  .facts:has(.wifi) div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quote-card { margin-inline: calc(-1 * var(--gut) + 8px); padding: 18px 18px 16px; }
  .dock { display: none; }
  .pics img:nth-child(2) { margin-bottom: -24px; }
  .bar { position: fixed; z-index: 25; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--jungle); color: var(--on-dark); }
  .bar p { font-size: .8125rem; color: var(--on-dark-2); line-height: 1.3; }
  .bar b { display: block; color: var(--on-dark); font: 400 1.25rem/1.15 var(--serif); font-variant-numeric: lining-nums; }
  .bar .btn { min-height: 48px; padding: 0 20px; }
  .amen { columns: 2 140px; column-gap: 24px; }
  .gallery { columns: 2; }
}

/* ================================================================ CATALOGUE */
.c-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 0; }
.c-hero .wrap { padding-block: clamp(36px, 5vw, 58px) 0; }
.c-hero h1 { font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: .93; letter-spacing: -.035em; max-width: 9.5em; }
.c-hero .lede { display: grid; grid-template-columns: minmax(0, 34em) auto; justify-content: space-between; align-items: end; gap: 24px; margin-top: 26px; }
.c-hero .lede p { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.c-hero .lede .ask { font-size: .9375rem; color: var(--muted); text-align: right; }
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1.15fr .9fr 1.2fr; gap: 12px; margin-top: clamp(32px, 4vw, 52px); padding-inline: var(--gut); align-items: end; }
.strip a { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--stone); text-decoration: none; }
.strip a:nth-child(1) { height: 310px; }
.strip a:nth-child(2) { height: 240px; }
.strip a:nth-child(3) { height: 285px; }
.strip a:nth-child(4) { height: 220px; }
.strip a:nth-child(5) { height: 270px; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip a:hover img { transform: scale(1.03); }
.strip span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(21,40,30,.7); color: var(--on-dark); font-size: .8125rem; font-weight: 600; }

.tgt { display: block; position: relative; top: -80px; height: 0; }
.filters { position: sticky; top: 0; z-index: 20; margin-top: clamp(24px, 4vw, 48px); background: rgba(242,243,236,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.filters .wrap { display: flex; align-items: center; gap: 8px; min-height: 72px; overflow-x: auto; scrollbar-width: none; }
.filters a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.filters a span { color: var(--muted); font-weight: 500; }
.filters a:hover { border-color: var(--jungle); }
.filters .count { margin-left: auto; flex: none; font-size: .9375rem; color: var(--muted); padding-left: 16px; }
/* active chip without JS: default = All; :target switches */
.f-all { background: var(--jungle) !important; color: var(--on-dark); border-color: var(--jungle) !important; }
.f-all span { color: var(--on-dark-2) !important; }
#two:target ~ .filters .f-all, #pool:target ~ .filters .f-all, #groups:target ~ .filters .f-all { background: var(--white) !important; color: var(--jungle); border-color: var(--line) !important; }
#two:target ~ .filters .f-all span, #pool:target ~ .filters .f-all span, #groups:target ~ .filters .f-all span { color: var(--muted) !important; }
#two:target ~ .filters .f-two, #pool:target ~ .filters .f-pool, #groups:target ~ .filters .f-groups { background: var(--jungle); color: var(--on-dark); border-color: var(--jungle); }
#two:target ~ .filters .f-two span, #pool:target ~ .filters .f-pool span, #groups:target ~ .filters .f-groups span { color: var(--on-dark-2); }
#two:target ~ .grid-wrap .card:not(.is-two),
#pool:target ~ .grid-wrap .card:not(.is-pool),
#groups:target ~ .grid-wrap .card:not(.is-groups) { display: none; }

.grid-wrap { padding-block: clamp(32px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.card { position: relative; grid-column: span 2; }
.card.wide { grid-column: span 4; }
.card.tall .ph { aspect-ratio: 4 / 5; }
.card .ph { display: block; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 4px; background: var(--stone); }
.card.wide .ph { aspect-ratio: 16 / 9; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.card h2 { font-size: clamp(1.5rem, 1.25rem + .6vw, 1.875rem); line-height: 1.1; }
.card.wide h2 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); }
.card h2 a { text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h2 a:focus-visible { outline: none; }
.card:has(h2 a:focus-visible) { outline: 3px solid #1d5fd1; outline-offset: 6px; border-radius: 4px; }
.card .area { flex: none; font-size: .875rem; color: var(--muted); }
.card .feat { margin-top: 6px; color: var(--jungle); font-size: .9375rem; }
.card .people { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.card .go { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 650; color: var(--lagoon); text-decoration: underline; text-underline-offset: .2em; }
.card.wide .row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 18px; }
.card.wide .feat { font-size: 1.0625rem; max-width: 30em; }

.helpband { background: var(--jungle); color: var(--on-dark); }
.helpband .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.helpband h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.04; }
.helpband p { margin-top: 12px; color: var(--on-dark-2); max-width: 34em; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card.wide { grid-column: span 4; }
  .strip { grid-template-columns: 1.4fr 1fr 1.15fr .9fr; }
  .strip a:nth-child(5) { display: none; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .card, .card.wide { grid-column: auto; }
  .card.wide .ph, .card .ph, .card.tall .ph { aspect-ratio: 4 / 3.4; }
  .card.wide .row { grid-template-columns: 1fr; }
  .c-hero .lede { grid-template-columns: 1fr; }
  .c-hero .lede .ask { text-align: left; }
  .c-hero h1 { font-size: 3.25rem; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
  .strip a { flex: 0 0 62%; scroll-snap-align: start; height: 220px !important; }
  .strip a:nth-child(5) { display: block; }
  .strip a:nth-child(even) { height: 180px !important; align-self: end; }
  .filters .count { display: none; }
  .filters .wrap { flex-wrap: wrap; gap: 6px; padding-block: 8px; }
  .filters a { padding-inline: 12px; font-size: .875rem; }
  .helpband .wrap { grid-template-columns: 1fr; }
  .helpband .btn { width: 100%; }
  .c-head .nav .txt { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Catalogue links and booking details use the same Opus components. */
.grid-wrap, .card { scroll-margin-top: 84px; }
.grid-wrap:focus { outline: none; }
.card:focus { outline: 3px solid #1d5fd1; outline-offset: 6px; }
.v-title h1 { overflow-wrap: break-word; }
.dock .name { min-width: 0; }
.dock .btn { flex: none; }
.dock .wrap > .btn:last-child { margin-inline-start: auto; }
.dock .sum + .btn:last-child { margin-inline-start: 0; }
.bar .btn { flex: none; }
.bar p { min-width: 0; }
.rules-link { margin-block: 16px; }
.know:not(.has-notice, :has(.notice)) { grid-template-columns: minmax(0, 48rem); }
@media (max-width: 720px) {
  .grid-wrap, .card { scroll-margin-top: 116px; }
}
@media (max-width: 360px) {
  .v-title h1 { font-size: clamp(2.75rem, 14vw, 3.5rem); }
  .bar .btn { padding-inline: 14px; }
}
@media (max-width: 960px) {
  .v-photo::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 128px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(rgba(21,40,30,.84), rgba(21,40,30,.62) 45%, transparent);
  }
}

/* Booking card with Hospitable's official widget (stay-widget.js). Without JavaScript the card keeps its link. */
.quote-card { scroll-margin-top: 24px; }
.quote-card [hidden] { display: none; }
.qc-status:empty { display: none; }
.qc-status { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.quote-card[data-widget-state="loading"] .qc-status::after { content: ""; display: block; height: 220px; margin-top: 10px; border-radius: 6px; background: var(--stone); animation: qc-pulse 1.4s ease-in-out infinite alternate; }
@keyframes qc-pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .quote-card[data-widget-state="loading"] .qc-status::after { animation: none; } }
.qc-widget { margin: 12px -6px 0; }
.quote-card[data-widget-state="loading"] .qc-widget { height: 0; overflow: hidden; }
.qc-widget iframe { display: block; min-height: 420px; }
.qc-error { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: var(--stone); }
.qc-error-title { font-weight: 650; }
.qc-error .qc-actions { margin-top: 12px; }
.qc-error button.link { background: none; padding: 0; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) {
  .qc-widget { margin-inline: -10px; }
  .villa .bar { transition: transform .2s ease, visibility .2s; }
  .villa.book-in-view .bar { transform: translateY(110%); visibility: hidden; }
}
/* Airbnb comparison link under the booking card and the Airbnb review preview (task 7666). */
.qc-compare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 10px; font-size: .875rem; }
.qc-compare a { display: inline-block; padding-block: 12px; font-weight: 600; }
.qc-compare-note { color: var(--muted); font-size: .8125rem; }
.reviews .abnb-rating { max-width: 1010px; margin-top: 18px; }
.reviews .abnb-rating img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #f7f7f7; }
.reviews figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.reviews-link { margin-top: 10px; }
.reviews-link a { display: inline-block; padding-block: 12px; font-weight: 600; }
