/*
Theme Name: PRIVÉ
Theme URI: https://prive.uk
Author: PRIVÉ
Author URI: https://prive.uk
Description: A luxury rental residence theme — rental living, private club refinement.
Version: 1.0.54
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://prive.uk
Text Domain: prive
*/

/* ═══════════════════════════════════════════════════════════════
   PRIVÉ — WordPress Theme Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Font Imports ─────────────────────────────────────────────── */
/* Self-hosted fonts — place .woff2 and .woff files in the /fonts/ folder */

@font-face {
  font-family: 'EngraversGothicBold W08 Rg';
  src: url('fonts/engravers-gothic-bold-w08-rg.woff2') format('woff2'),
       url('fonts/engravers-gothic-bold-w08-rg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'EngraversGothic BT W08 Regular';
  src: url('fonts/engravers-gothic-bt-w08-regular.woff2') format('woff2'),
       url('fonts/engravers-gothic-bt-w08-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Canela-Light';
  src: url('fonts/canela-light.woff2') format('woff2'),
       url('fonts/canela-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Canela-Regular';
  src: url('fonts/canela-regular.woff2') format('woff2'),
       url('fonts/canela-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('fonts/noto-sans-sc-400.woff2') format('woff2'),
       url('fonts/noto-sans-sc-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('fonts/noto-sans-sc-500.woff2') format('woff2'),
       url('fonts/noto-sans-sc-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('fonts/noto-serif-sc-300.woff2') format('woff2'),
       url('fonts/noto-serif-sc-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
  --font-headline: 'EngraversGothicBold W08 Rg', 'Oswald', sans-serif;
  --font-location-regular: 'EngraversGothic BT W08 Regular', 'Oswald', sans-serif;
  --font-body: 'Canela-Light', 'Canela Light', 'Cormorant Garamond', serif;
  --font-body-medium: 'Canela-Regular', 'Canela Regular', 'Cormorant Garamond', serif;
  --font-body-zh: 'Noto Serif SC', 'Canela-Light', serif;
  --font-chinese-sans: 'Noto Sans SC', sans-serif;
  --font-chinese-serif: 'Noto Serif SC', serif;

  --color-bg: #FAFBF5;
  --color-parchment: #F5F1EB;
  --color-dark: #1C2226;
  --color-primary: #2E4755;
  --color-body: #4A5F6A;
  --color-secondary: #4A5F6A;
  --color-muted: #707F87;
  --color-accent: #A38A74;
  --color-placeholder: #DDE0DA;

  --max-w: 1600px;
  --font-size: 16px;
  --utility-h: 48px;
  --topbar-h: 88px;
}

@media (min-width: 768px) {
  :root { --font-size: 17.6px; }
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size);
  /* Override WordPress core's scroll-behavior: smooth (block-library/style.css)
     which causes freeze loops with programmatic scrollTo + scroll handlers */
  scroll-behavior: auto !important;
}

body {
  background: var(--color-dark);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
select { font: inherit; }
textarea { font: inherit; }
input { font: inherit; }

/* ── Typography Utilities ─────────────────────────────────────── */
.font-hl { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); letter-spacing: 0.035em; }
.font-body-medium { font-family: var(--font-body-medium); letter-spacing: 0.035em; }
.font-zh-hl { font-family: 'EngraversGothicBold W08 Rg', 'Oswald', 'Noto Sans SC', sans-serif; font-weight: 500; }
.font-zh-body { font-family: 'Canela-Light', 'Canela Light', 'Noto Serif SC', serif; font-weight: 300; letter-spacing: 0.06em; }

.uppercase { text-transform: uppercase; }

/* ── Layout Utilities ─────────────────────────────────────────── */
.pad {
  padding-left: 32px;
  padding-right: 32px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .pad { padding-left: 48px; padding-right: 48px; }
}

@media (min-width: 1280px) {
  .pad { padding-left: 64px; padding-right: 64px; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-7 { gap: 28px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }
.gap-20 { gap: 80px; }
.shrink-0 { flex-shrink: 0; }

.grid { display: grid; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-4 { grid-column: span 4; }
  .lg\:col-span-5 { grid-column: span 5; }
  .lg\:col-span-6 { grid-column: span 6; }
  .lg\:col-span-7 { grid-column: span 7; }
  .lg\:col-span-8 { grid-column: span 8; }
  .lg\:col-start-8 { grid-column-start: 8; }
  .lg\:col-start-9 { grid-column-start: 9; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:items-end { align-items: end; }
  .lg\:gap-28 { gap: 112px; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Spacing ──────────────────────────────────────────────────── */
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-zoom-in { cursor: zoom-in; }

.border-t { border-top: 1px solid rgba(46,71,85,0.1); }
.border-b { border-bottom: 1px solid rgba(46,71,85,0.1); }
.border { border: 1px solid rgba(46,71,85,0.08); }

.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Page Wrapper ─────────────────────────────────────────────── */
.page-wrap {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.page-wrap > main { flex: 1; }
.page-wrap > main.has-topbar { padding-top: 136px; }

/* ═══════════════════════════════════════════════════════════════
   UTILITY BAR
   ═══════════════════════════════════════════════════════════════ */
.utility-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: black;
  display: flex;
  align-items: center;
  height: var(--utility-h);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.utility-bar.hidden-bar { transform: translateY(-100%); }

.utility-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

@media (min-width: 1024px) { .utility-bar__inner { padding: 0 48px; } }
@media (min-width: 1280px) { .utility-bar__inner { padding: 0 64px; } }

.utility-label {
  font-family: var(--font-headline);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.utility-label-zh {
  font-family: var(--font-chinese-sans, var(--font-headline));
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.15em;
  position: relative;
  top: 2.5px;
}

.utility-bar a,
.utility-bar button { color: white; transition: color 0.2s; }
.utility-bar a:hover,
.utility-bar button:hover { color: rgba(255,255,255,0.7); }

.utility-bar__promo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.utility-bar__promo:hover { color: white; }
@media (min-width: 768px) { .utility-bar__promo { display: flex; } }

.utility-bar__promo .line {
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.utility-bar__right { display: flex; align-items: center; gap: 20px; }
.utility-bar__divider { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }

/* Language dropdown */
.lang-dropdown { position: relative; }

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: black;
  border: 1px solid rgba(255,255,255,0.15);
  min-width: 148px;
  padding: 4px 0;
  display: none;
  z-index: 60;
}

.lang-dropdown__menu.open { display: block; }

.lang-dropdown__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  text-align: left;
  color: white;
  white-space: nowrap;
  transition: color 0.15s;
}
.lang-dropdown__option:hover { color: rgba(255,255,255,0.7); }

/* Compact language label shown on mobile (globe + ENG / 中) */
.lang-abbr {
  display: none;
  font-family: var(--font-headline);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Mobile utility bar: icons only; language keeps globe + compact label.
   Dropdown-menu text is preserved — only the bar-level labels are hidden. */
@media (max-width: 767px) {
  .utility-bar__inner > a:not(.utility-bar__back) .utility-label,
  .utility-bar__right > a .utility-label,
  .utility-bar__right > button .utility-label,
  .lang-dropdown__trigger .utility-label { display: none; }
  .lang-dropdown__trigger .lang-abbr { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* Start below the utility bar (48px) before JS takes over.
     The transform is overridden by scripts.js on scroll. */
  transform: translateY(var(--utility-h));
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
  will-change: transform;
}

.topbar.solid {
  background: var(--color-bg);
  border-bottom: 1px solid rgba(46,71,85,0.1);
}

.topbar.transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--topbar-h);
}

@media (min-width: 1024px) { .topbar__inner { padding: 0 48px; } }
@media (min-width: 1280px) { .topbar__inner { padding: 0 64px; } }

.logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.topbar.solid .logo { color: var(--color-primary); }
.topbar.transparent .logo { color: white; }

.topbar__nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .topbar__nav { display: flex; } }

.topbar__nav a {
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.topbar.solid .topbar__nav a { color: var(--color-muted); }
.topbar.solid .topbar__nav a:hover,
.topbar.solid .topbar__nav a.active { color: var(--color-primary); }
.topbar.transparent .topbar__nav a { color: rgba(255,255,255,0.7); }
.topbar.transparent .topbar__nav a:hover,
.topbar.transparent .topbar__nav a.active { color: white; }

/* External nav link (House) — arrow icon inline */
.topbar__nav-external {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mobile-menu__external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar__hamburger {
  display: block;
  padding: 8px;
  margin-right: -4px;
  transition: color 0.3s;
}
@media (min-width: 1024px) { .topbar__hamburger { display: none; } }

.topbar.solid .topbar__hamburger { color: var(--color-primary); }
.topbar.transparent .topbar__hamburger { color: white; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--color-bg);
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 161px 32px 0;
}

.mobile-menu nav a {
  text-transform: uppercase;
  padding: 16px 0;
  font-family: var(--font-headline);
  font-size: clamp(24px, 2.8vw, 42px);
  letter-spacing: 0.2em;
  color: var(--color-muted);
  transition: color 0.2s;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active { color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-dark);
  color: white;
  padding: 56px 0;
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

a.footer__logo {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
a.footer__logo:hover { color: rgba(255,255,255,0.7); }

.footer__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
  .footer__body { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .footer__left { grid-column: span 5; }
  .footer__right { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-end; }
}

.footer__desc {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  max-width: 28rem;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.footer__links a {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.footer__links a:hover { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.4); }

.footer__links-divider { color: rgba(255,255,255,0.15); }

.footer__hours {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}

@media (min-width: 1024px) { .footer__hours { text-align: right; } }

.footer__socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.footer__socials a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__socials a:hover { color: white; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__copyright {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

@media (min-width: 768px) { .footer__copyright { order: -1; } }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 768px) {
  .footer__legal { flex-direction: row; align-items: center; gap: 24px; }
}

.footer__legal a {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer__legal a:hover { color: rgba(255,255,255,0.6); }

.footer__legal button {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer__legal button:hover { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════════════
   COMMON SECTION STYLES
   ═══════════════════════════════════════════════════════════════ */
.section-label {
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.h1-style {
  font-family: var(--font-headline);
  font-size: clamp(24px, 2.8vw, 42px);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 1.15;
}

.h2-style {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
}

.h3-style {
  font-family: var(--font-headline);
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.35;
}

.body-text {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  color: var(--color-body);
  line-height: 1.9;
}

.body-text-sm {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.85;
}

/* Ghost Button */
.ghost-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 40px;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
  text-decoration: none;
}

@media (min-width: 640px) {
  .ghost-btn { display: inline-block; width: auto; }
}

.ghost-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.ghost-btn--white {
  border-color: rgba(255,255,255,0.7);
  color: white;
}

.ghost-btn--white:hover {
  background: white;
  color: var(--color-primary);
}

.ghost-btn--light {
  border-color: rgba(46,71,85,0.3);
  color: rgba(46,71,85,0.7);
}

.ghost-btn--light:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ══════════════════════════════════════════════════════════════
   RESIDENCE CARD
   ═══════════════════════════════════════════════════════════════ */
.residence-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid rgba(46,71,85,0.08);
  transition: border-color 0.3s;
}

.residence-card:hover { border-color: rgba(46,71,85,0.2); }

.residence-card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.residence-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.residence-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

@media (min-width: 1024px) { .residence-card__body { padding: 32px; } }

.residence-card__location { margin-bottom: 16px; }

.residence-card__location p {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.residence-card__location p:first-child { color: var(--color-muted); }
.residence-card__location p:last-child { color: rgba(112,127,135,0.6); margin-top: 3px; }

.residence-card__name {
  font-family: var(--font-headline);
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.residence-card__desc {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.85;
  margin-bottom: 24px;
}

.residence-card__specs {
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid rgba(46,71,85,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.residence-card__specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.residence-card__spec-label {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.residence-card__spec-value {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 16px;
  color: var(--color-primary);
}

.residence-card__cta { margin-top: 28px; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: black;
}

@media (max-width: 1023px) {
  /* On mobile, extend hero slightly past viewport for scroll-reveal feel.
     Uses svh (stable viewport) to avoid resize loops from address bar. */
  .hero { height: 115svh; }
}

.hero img.hero__bg,
.hero video.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.65));
}

.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  align-items: flex-start;
  padding-bottom: calc(15svh + 4rem);
}

@media (min-width: 1024px) { .hero__content { padding-bottom: 96px; } }

.hero__tagline {
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-headline);
  font-size: clamp(24px, 4.5vw, 42px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  line-height: 1.15;
  margin-bottom: 40px;
}

@media (min-width: 1024px) { .hero__title { letter-spacing: 0.38em; } }

/* Landscape mobile fix — prevents hero text overlap when viewport is wide but short. */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .hero { height: 100svh; }
  .hero__content { padding-bottom: 2rem; }
  .hero__tagline {
    font-size: 11px;
    letter-spacing: 0.25em;
    margin-bottom: 8px;
  }
  .hero__title {
    font-size: clamp(18px, 5.5vh, 30px);
    letter-spacing: 0.18em;
    line-height: 1.25;
    margin-bottom: 20px;
  }
}

.hero__sub {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  max-width: 30rem;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding-top: calc(var(--utility-h) + var(--topbar-h) + 32px);
  padding-bottom: 48px;
}

@media (min-width: 1024px) {
  .page-hero { min-height: 420px; padding-top: calc(var(--utility-h) + var(--topbar-h) + 48px); padding-bottom: 64px; }
}

.page-hero img.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay { position: absolute; inset: 0; }

.page-hero__content { position: relative; text-align: left; width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   FILTER CHIPS
   ═══════════════════════════════════════════════════════════════ */
.filter-chip {
  padding: 12px 20px;
  border: 1px solid rgba(46,71,85,0.2);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: rgba(46,71,85,0.5);
  color: var(--color-primary);
}

.filter-chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.accordion-item { border-bottom: 1px solid rgba(46,71,85,0.12); }

/* Hide default <details> marker / triangle */
.accordion-item > summary { list-style: none; }
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary::marker { display: none; content: ''; }

.accordion-item__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
}

.accordion-item__trigger:hover .accordion-item__q { color: var(--color-body); }

.accordion-item__q {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  color: var(--color-primary);
  line-height: 1.5;
  transition: color 0.2s;
  /* Reset h3 defaults so the semantic tag looks identical to the old span */
  margin: 0;
  padding: 0;
  font-weight: inherit;
  display: inline;
}

.accordion-item__icon {
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--color-muted);
  transition: transform 0.3s;
}

.accordion-item[open] > .accordion-item__trigger .accordion-item__icon { transform: rotate(45deg); }

.accordion-item__body {
  overflow: hidden;
}

/* Collapsed: answer is in the DOM but visually hidden (height 0).
   Crawlers still read the content since it's in static HTML via <details>. */
.accordion-item:not([open]) > .accordion-item__body {
  max-height: 0;
  opacity: 0;
}

.accordion-item[open] > .accordion-item__body {
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.accordion-item__answer {
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  color: var(--color-body);
  line-height: 1.9;
  padding-bottom: 28px;
}

/* FAQ category sections: hidden class keeps content in DOM for crawlers */
.faq-section--hidden {
  display: none;
}

/* FAQ SIDEBAR NAV */
.faq-nav button {
  display: block;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 0;
  font-family: var(--font-headline);
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.2s;
}

.faq-nav button:hover { color: var(--color-body); }
.faq-nav button.active { color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(46,71,85,0.25);
  color: var(--color-primary);
  padding: 16px 0;
  outline: none;
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  transition: border-color 0.2s;
}

.form-input::placeholder { color: rgba(112,127,135,0.6); }
.form-input:focus { border-color: var(--color-primary); }

/* 1.0.20: two-column field row (First Name + Last Name). Stacks on mobile. */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(46,71,85,0.25);
  color: var(--color-primary);
  padding: 16px 0;
  outline: none;
  font-family: var(--font-body);
  letter-spacing: 0.035em;
  font-size: 19px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus { border-color: var(--color-primary); }

.enquiry-chip {
  width: 100%;
  padding: 12px 24px;
  border: 1px solid rgba(46,71,85,0.25);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-body);
  transition: all 0.2s;
}

@media (min-width: 640px) { .enquiry-chip { width: auto; } }

.enquiry-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.enquiry-chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cta-primary:hover {
  background: transparent;
  color: var(--color-primary);
}
.cta-primary[disabled] { cursor: default; }

.optional-tag {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-muted);
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lightbox__close:hover { color: white; }

.lightbox__counter {
  position: absolute;
  top: 28px;
  left: 32px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  padding: 16px;
  transition: color 0.2s;
}

.lightbox__nav:hover { color: white; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__img {
  width: 100%;
  max-width: 56rem;
  padding: 0 80px;
  aspect-ratio: 4/3;
}

.lightbox__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE PLACEHOLDER
   ═══════════════════════════════════════════════════════════════ */
.img-placeholder {
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY STRIP
   ═══════════════════════════════════════════════════════════════ */
.gallery-strip {
  display: flex;
  overflow-x: auto;
  gap: 3px;
  height: clamp(280px, 28vw, 420px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip__item {
  flex: none;
  cursor: zoom-in;
  height: 100%;
  aspect-ratio: 4/3;
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════
   LOCATION DISTANCES (residence detail)
   On mobile the grid collapses to 2 columns; items in the second
   row get a top border to separate them visually.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .location-distances > div:nth-child(n+3) {
    border-top: 1px solid rgba(46,71,85,0.1);
  }
  /* In the 2-col mobile layout, odd items (1st column) must not
     carry the inline border-left that the PHP loop adds. */
  .location-distances > div:nth-child(odd) {
    border-left: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COLLABORATION PAGE
   ═══════════════════════════════════════════════════════════════ */
.collab-video {
  width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-dark);
  overflow: hidden;
  cursor: pointer;
}

.collab-video--inline {
  cursor: default;
  background: #000;
}
.collab-video--inline video {
  display: block;
}

.collab-video__grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--color-bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-bg) 1px, transparent 1px);
  background-size: 80px 80px;
}

.collab-video__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s;
}

@media (min-width: 1024px) { .collab-video__play { width: 80px; height: 80px; } }

.collab-video:hover .collab-video__play { border-color: rgba(255,255,255,0.6); }

/* Collaboration hero responsive overrides */
@media (min-width: 1024px) {
  .collab-hero-section {
    padding-top: 160px !important;
    padding-bottom: 80px !important;
    min-height: 85svh !important;
  }
  .collab-hero-inner { padding-top: 64px !important; }
  .collab-video-wrap { margin-top: 80px !important; }
}

/* Collaboration content blocks — use simple 2-col grid to avoid
   the 12-col + large-gap overflow that breaks at 1024-1280px. */
@media (min-width: 1024px) {
  .collab-block {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 112px !important;
    padding: 112px 0 !important;
  }
  .collab-block--reverse {
    direction: rtl;
  }
  .collab-block--reverse > * {
    direction: ltr;
  }
}

/* Collaboration CTA responsive overrides */
@media (min-width: 1024px) {
  .collab-cta-section { padding: 80px 0 !important; }
  .collab-cta {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════════════════════════ */
.required-star { color: var(--color-accent); margin-left: 2px; }

/* ── Leaflet Map z-index containment ─────────────────────────── */
#residence-map,
#contact-map {
  position: relative;
  z-index: 0;
}

#residence-map .leaflet-pane,
#contact-map .leaflet-pane,
#residence-map .leaflet-control,
#contact-map .leaflet-control {
  z-index: auto;
}

#residence-map .leaflet-top,
#contact-map .leaflet-top,
#residence-map .leaflet-bottom,
#contact-map .leaflet-bottom {
  z-index: 10;
}

.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-5-4 { aspect-ratio: 5/4; }
.aspect-video { aspect-ratio: 16/9; }

.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }

.hidden { display: none; }

@media (max-width: 1023px) {
  .lg-only { display: none; }
}

@media (min-width: 1024px) {
  .mobile-only { display: none; }
}

@media (max-width: 767px) {
  .md-up { display: none; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .utility-bar, .topbar, .mobile-menu, .footer { display: none; }
  .page-wrap > main.has-topbar { padding-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.navigation.pagination {
  margin-top: 48px;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid rgba(46,71,85,0.15);
  transition: all 0.2s;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.navigation.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

/* (cookie consent panel removed — handled by CookieYes plugin) */