/*
Theme Name: Ariane Properties
Theme URI: https://arianeproperties.qa/
Author: Ariane Properties
Description: Custom classic WordPress theme for Ariane Properties, converted from the approved static frontend.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ariane-properties
*/

/* ============================================
   Ariane Properties — Homepage
   Desktop build (1920px canvas, 115px side margins)
   ============================================ */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-charcoal: #1E191C;
  --color-grey: #8C8F97;
  --color-silver: #A7A9AC;
  --color-silver-dark: #70747A;
  --color-silver-light: #E2E3E5;
  --color-brown: var(--color-silver-dark); /* compatibility alias: no gold */
  --color-magenta-7: #141014;

  /* Typography */
  --font-family: 'Lato', sans-serif;

  --h1-size: clamp(48px, 4.67vw, 89.6px);
  --h1-line: 1.05;
  --h1-letter: -0.01em;

  --title-size: clamp(38px, 2.84vw, 54.4px);
  --title-line: 1.05;
  --title-letter: -0.01em;

  /* Layout */
  --side-margin: clamp(24px, 6vw, 115px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-charcoal);
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #B7BABE;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

ul {
  list-style: none;
}

.pt-0{
  padding-top: 0 !important;
}

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

/* Reusable heading classes — same size/weight, color set per-section */
.h1-banner {
  font-family: var(--font-family);
  font-size: var(--h1-size);
  font-style: normal;
  font-weight: 900;
  line-height: var(--h1-line);
  letter-spacing: var(--h1-letter);
  color: var(--color-white);
  text-shadow: 0 2px 24px rgba(112, 116, 122, 0.80);
}

.section-title {
  font-family: var(--font-family);
  font-size: var(--title-size);
  font-style: normal;
  font-weight: 900;
  line-height: var(--title-line);
  letter-spacing: var(--title-letter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: rotate(-20deg);
}

/* ============================================
   Header / Primary Navigation
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 55px var(--side-margin) 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-dark {
  color: var(--color-white);
}

.site-header.is-light {
  color: var(--color-charcoal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text .ar {
  font-size: 15px;
  letter-spacing: 2px;
}

.brand-text .en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 46px;
}

.mobile-primary-nav {
  display: none;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle,
.nav-backdrop {
  display: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  /* border: 1px solid currentColor; */
  border: var(--stroke-weight-1, 1px) solid rgba(226, 227, 229, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Side dot navigation — fixed to viewport,
   independent of the centered content column
   ============================================ */

.side-nav {
  position: fixed;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.side-nav .scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #C6C9CD;
}

.side-nav .scroll-line {
  width: 1px;
  height: 46px;
  background: currentColor;
  opacity: 0.5;
}

.side-nav-dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}

.side-nav-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #E2E3E5 !important;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.side-nav-dots button.is-active {
  background: currentColor;
  transform: scale(1.15);
}

.side-nav.theme-light {
  color: var(--color-white);
}

.side-nav.theme-dark {
  color: var(--color-charcoal);
}

/* ============================================
   Utility contact rail (right side, fixed)
   ============================================ */

.contact-rail {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-rail a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: var(--stroke-weight-1, 1px) solid var(--color-orange-9035, rgba(226, 227, 229, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.contact-rail a svg {
  width: 17px;
  height: 17px;
}

/* ============================================
   Shared fixed background video (Hero + Search)
   ============================================ */

.site-bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 1080px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 20, 0.55) 0%, rgba(20, 16, 20, 0.15) 30%, rgba(20, 16, 20, 0.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 90px;
}

.hero .eyebrow {
  color: #E2E3E5;
  font-size: 16px;
  font-weight: 300;
}

.hero__body {
  max-width: 560px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 28px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 49px;
  padding: 18px 28px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn--solid {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn--outline {
  border: 1px solid #E2E3E5;
  color: #E2E3E5;
}

.hero__stats {
  display: flex;
  gap: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 560px;
}

.hero__stat .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-white);
}

.hero__stat .label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.search-section {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.search-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(20 16 20 / 90%) 0%, rgb(20 16 20) 60%, rgba(20, 16, 20, 0.85) 100%);
}

.search-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 100px;
}

.search-section .eyebrow {
  color: #E2E3E5;
  font-size: 11.5px;
}

.search-section .section-title {
  color: var(--color-white);
  margin-bottom: 64px;
}

.search-panel {
  background: var(--color-white);
  border-radius: 5px;
  padding: 40px 48px 128px;
}

.search-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid #E7E5E2;
  margin-bottom: 50px;
}

.search-tabs button {
  padding-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-grey);
  position: relative;
}

.search-tabs button.is-active {
  color: var(--color-charcoal);
}

.search-tabs button.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--color-brown);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 10px;
  border: 1px solid rgba(140, 143, 151, 0.60);
  font-size: 15px;
  color: var(--color-charcoal);
  max-height: 49px;
}

.search-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-charcoal);
}

.search-input input:focus {
  outline: none;
}

.search-input input::placeholder {
  color: var(--color-grey);
  opacity: 1;
}

.search-input svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-grey);
}

/* Standard action button — matches Figma spec exactly, reused for
   Search and Filter (and any future same-style action button) so
   sizing never drifts out of sync between instances */
.btn-standard {
  display: flex;
  width: 120.83px;
  padding: 16px 30px;
  justify-content: center;
  align-items: center;
  flex: none;
  background: #8C8F97;
  border: 1px solid #1E191C;
  color: var(--color-white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.747px;
  text-transform: uppercase;
  white-space: nowrap;
  max-height: 49px;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr) auto;
  gap: 24px;
  align-items: stretch;
}

.filter-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.filter-field label {
  font-size: 10.6px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brown);
}

.filter-field.select-wrap {
  position: relative;
}

.filter-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid #E7E5E2;
  background: transparent;
  padding: 0 20px 12px 0;
  font-family: var(--font-family);
  font-size: 14.7px;
  color: var(--color-charcoal);
  cursor: pointer;
}

.filter-field select:focus {
  outline: none;
  border-bottom-color: var(--color-brown);
}

.filter-field .select-chevron {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 14px;
  height: 14px;
  color: var(--color-grey);
  pointer-events: none;
}

.filter-submit {
  /* sizing/color now comes from .btn-standard */
}

/* ============================================
   FEATURED SPACES (carousel)
   ============================================ */

.featured-section {
  /* min-height: 1080px; */
  display: flex;
  align-items: flex-start;
  padding: 180px 0 100px;
  background: var(--color-white);
}

.featured-section__inner {
  width: 100%;
}

.featured-section .eyebrow {
  color: var(--color-brown);
}

.featured-section .section-title {
  color: var(--color-charcoal);
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.featured-filter label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 10px;
}

.featured-filter select {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-charcoal);
  border: none;
  border-bottom: 1px solid var(--color-charcoal);
  padding-bottom: 8px;
  background: transparent;
  min-width: 180px;
}

.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.property-card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  transition: all .3s ease
}

.property-card:hover {
  border-color: var(--color-brown);
  box-shadow: 0 0 30px rgb(112 116 122 / 30%);
  transition: all .3s ease
}

.property-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card__count {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #8C8F97;
  color: var(--color-white);
  font-size: 12px;
  padding: 5px 10px;
}

.property-card__body {
  padding: 13px;
  background: #F6F6F6;
}

.property-card__type {
  font-size: 10.6px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1E191C;
  margin-bottom: 12px;
}

.property-card__price {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.property-card__price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-grey);
}

.property-card__desc {
  font-size: 15px;
  color: #1E191C;
  margin-bottom: 10px;
}

.property-card__loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--color-grey);
  margin-bottom: 12px;
  margin-top: 25px;
}

.property-card__loc svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.property-card__meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--color-grey);
  margin-bottom: 25px;
}

.property-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  border-right: 1px solid #70747A;
  padding-right: 12px;
}

.property-card__meta span:last-child {
  border-right: none;
  padding-right: 0;
}

.property-card__actions {
  display: flex;
  gap: 22px;
}

.property-card__actions .icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #70747A;
  color: var(--color-charcoal);
  flex-shrink: 0;
}

.property-card__actions .btn-appt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-brown);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.carousel-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #E7E5E2 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  background: var(--color-white);
}

.carousel-arrow--prev {
  left: -22px;
}

.carousel-arrow--next {
  right: -22px;
}

/* ============================================
   PORTFOLIO / EXPLORE BY LIFESTYLE
   ============================================ */

.portfolio-section {
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  padding: 102px 0 112px;
  background: var(--color-white);
  overflow: hidden;
}

.portfolio-section__inner {
  width: 100%;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 54px;
}

.portfolio-heading {
  min-width: 0;
}

.portfolio-section .eyebrow {
  color: var(--color-charcoal);
  margin-bottom: 24px;
}

.portfolio-section .section-title {
  max-width: 1080px;
  color: var(--color-charcoal);
  font-size: clamp(42px, 3.15vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.portfolio-section .section-title strong {
  color: var(--color-silver-dark);
  font-weight: 900;
}

.portfolio-view-all {
  min-width: 142px;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--color-grey);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: background-color .3s ease, transform .3s ease;
}

.portfolio-view-all:hover {
  background: var(--color-charcoal);
  transform: translateY(-2px);
}

.portfolio-accordion {
  width: 100%;
  height: clamp(560px, 35vw, 660px);
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.portfolio-card {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  flex-grow: 1;
  overflow: hidden;
  background: var(--color-charcoal);
  isolation: isolate;
  transition: flex-grow .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-accordion:not(:hover) .portfolio-card.is-active,
.portfolio-card:focus-visible {
  flex-grow: 4.65;
}

.portfolio-accordion:hover .portfolio-card,
.portfolio-accordion:focus-within .portfolio-card {
  flex-grow: 1;
}

.portfolio-accordion .portfolio-card:hover,
.portfolio-accordion .portfolio-card:focus-visible {
  flex-grow: 4.65;
}

.portfolio-card__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  filter: saturate(.86);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
}

.portfolio-card:hover .portfolio-card__image,
.portfolio-card:focus-visible .portfolio-card__image,
.portfolio-accordion:not(:hover) .portfolio-card.is-active .portfolio-card__image {
  transform: scale(1);
  filter: saturate(1);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, .20) 0%, rgba(18, 18, 20, .08) 36%, rgba(18, 18, 20, .76) 100%),
    linear-gradient(90deg, rgba(18, 18, 20, .32) 0%, transparent 48%);
  transition: background .55s ease;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 20, 22, .16);
  opacity: 1;
  transition: opacity .45s ease;
}

.portfolio-accordion:not(:hover) .portfolio-card.is-active::after,
.portfolio-card:hover::after,
.portfolio-card:focus-visible::after {
  opacity: 0;
}

.portfolio-card__vertical-title {
  position: absolute;
  top: 22px;
  left: 16px;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  color: var(--color-white);
  font-size: clamp(20px, 1.55vw, 30px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .96;
  transition: opacity .28s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-accordion:not(:hover) .portfolio-card.is-active .portfolio-card__vertical-title,
.portfolio-card:hover .portfolio-card__vertical-title,
.portfolio-card:focus-visible .portfolio-card__vertical-title {
  opacity: 0;
  transform: translateY(-12px);
}

.portfolio-card__content {
  position: absolute;
  left: clamp(28px, 3vw, 64px);
  right: clamp(28px, 3vw, 64px);
  bottom: clamp(34px, 4vw, 72px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition: opacity .32s ease, visibility .32s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-accordion:not(:hover) .portfolio-card.is-active .portfolio-card__content,
.portfolio-card:hover .portfolio-card__content,
.portfolio-card:focus-visible .portfolio-card__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .15s;
}

.portfolio-card__tag {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolio-card__name {
  display: block;
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(32px, 2.35vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.portfolio-card__description {
  display: block;
  max-width: 490px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.portfolio-card__cta {
  position: relative;
  display: inline-flex;
  width: auto;
  margin: 0;
  padding-bottom: 8px;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
}

.portfolio-card__cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .72);
  transform-origin: left center;
  transition: transform .35s ease;
}

.portfolio-card:hover .portfolio-card__cta::after,
.portfolio-card:focus-visible .portfolio-card__cta::after {
  transform: scaleX(.72);
}

/* ============================================
   PROPERTY MANAGEMENT
   ============================================ */

.pm-section {
  min-height: 1080px;
  display: flex;
  align-items: center;
  padding: 100px 0;
  background: var(--color-white);
}

.pm-section__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.pm-image {
  aspect-ratio: 1 / 0.98;
  overflow: hidden;
}

.pm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-section .eyebrow {
  color: var(--color-brown);
}

.pm-section .section-title {
  color: var(--color-charcoal);
  margin-bottom: 24px;
}

.pm-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-grey);
  max-width: 460px;
  margin-bottom: 40px;
}

.pm-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 44px;
}

.pm-list li {
  padding-left: 24px;
  border-left: 2px solid var(--color-brown);
}

.pm-list .pm-list__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.pm-list .pm-list__desc {
  font-size: 14px;
  color: var(--color-grey);
}

.btn--ghost {
  border: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-section {
  position: relative;
  min-height: 1080px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 180px;
}

.testimonial-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-section__overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(20, 16, 20, 0.75) 0%, rgba(20, 16, 20, 0.45) 40%, rgba(20, 16, 20, 0.85) 100%); */
}

.testimonial-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.testimonial-section .eyebrow {
  color: var(--color-white);
}

.testimonial-section .section-title {
  color: var(--color-white);
  margin-bottom: 150px;
}

.testimonial-slide {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-track {
  min-height: 200px;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.testimonial-stars svg {
  /* width: 20px;
  height: 20px; */
  fill: #E8A93B;
}

.testimonial-quote {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 32px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-white);
}

.testimonial-role {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.testimonial-dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-white);
}

/* ============================================
   STANDARDS / CERTIFICATIONS
   ============================================ */

.standards-section {
  display: flex;
  align-items: flex-start;
  background: var(--color-white);
  padding: 160px 0;
  display: none;
}

.standards-section__inner {
  width: 100%;
}

.standards-text {
  max-width: 900px;
  margin-bottom: 80px;
}

.standards-section .eyebrow {
  color: var(--color-brown);
}

.standards-section .section-title {
  color: var(--color-charcoal);
  margin-bottom: 0;
}

.standards-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto;
}

.standard-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: auto;
}

.standard-item img {
  height: 100px;
  width: 100%;
  object-fit: contain;
  max-width: 200px;
  display: block;
  margin: auto;
}

.standard-item span {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  border: 1px solid #E7E5E2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-charcoal);
  white-space: nowrap;
}



/* ============================================
   MOBILE APP
   ============================================ */

.home .app-section {
  position: relative;
  min-height: 1080px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home .app-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(35, 39, 42, 0.94) 0%, rgba(23, 26, 29, 0.95) 55%, rgba(43, 58, 51, 0.92) 100%);
}

.home .app-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.home .app-section .eyebrow {
  color: var(--color-white);
  opacity: 0.85;
}

.home .app-section .section-title {
  color: var(--color-white);
  margin-bottom: 24px;
}

.home .app-copy {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  margin-bottom: 40px;
}

.home .app-store-buttons {
  display: flex;
  gap: 16px;
}

.home .store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

.home .store-btn svg {
  width: 22px;
  height: 22px;
}

.home .store-btn .store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.home .store-btn .store-btn__label {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.home .store-btn .store-btn__name {
  font-size: 14px;
  font-weight: 700;
}

.home .app-phone {
  display: flex;
  justify-content: center;
}

.home .app-phone-frame {
  position: relative;
  width: 350px;
  aspect-ratio: 300 / 610;
  border-radius: 40px;
  border: 8px solid #0C0D0E;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.home .app-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ============================================
   MOBILE APP
   ============================================ */





.sub_page .app-section {
  position: relative;
  padding: 72px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sub_page .app-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(116deg, #70747A -15.79%, #141014 74.44%);
}

.sub_page .app-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.sub_page .app-text {
  max-width: 640px;
}

.sub_page .app-section .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: #E2E3E5;
  opacity: 0.85;
}

.sub_page .app-section .section-title {
  font-size: 51.2px;
  line-height: 1.15;
  letter-spacing: -0.36px;
  color: var(--color-white);
  margin-top: 15px;
  margin-bottom: 30px;
  white-space: nowrap;
}

.sub_page .app-copy {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
}

.sub_page .app-store-buttons {
  flex: none;
  display: flex;
  gap: 30px;
}

.sub_page .store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  min-width: 190px;
  border-radius: 5px;
  border: 1px solid #FFF;
}

.sub_page .store-btn svg {
  width: 18px;
  height: 18px;
}

.sub_page .store-btn .store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sub_page .store-btn .store-btn__label {
  font-size: 9.6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sub_page .store-btn .store-btn__name {
  font-size: 12.5px;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-magenta-7);
  color: var(--color-white);
  padding: 90px 0 40px;
}

.site-footer__inner {}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 70px;
}

.footer-brand .brand {
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   INTERIOR PAGE BANNER (Rent / Buy / Projects, etc.)
   ============================================ */

.page-banner {
  position: relative;
}

.page-banner__media {
  position: relative;
  height: 640px;
  overflow: hidden;
}

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

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 20, 0.32) 0%, rgba(20, 16, 20, 0.08) 30%, rgba(20, 16, 20, 0) 55%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0) 55%);
}

.page-banner__content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.6px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #70747A;
  margin-bottom: 22px;
}

.breadcrumb::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transform: rotate(-20deg);
}

.breadcrumb a {
  color: inherit;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb__sep {
  opacity: 0.5;
  font-size: 20px;
  line-height: 1;
  margin-top: -5px
}

.breadcrumb__current {
  opacity: 0.85;
}

.page-banner__title {
  font-size: 56px;
  line-height: 1.1;
  color: var(--color-charcoal);
  text-shadow: none;
  margin-bottom: 34px;
}

.page-search__panel {
  position: relative;
  z-index: 3;
  max-width: 1270px;
  width: 100%;
  padding: 40px 48px;
  box-shadow: 0 30px 70px rgba(20, 16, 20, 0.22);
}

.rent-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto auto;
  gap: 24px;
  align-items: stretch;
}

.rent-filters__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rent-filters__btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Interior pages (no full-bleed video) get a solid header bar
   so nav text stays legible over the page banner image */
.site-header.page-header {
  background: var(--color-charcoal);
  color: var(--color-white) !important;
}

/* ============================================
   PROPERTY LISTING GRID (Rent / Buy results)
   ============================================ */

.listing-section {
  padding: 80px 0 140px;
  background: var(--color-white);
}

.listing-section .eyebrow {
  color: var(--color-brown);
  margin-bottom: 20px;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  margin-bottom: 48px;
  gap: 25px;
}

.listing-sort {
  position: relative;
}

.listing-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 215px;
  border: 1px solid #E7E5E2;
  background: transparent;
  padding: 13px 38px 13px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  border: 1px solid #1E191C;
  cursor: pointer;
}

.listing-sort select:focus {
  outline: none;
  border-color: var(--color-brown);
}

.listing-sort .select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-grey);
  pointer-events: none;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-toggle button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D8D3C9;
}

.view-toggle button.is-active {
  color: var(--color-brown);
}

.view-toggle svg {
  width: 26px;
  height: 26px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/*
 * Pagination supports both the custom Ariane classes and
 * WordPress' default paginate_links() .page-numbers markup.
 */
.pagination__arrow,
.pagination__num,
.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #E2E3E5;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-silver-dark);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Previous / next controls */
.pagination__arrow,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  border-color: #C6C9CD;
  color: var(--color-charcoal);
}

.pagination__arrow svg {
  width: 14px;
  height: 14px;
}

.pagination__arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Active/current page */
.pagination__num.is-active,
.pagination .page-numbers.current {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-white);
  box-shadow: 0 7px 18px rgba(30, 25, 28, 0.14);
  cursor: default;
}

/* Ellipsis stays clean instead of looking like a button */
.pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0 3px;
  border-color: transparent;
  background: transparent;
  color: var(--color-grey);
  box-shadow: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .pagination__num:not(.is-active):hover,
  .pagination .page-numbers:not(.current):not(.dots):hover {
    background: #F6F6F6;
    border-color: var(--color-silver-dark);
    color: var(--color-charcoal);
    transform: translateY(-2px);
  }

  .pagination__arrow:not([disabled]):hover,
  .pagination .page-numbers.prev:hover,
  .pagination .page-numbers.next:hover {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
  }
}

/* ============================================
   PROPERTY DETAIL PAGE (single listing)
   ============================================ */

.listing-top {
  padding: 150px 0 0;
  background: var(--color-white);
}

.listing-top .breadcrumb {
  margin-bottom: 28px;
}

/* Gallery: large hero image + stacked thumbnail column */
.gallery {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 35px;
}

.gallery__main {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9.3;
  background: #EFEAE0;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 20, 0.6);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
}

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery__thumb {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: #EFEAE0;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumb.is-active {
  border-color: var(--color-brown);
}

/* Price + details + description + amenities + sidebar */
.listing-body {
  padding: 56px 0 0;
  background: var(--color-white);
}

.listing-price h1 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 40px;
  line-height: 1.2;
}

.listing-price__amount {
  font-weight: 900;
  color: var(--color-charcoal);
}

.listing-price__period {
  font-weight: 400;
  font-size: 32px;
  color: var(--color-grey);
}

.listing-divider {
  border: none;
  border-top: 1px solid #E7E5E2;
  margin: 32px 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.listing-block__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 22px;
  column-gap: 60px;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 300;
}

.detail-item__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1E191C;
}

.detail-item__label img,
.detail-item__label svg {
  width: 25px;
  height: 20px;
  color: var(--color-brown);
  flex-shrink: 0;
}

.detail-item__value {
  font-weight: 700;
  color: var(--color-charcoal);
  white-space: nowrap;
}

.listing-copy {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-charcoal);
  font-weight: 300;
  margin-bottom: 20px;
}

.listing-copy:last-child {
  margin-bottom: 0;
}

.listing-copy__subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}

.listing-address__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 14px;
}

.listing-address {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-grey);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 24px;
  column-gap: 40px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-charcoal);
}

.amenity-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-brown);
  flex-shrink: 0;
}

/* Sidebar contact card */
.listing-sidebar {
  position: sticky;
  top: 130px;
}

.sidebar-card {
  background: #DCD3C3;
  border-radius: 10px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-card__logo {
  height: auto;
  width: 172px;
  margin-bottom: 70px;
}

.btn-map {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-brown);
  color: var(--color-white);
  padding: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 194px;
  height: 49px;
}

.sidebar-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(112, 116, 122, 0.25);
  margin-bottom: 28px;
}

.sidebar-card__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-brown);
  color: var(--color-white);
  padding: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  max-width: 194px;
  height: 49px;
}

.btn-sidebar:hover,
.btn-map:hover {
  opacity: 0.88;
}

/* Location section */
.location-section {
  margin-top: 70px;
  /* background: var(--color-magenta-7); */
  background: var(--color-charcoal);
  padding: 100px 0;
}

.location-section__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 40px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.location-map {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(12%) contrast(1.05);
}

.location-map__pin {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-charcoal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-info-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #EAE3D2;
  border-radius: 8px;
  padding: 25px 45px;
  font-size: 16px;
  font-weight: 300;
  color: #211E21;
  height: 76px;
}

.location-info-item__icon {
  position: relative;
  /* width: 44px; */
  /* height: 44px; */
  border-radius: 6px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-shrink: 0;
  min-width: 100px
}

span.location-info-item__icon:after {
  content: '';
  position: absolute;
  right: 0;
  top: -16px;
  height: 65px;
  width: 1px;
  background: #8C8F97;
}

/* Similar properties (reuses .property-grid / .property-card) */
.similar-section {
  background: var(--color-white);
  padding: 90px 0 110px;
}

.similar-section__title {
  font-size: 34px;
  font-weight: 900;
  color: var(--color-charcoal);
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    flex-direction: row;
  }

  .gallery__thumb {
    aspect-ratio: 4 / 3;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-sidebar {
    position: static;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .similar-section .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Responsive system + interaction polish
   Desktop styling above remains the source of
   truth; these rules adapt it by viewport.
   ============================================ */

.property-card__img img,
.gallery__main img,
.gallery__thumb img,
.pm-image img {
  transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {

  .property-card:hover .property-card__img img,
  .gallery__thumb:hover img {
    transform: scale(1.035);
  }

  .primary-nav a,
  .footer-col a,
  .btn,
  .btn-standard,
  .btn-appt,
  .store-btn,
  .icon-btn,
  .contact-rail a {
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .primary-nav a:hover,
  .footer-col a:hover {
    opacity: 0.72;
  }

  .btn:hover,
  .btn-standard:hover,
  .btn-appt:hover,
  .store-btn:hover,
  .contact-rail a:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1600px) {
  .site-header {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .primary-nav {
    gap: 28px;
  }

  .primary-nav a {
    font-size: 12.5px;
  }

  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-card {
    flex-basis: calc((100% - 48px) / 3);
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
}

@media (max-width: 1240px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    min-height: 82px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-header.is-scrolled,
  .site-header.page-header {
    background: rgba(30, 25, 28, 0.94);
    box-shadow: 0 12px 34px rgba(20, 16, 20, 0.16);
    backdrop-filter: blur(14px);
    color: var(--color-white) !important;
  }

  .brand img {
    height: 36px;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 112;
    width: min(420px, calc(100vw - 32px));
    height: 100dvh;
    padding: 118px 42px 42px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    color: var(--color-white);
    background: linear-gradient(155deg, #2B2328 0%, #141014 72%);
    box-shadow: -24px 0 60px rgba(20, 16, 20, 0.32);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
  }

  #primaryNav {
    display: none;
  }

  .mobile-primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    letter-spacing: 0.9px;
  }

  .menu-open .primary-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .menu-toggle {
    position: relative;
    z-index: 114;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(226, 227, 229, 0.35);
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: inherit;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 108;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(20, 16, 20, 0.48);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

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

  .side-nav {
    display: none;
  }

  .contact-rail {
    right: 22px;
  }

  .search-filters,
  .rent-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-filters .btn-standard,
  .rent-filters .btn-standard {
    width: 100%;
    min-height: 49px;
    align-self: end;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-section__inner {
    gap: 64px;
  }

  .footer-top {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 36px;
  }

  .sub_page .app-section__inner {
    align-items: flex-start;
    gap: 40px;
  }

  .sub_page .app-section .section-title {
    white-space: normal;
  }
}

@media (max-width: 1024px) {

  .hero,
  .featured-section,
  .portfolio-section,
  .pm-section,
  .testimonial-section,
  .home .app-section {
    min-height: auto;
  }

  .hero {
    height: max(760px, 100svh);
  }

  .hero__content {
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .search-section__inner,
  .featured-section,
  .portfolio-section,
  .standards-section {
    padding-top: 120px;
    padding-bottom: 90px;
  }

  .search-panel {
    padding: 36px 36px 72px;
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .pm-section {
    padding: 100px 0;
  }

  .pm-section__inner,
  .home .app-section__inner {
    grid-template-columns: 1fr;
  }

  .pm-image {
    max-height: 640px;
  }

  .pm-content {
    max-width: 680px;
  }

  .testimonial-section {
    padding: 120px 0;
  }

  .testimonial-section .section-title {
    margin-bottom: 88px;
  }

  .home .app-section {
    padding: 110px 0;
  }

  .home .app-section__inner {
    gap: 64px;
  }

  .home .app-phone {
    justify-content: flex-start;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 36px;
  }

  .sub_page .app-section__inner {
    flex-direction: column;
  }

  .sub_page .app-store-buttons {
    flex-wrap: wrap;
  }

  .page-search__panel {
    padding: 34px;
  }

  .page-banner__media {
    height: auto;
    min-height: 760px;
  }

  .page-banner__content {
    padding-bottom: 48px;
  }

  .rent-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-grid {
    gap: 48px;
  }

  .sidebar-card {
    align-items: flex-start;
  }

  .sidebar-card__logo {
    margin-bottom: 38px;
  }

  .sidebar-card__actions {
    flex-direction: row;
    align-items: stretch;
  }

  .btn-map,
  .btn-sidebar {
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --side-margin: 22px;
    --h1-size: clamp(43px, 12vw, 62px);
    --title-size: clamp(34px, 9vw, 46px);
  }

  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    min-height: 74px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .site-header:not(.page-header) {
    background: linear-gradient(180deg, rgba(20, 16, 20, 0.58) 0%, rgba(20, 16, 20, 0) 100%);
  }

  .site-header.is-scrolled {
    background: rgba(30, 25, 28, 0.94);
  }

  .brand img {
    height: 32px;
    max-width: 148px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .icon-btn,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .primary-nav {
    width: min(360px, calc(100vw - 20px));
    padding: 102px 28px 34px;
  }

  .contact-rail {
    top: auto;
    right: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 96;
    padding: 7px;
    flex-direction: row;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(30, 25, 28, 0.88);
    box-shadow: 0 12px 34px rgba(20, 16, 20, 0.28);
    backdrop-filter: blur(14px);
    transform: translateX(50%);
  }

  .contact-rail a {
    width: 42px;
    height: 42px;
    border-color: rgba(226, 227, 229, 0.24);
  }

  .hero {
    height: max(690px, 100svh);
    min-height: 690px;
  }

  .hero__content {
    padding-top: 116px;
    padding-bottom: 72px;
  }

  .hero__body {
    max-width: 520px;
    font-size: 16px;
    margin-top: 22px;
    margin-bottom: 30px;
  }

  .hero__ctas {
    flex-wrap: wrap;
    margin-bottom: 42px;
  }

  .hero__stats {
    max-width: 100%;
    gap: 24px;
    justify-content: space-between;
  }

  .hero__stat .num {
    font-size: 27px;
  }

  .hero__stat .label {
    font-size: 10px;
  }

  .search-section__inner,
  .featured-section,
  .portfolio-section,
  .standards-section {
    padding-top: 88px;
    padding-bottom: 72px;
  }

  .search-section .section-title {
    margin-bottom: 38px;
  }

  .search-panel,
  .page-search__panel {
    padding: 26px 22px 32px;
    border-radius: 8px;
  }

  .search-tabs {
    gap: 26px;
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-bar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .search-input {
    min-height: 52px;
  }

  .search-bar .btn-standard {
    width: 100%;
    min-height: 52px;
  }

  .search-filters,
  .rent-filters {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filter-field {
    gap: 10px;
  }

  .featured-header,
  .portfolio-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 38px;
  }

  .featured-filter,
  .featured-filter select {
    width: 100%;
  }

  .property-card {
    flex-basis: min(78vw, 410px);
  }

  .carousel-arrow {
    top: auto;
    bottom: -58px;
  }

  .carousel-arrow--prev {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }

  .featured-section {
    padding-bottom: 130px;
  }

  .portfolio-grid,
  .property-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    aspect-ratio: 4 / 3;
  }

  .pm-section {
    padding: 78px 0;
  }

  .pm-section__inner {
    gap: 48px;
  }

  .pm-copy {
    font-size: 16px;
  }

  .pm-list {
    gap: 20px;
  }

  .testimonial-section {
    padding: 88px 0 100px;
  }

  .testimonial-section .section-title {
    margin-bottom: 64px;
  }

  .testimonial-quote {
    font-size: 21px;
    line-height: 1.55;
  }

  .standards-text {
    margin-bottom: 52px;
  }

  .standards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standard-item,
  .standard-item span {
    width: 100%;
  }

  .standard-item span {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .home .app-section {
    padding: 88px 0 100px;
  }

  .home .app-section__inner {
    gap: 54px;
  }

  .home .app-store-buttons,
  .sub_page .app-store-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .home .store-btn,
  .sub_page .store-btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
  }

  .home .app-phone {
    justify-content: center;
  }

  .home .app-phone-frame {
    width: min(280px, 82vw);
    border-radius: 32px;
  }

  .site-footer {
    padding: 72px 0 104px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 54px;
  }

  .footer-col ul {
    gap: 12px;
  }

  .page-banner__media {
    height: auto;
    min-height: 970px;
  }

  .page-banner__content {
    padding-top: 116px;
    padding-bottom: 36px;
  }

  .page-banner__title {
    font-size: clamp(42px, 11vw, 56px);
    margin-bottom: 28px;
  }

  .page-banner__overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 66%, rgba(255, 255, 255, 0.32) 100%);
  }

  .listing-section {
    padding: 68px 0 96px;
  }

  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .listing-sort,
  .listing-sort select {
    width: 100%;
  }

  .view-toggle {
    align-self: flex-end;
  }

  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .pagination__arrow,
  .pagination__num,
  .pagination .page-numbers {
    flex: 0 0 38px;
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .listing-top {
    padding-top: 108px;
  }

  .listing-top .breadcrumb {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gallery {
    gap: 14px;
  }

  .gallery__main {
    aspect-ratio: 4 / 3;
  }

  .gallery__thumbs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery__thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery__thumb {
    flex: 0 0 42%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

  .listing-body {
    padding-top: 42px;
  }

  .listing-price h1 {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 34px;
  }

  .listing-price__period {
    font-size: 21px;
  }

  .detail-grid,
  .amenities-grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .detail-item {
    padding-bottom: 14px;
    border-bottom: 1px solid #E7E5E2;
  }

  .sidebar-card {
    padding: 32px 22px;
  }

  .sidebar-card__actions {
    flex-direction: column;
  }

  .location-section {
    margin-top: 56px;
    padding: 72px 0;
  }

  .location-map iframe {
    min-height: 330px;
  }

  .location-info-item {
    height: auto;
    min-height: 74px;
    padding: 20px;
  }

  .location-info-item__icon {
    min-width: 76px;
  }

  span.location-info-item__icon::after {
    top: -12px;
    height: 56px;
  }

  .similar-section {
    padding: 72px 0 90px;
  }

  .similar-section__title {
    font-size: 30px;
    margin-bottom: 36px;
  }

  .sub_page .app-section {
    padding: 72px 0 90px;
  }

  .sub_page .app-section .section-title {
    font-size: clamp(34px, 9vw, 46px);
  }
}

@media (max-width: 520px) {
  :root {
    --side-margin: 18px;
  }

  .header-actions .icon-btn:nth-child(2) {
    display: none;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    gap: 12px;
  }

  .hero__stat .num {
    font-size: 24px;
  }

  .hero__stat .label {
    max-width: 86px;
    line-height: 1.35;
  }

  .property-card {
    flex-basis: min(88vw, 390px);
  }

  .property-card__actions {
    gap: 10px;
  }

  .property-card__actions .icon-btn {
    width: 44px;
    height: 44px;
  }

  .property-card__actions .btn-appt {
    min-height: 44px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .standard-item img {
    height: 86px;
  }

  .page-banner__media {
    min-height: 990px;
  }

  .breadcrumb {
    letter-spacing: 1.1px;
  }

  .gallery__thumb {
    flex-basis: 58%;
  }

  .detail-item {
    align-items: flex-start;
  }

  .detail-item__value {
    text-align: right;
    white-space: normal;
  }

  .location-info-item {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .location-info-item__icon {
    min-width: 0;
  }

  span.location-info-item__icon::after {
    display: none;
  }
}

/* ============================================
   Screenshot-driven mobile corrections
   ============================================ */

[data-nav-section] {
  scroll-margin-top: 112px;
}

.primary-nav a[aria-current="page"] {
  opacity: 1;
}

.property-card[data-href] {
  cursor: pointer;
}

.property-card>a {
  display: block;
  color: inherit;
}

@media (max-width: 768px) {
  [data-nav-section] {
    scroll-margin-top: 84px;
  }

  .primary-nav a[aria-current="page"] {
    position: relative;
    color: #E2E3E5;
  }

  .primary-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 2px;
    background: #B7BABE;
  }

  .menu-open .contact-rail,
  body.contact-rail-hidden .contact-rail {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(50%) translateY(calc(100% + 28px));
  }

  .contact-rail {
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .similar-section .property-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .property-card {
    width: 100%;
    min-width: 0;
  }

  .property-card__body {
    padding: 16px;
  }

  .property-card__desc,
  .property-card__loc {
    overflow-wrap: anywhere;
  }

  .property-card__meta {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .property-card__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr);
    gap: 10px;
  }

  .property-card__actions .icon-btn {
    width: 44px;
    height: 44px;
  }

  .property-card__actions .btn-appt {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    line-height: 1.15;
    text-align: center;
  }

  .sidebar-card {
    align-items: center;
    padding: 30px 22px;
  }

  .sidebar-card__logo {
    width: min(160px, 58vw);
    margin: 0 auto 28px;
  }

  .sidebar-card__divider {
    margin-bottom: 20px;
  }

  .sidebar-card__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sidebar-card__actions .btn-sidebar {
    min-width: 0;
    height: 48px;
    padding: 10px;
    font-size: 11px;
  }

  .sidebar-card__actions .btn-sidebar:last-child {
    grid-column: 1 / -1;
  }

  .page-search__panel {
    overflow: hidden;
  }

  .filter-field select {
    min-height: 44px;
  }

}

@media (max-width: 520px) {
  .property-card__meta span {
    padding-right: 9px;
  }

  .property-card__actions {
    grid-template-columns: 44px 44px minmax(0, 1fr);
  }
}

/* ============================================
   Branded preloader + requested scroll utilities
   ============================================ */

body.is-loading {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #FFFFFF;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.48s ease, visibility 0.48s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__content {
  position: relative;
  width: min(260px, 68vw);
  display: grid;
  justify-items: center;
  gap: 25px;
}

.site-preloader__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 116, 122, 0.12) 0%, rgba(112, 116, 122, 0) 68%);
  transform: translate(-50%, -56%);
  animation: arianePreloaderGlow 1.9s ease-in-out infinite;
  pointer-events: none;
}

.site-preloader__logo {
  position: relative;
  z-index: 1;
  width: min(230px, 62vw);
  height: auto;
  filter: grayscale(1) brightness(0);
  animation: arianePreloaderLogo 1.9s ease-in-out infinite;
}

.site-preloader__line {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 1px;
  overflow: hidden;
  background: rgba(30, 25, 28, 0.12);
}

.site-preloader__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-charcoal);
  transform: translateX(-105%);
  animation: arianePreloaderLine 1.35s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes arianePreloaderLogo {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(2px);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes arianePreloaderGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes arianePreloaderLine {
  0% { transform: translateX(-105%); }
  52%, 100% { transform: translateX(105%); }
}

/* The homepage uses the same solid header colour as interior pages after scroll. */
.site-header:not(.page-header).is-scrolled {
  background: var(--color-charcoal);
  color: var(--color-white) !important;
  box-shadow: 0 12px 34px rgba(20, 16, 20, 0.16);
}

.back-to-top {
  position: fixed;
  right: 34px;
  bottom: 32px;
  z-index: 95;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(226, 227, 229, 0.38);
  border-radius: 50%;
  color: #E2E3E5;
  background: var(--color-charcoal);
  box-shadow: 0 12px 30px rgba(20, 16, 20, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  background: var(--color-brown);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid #E2E3E5;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px));
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-preloader__logo,
  .site-preloader__glow,
  .site-preloader__line::after {
    animation: none !important;
  }
}


/* ============================================
   PREMIUM BUTTON HOVER MOTION
   Buttons / CTAs only
   ============================================ */

@media (hover: hover) and (pointer: fine) {

  /* Shared button motion */
  .btn,
  .btn-standard,
  .btn-appt,
  .btn-map,
  .btn-sidebar,
  .store-btn,
  .icon-btn,
  .carousel-arrow,
  .pagination__num,
  .pagination__arrow,
  .view-toggle button,
  .search-tabs button,
  .back-to-top,
  .menu-toggle {
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.3s ease,
      border-color 0.3s ease,
      color 0.3s ease,
      box-shadow 0.35s ease,
      opacity 0.3s ease;
  }

  /* Main CTA buttons */
  .btn:hover,
  .btn-standard:hover,
  .btn-appt:hover,
  .btn-map:hover,
  .btn-sidebar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(30, 25, 28, 0.16);
  }

  .btn:active,
  .btn-standard:active,
  .btn-appt:active,
  .btn-map:active,
  .btn-sidebar:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 0.12s;
  }

  /* Solid button */
  .btn--solid:hover {
    background: var(--color-brown);
  }

  /* Search / filter button */
  .btn-standard:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
  }

  /* Brown action buttons */
  .btn-appt:hover,
  .btn-map:hover,
  .btn-sidebar:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    opacity: 1;
  }

  /* Outline button */
  .btn--outline:hover {
    background: #E2E3E5;
    border-color: #E2E3E5;
    color: var(--color-charcoal);
  }

  /* Ghost button */
  .btn--ghost:hover {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: var(--color-white);
  }

  /* SVG / arrow movement inside CTA */
  .btn svg,
  .btn-appt svg,
  .btn-map svg,
  .btn-sidebar svg {
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.3s ease;
  }

  .btn:hover svg,
  .btn-appt:hover svg,
  .btn-map:hover svg,
  .btn-sidebar:hover svg {
    transform: translateX(4px);
  }

  /* Circular icon buttons */
  .icon-btn:hover {
    background: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 20px rgba(30, 25, 28, 0.14);
  }

  .icon-btn:active {
    transform: scale(0.95);
  }

  .icon-btn svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .icon-btn:hover svg {
    transform: scale(1.08);
  }

  /* Carousel arrows — preserve existing translateY(-50%) */
  .carousel-arrow:hover {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(30, 25, 28, 0.16);
  }

  .carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
  }

  .carousel-arrow svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .carousel-arrow--next:hover svg {
    transform: translateX(3px);
  }

  .carousel-arrow--prev:hover svg {
    transform: translateX(-3px);
  }

  /* App Store / Google Play buttons */
  .store-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  .store-btn svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .store-btn:hover svg {
    transform: scale(1.1);
  }

  /* Pagination */
  .pagination__num:not(.is-active):hover {
    background: #C6C9CD;
    color: var(--color-charcoal);
    transform: translateY(-2px);
  }

  .pagination__arrow:not([disabled]):hover {
    color: var(--color-brown);
    transform: scale(1.12);
  }

  .pagination__arrow:not([disabled]):active {
    transform: scale(0.94);
  }

  /* Grid / list toggle */
  .view-toggle button:hover {
    color: var(--color-brown);
    transform: translateY(-2px) scale(1.08);
  }

  /* Search tabs */
  .search-tabs button:not(.is-active):hover {
    color: var(--color-charcoal);
    transform: translateY(-1px);
  }

  /* Back to top */
  .back-to-top:hover {
    background: var(--color-brown);
    border-color: var(--color-brown);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 26px rgba(30, 25, 28, 0.2);
  }

  /* Mobile menu button on devices with hover */
  .menu-toggle:hover {
    background: rgba(226, 227, 229, 0.1);
    border-color: rgba(226, 227, 229, 0.75);
    transform: scale(1.05);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-standard,
  .btn-appt,
  .btn-map,
  .btn-sidebar,
  .store-btn,
  .icon-btn,
  .carousel-arrow,
  .pagination__num,
  .pagination__arrow,
  .view-toggle button,
  .search-tabs button,
  .back-to-top,
  .menu-toggle {
    transition-duration: 0.01ms !important;
  }
}


            /* Gallery carousel controls only; the existing gallery layout is preserved. */
            .gallery__main-nav {
                position: absolute;
                top: 50%;
                z-index: 4;
                width: 46px;
                height: 46px;
                display: grid;
                place-items: center;
                border: 1px solid rgba(255, 255, 255, 0.55);
                border-radius: 50%;
                color: #fff;
                background: rgba(20, 16, 20, 0.48);
                backdrop-filter: blur(8px);
                opacity: 0;
                transform: translateY(-50%);
                transition: opacity 0.25s ease, background-color 0.25s ease;
            }

            .gallery__main:hover .gallery__main-nav,
            .gallery__main-nav:focus-visible {
                opacity: 1;
            }

            .gallery__main-nav:hover {
                background: rgba(112, 116, 122, 0.9);
            }

            .gallery__main-nav--prev {
                left: 18px;
            }

            .gallery__main-nav--next {
                right: 18px;
            }

            .gallery__main-nav svg {
                width: 19px;
                height: 19px;
            }

            .gallery__main img {
                user-select: none;
                -webkit-user-drag: none;
            }

            .gallery__thumbs {
                scroll-behavior: smooth;
                overscroll-behavior: contain;
                scrollbar-width: none;
            }

            .gallery__thumbs::-webkit-scrollbar {
                display: none;
            }

            @media (min-width: 1201px) {
                .gallery__thumbs {
                    overflow-y: auto;
                    scroll-snap-type: y mandatory;
                }

                .gallery__thumb {
                    flex: 0 0 calc((100% - 20px) / 3);
                    scroll-snap-align: start;
                }
            }

            @media (max-width: 1200px) {
                .gallery__thumbs {
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                }

                .gallery__thumb {
                    scroll-snap-align: start;
                }
            }

            @media (max-width: 768px) {
                .gallery__main-nav {
                    width: 40px;
                    height: 40px;
                    opacity: 1;
                }

                .gallery__main-nav--prev {
                    left: 12px;
                }

                .gallery__main-nav--next {
                    right: 12px;
                }
            }

            @media (prefers-reduced-motion: reduce) {
                .gallery__thumbs {
                    scroll-behavior: auto;
                }
            }
        


            /* Two synchronized Swiper instances using the same three images. */
            .gallery {
                align-items: stretch;
            }

            .property-gallery-main.swiper,
            .property-gallery-main .swiper-wrapper,
            .property-gallery-main .swiper-slide {
                width: 100%;
                height: 100%;
                min-width: 0;
                min-height: 0;
            }

            .property-gallery-main .swiper-slide img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                transform: none !important;
                animation: none !important;
                transition: none !important;
            }

            .property-gallery-main:not(.swiper-initialized) .swiper-slide:not(:first-child) {
                display: none;
            }

            .property-gallery-thumbs.swiper {
                width: 100%;
                height: auto;
                min-width: 0;
                min-height: 0;
                align-self: stretch;
                display: block;
                gap: 0;
                overflow: hidden;
            }

            .property-gallery-thumbs .swiper-wrapper {
                min-width: 0;
                min-height: 0;
            }

            .property-gallery-thumbs .gallery__thumb.swiper-slide {
                width: 100%;
                min-height: 0;
                display: block;
                flex: 0 0 auto;
                opacity: 0.72;
                cursor: pointer;
                transition: opacity 0.25s ease, border-color 0.25s ease;
            }

            .property-gallery-thumbs .gallery__thumb.swiper-slide-thumb-active {
                opacity: 1;
                border-color: var(--color-brown);
            }

            .property-gallery-thumbs .gallery__thumb img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                transform: none !important;
                animation: none !important;
                transition: none !important;
            }

            @media (max-width: 1200px) {
                .property-gallery-thumbs.swiper {
                    height: clamp(110px, 20vw, 190px);
                }

                .property-gallery-thumbs .gallery__thumb.swiper-slide {
                    height: 100%;
                    aspect-ratio: 4 / 3;
                }
            }

            @media (max-width: 520px) {
                .property-gallery-thumbs.swiper {
                    height: 108px;
                }
            }
        

/* ============================================
   WordPress integration helpers
   ============================================ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.primary-nav .menu,
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav li { list-style: none; }
.primary-nav .sub-menu { display: none; }

.custom-logo-link { display: inline-flex; align-items: center; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.property-grid.is-list-view {
  grid-template-columns: 1fr;
}
.property-grid.is-list-view .property-card {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
}
.property-grid.is-list-view .property-card__img {
  min-height: 280px;
}
.property-grid.is-list-view .property-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ariane-empty-state {
  grid-column: 1 / -1;
  padding: 54px 30px;
  border: 1px solid #e7e5e2;
  text-align: center;
}
.ariane-empty-state h2 {
  margin-bottom: 10px;
}
.ariane-empty-state p {
  color: var(--color-grey);
}

.ariane-page-content {
  padding: 170px var(--side-margin) 100px;
  min-height: 60vh;
}
.ariane-page-content .entry-title {
  margin-bottom: 28px;
}
.ariane-page-content .entry-content {
  max-width: 900px;
  line-height: 1.75;
}

.property-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-grey);
}
.property-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a8f65;
}

.detail-item__value.is-empty,
.property-card__meta .is-empty {
  color: var(--color-grey);
}

@media (max-width: 900px) {
  .property-grid.is-list-view .property-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STANDARD WORDPRESS PAGE TEMPLATE
   ============================================ */
.standard-page {
  background: var(--color-white);
  min-height: 70vh;
}

.standard-page__hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: var(--color-charcoal);
  overflow: hidden;
  padding-top: 150px;
}

.standard-page__hero-media,
.standard-page__hero-overlay {
  position: absolute;
  inset: 0;
}

.standard-page__hero-media img,
.standard-page__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standard-page__hero-overlay {
  background: linear-gradient(180deg, rgba(20, 16, 20, 0.28), rgba(20, 16, 20, 0.72));
}

.standard-page__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
}

.standard-page__hero .breadcrumb {
  margin-bottom: 24px;
  color: var(--color-white);
}

.standard-page__title {
  margin: 0;
}

.standard-page__content-section {
  padding: 90px 0 120px;
}

.standard-page__article {
  max-width: 1040px;
  margin: 0 auto;
}

.standard-page__article .entry-content {
  font-size: 17px;
  line-height: 1.75;
}

.standard-page__article .entry-content > * + * {
  margin-top: 1.25em;
}

@media (max-width: 1200px) {
  .standard-page__hero {
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  .standard-page__hero {
    min-height: 380px;
    padding-top: 125px;
  }

  .standard-page__hero-content {
    padding-bottom: 42px;
  }

  .standard-page__content-section {
    padding: 64px 0 90px;
  }
}


/* ============================================
   CLIENT VISUAL UPDATE — BLACK / SILVER SYSTEM
   ============================================ */
.btn,
.btn-standard,
.btn-appt,
.btn-sidebar,
.btn-map,
.store-btn,
.filter-submit,
.rent-filters__btn {
  border: 0 !important;
  border-radius: 6px !important;
}

.btn--outline,
.btn--ghost {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
}

.btn-standard,
.filter-submit,
.rent-filters__btn {
  background: var(--color-silver-dark);
  color: var(--color-white);
}

.property-card__quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.property-card__quick-action {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: rgba(20, 16, 20, 0.88);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background-color .2s ease;
}

.property-card__quick-action svg { width: 17px; height: 17px; }
.property-card__quick-action:hover { transform: translateY(-2px); background: var(--color-silver-dark); }
.property-card__image-link { position: absolute; inset: 0; display: block; }
.property-card__count { background: var(--color-silver-dark); }
.property-card__count svg { width: 16px; height: 12px; }
.property-card:hover { border-color: var(--color-silver); box-shadow: 0 12px 34px rgba(30, 25, 28, 0.16); }
.property-card__meta { margin-bottom: 0; }
.property-card__meta span { border-right-color: var(--color-silver); }
.property-card__desc { font-weight: 400; }
.property-card__desc a { color: inherit; }
.property-card__actions,
.property-card__actions .btn-appt { display: none !important; }

.sidebar-card__actions .btn-sidebar,
.btn-map {
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 0 !important;
  border-radius: 6px !important;
}
.sidebar-card__actions .btn-sidebar:hover,
.btn-map:hover { background: var(--color-silver-dark); }

@media (max-width: 768px) {
  .property-card__quick-actions { top: 10px; right: 10px; }
  .property-card__quick-action { width: 38px; height: 38px; }
}

/* ============================================
   PORTFOLIO RESPONSIVE OVERRIDES — keep last
   ============================================ */
@media (max-width: 1400px) and (hover: hover) and (pointer: fine) {
  .portfolio-accordion {
    height: 560px;
  }

  .portfolio-accordion:not(:hover) .portfolio-card.is-active,
  .portfolio-accordion .portfolio-card:hover,
  .portfolio-accordion .portfolio-card:focus-visible {
    flex-grow: 3.8;
  }

  .portfolio-card__content {
    left: 34px;
    right: 34px;
    bottom: 42px;
  }

  .portfolio-card__description {
    max-width: 420px;
    font-size: 14px;
  }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .portfolio-section {
    min-height: auto;
    padding: 96px 0 92px;
  }

  .portfolio-header {
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .portfolio-accordion {
    height: 540px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .portfolio-accordion::-webkit-scrollbar {
    display: none;
  }

  .portfolio-card,
  .portfolio-card.is-active,
  .portfolio-accordion:hover .portfolio-card,
  .portfolio-accordion:focus-within .portfolio-card,
  .portfolio-accordion .portfolio-card:hover,
  .portfolio-accordion .portfolio-card:focus-visible {
    flex: 0 0 min(78vw, 560px);
    aspect-ratio: auto;
    scroll-snap-align: start;
  }

  .portfolio-card__vertical-title {
    display: none;
  }

  .portfolio-card__content,
  .portfolio-accordion:not(:hover) .portfolio-card.is-active .portfolio-card__content,
  .portfolio-card:hover .portfolio-card__content,
  .portfolio-card:focus-visible .portfolio-card__content {
    left: 28px;
    right: 28px;
    bottom: 34px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .portfolio-card::after {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 78px 0 82px;
  }

  .portfolio-header {
    flex-direction: column;
    gap: 26px;
    margin-bottom: 34px;
  }

  .portfolio-section .section-title {
    font-size: clamp(36px, 9.8vw, 52px);
  }

  .portfolio-view-all {
    min-width: 128px;
    min-height: 46px;
  }

  .portfolio-accordion {
    height: 500px;
  }

  .portfolio-card,
  .portfolio-card.is-active,
  .portfolio-accordion:hover .portfolio-card,
  .portfolio-accordion:focus-within .portfolio-card,
  .portfolio-accordion .portfolio-card:hover,
  .portfolio-accordion .portfolio-card:focus-visible {
    flex-basis: min(86vw, 470px);
  }

  .portfolio-card__name {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .portfolio-card__description {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 520px) {
  .portfolio-section .eyebrow {
    margin-bottom: 18px;
  }

  .portfolio-section .section-title {
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1.04;
  }

  .portfolio-accordion {
    height: 455px;
    gap: 10px;
  }

  .portfolio-card,
  .portfolio-card.is-active,
  .portfolio-accordion:hover .portfolio-card,
  .portfolio-accordion:focus-within .portfolio-card,
  .portfolio-accordion .portfolio-card:hover,
  .portfolio-accordion .portfolio-card:focus-visible {
    flex-basis: calc(100vw - 54px);
  }

  .portfolio-card__content {
    left: 22px;
    right: 22px;
    bottom: 26px;
  }

  .portfolio-card__tag {
    margin-bottom: 9px;
    font-size: 10.5px;
  }

  .portfolio-card__description {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-card__image,
  .portfolio-card__content,
  .portfolio-card__vertical-title,
  .portfolio-view-all {
    transition: none !important;
  }
}

/* ============================================
   STANDARD PAGE — BANNER EYEBROW REFINEMENT
   Black / white / silver palette
   ============================================ */
.standard-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 20px;
  padding: 9px 14px 9px 12px;
  color: #FFFFFF;
  background: rgba(20, 20, 22, 0.72);
  border-left: 3px solid #B7BABE;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.standard-page__eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #D8DADD;
  box-shadow: 0 0 0 3px rgba(216, 218, 221, 0.12);
  transform: none;
}

@media (max-width: 768px) {
  .standard-page__eyebrow {
    margin-bottom: 15px;
    padding: 8px 12px 8px 10px;
    font-size: 9.5px;
    letter-spacing: 2px;
  }
}

/* ============================================
   PROPERTY DETAIL — BLACK / WHITE / SILVER UI FIX
   Keeps icon images and inline SVGs visually consistent
   ============================================ */

/* Contact sidebar: remove cream/brown tones */
.sidebar-card {
  background: var(--color-silver-light);
  color: var(--color-charcoal);
  border: 1px solid rgba(112, 116, 122, 0.22);
}

.sidebar-card__divider {
  background: rgba(112, 116, 122, 0.32);
}

.btn-map,
.btn-sidebar {
  background: var(--color-charcoal);
  color: var(--color-white);
  border: 0;
}

.btn-map:hover,
.btn-sidebar:hover {
  background: var(--color-silver-dark);
  color: var(--color-white);
  opacity: 1;
}

/* Keep button icons identical whether they are IMG or inline SVG */
.btn-map > img,
.btn-map > svg,
.btn-sidebar > img,
.btn-sidebar > svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
}

/* Location cards: silver instead of beige/cream */
.location-info-item {
  background: var(--color-silver-light);
  color: var(--color-charcoal);
  border: 1px solid rgba(112, 116, 122, 0.20);
}

/* One fixed icon area for every icon format */
.location-info-item__icon {
  position: relative;
  width: 88px;
  min-width: 88px;
  height: 58px;
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 24px;
  border-radius: 0;
}

/* Use a normal divider instead of icon-dependent pseudo sizing */
.location-info-item__icon::after,
span.location-info-item__icon::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 58px;
  background: var(--color-silver);
}

/* SVG, PNG, JPG, WEBP icons all occupy the same visual box */
.location-info-item__icon > svg,
.location-info-item__icon > img,
.location-info-item__icon picture,
.location-info-item__icon picture > img {
  display: block;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

/* Keep raster icons clean; SVG keeps its native vector rendering */
.location-info-item__icon > img,
.location-info-item__icon picture > img {
  object-position: center;
}

@media (max-width: 768px) {
  .location-info-item {
    padding: 22px 24px;
  }

  .location-info-item__icon {
    width: 72px;
    min-width: 72px;
    height: 48px;
    flex-basis: 72px;
    padding-right: 18px;
  }

  .location-info-item__icon::after,
  span.location-info-item__icon::after {
    height: 48px;
  }

  .location-info-item__icon > svg,
  .location-info-item__icon > img,
  .location-info-item__icon picture,
  .location-info-item__icon picture > img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex-basis: 30px;
  }
}

@media (max-width: 520px) {
  .location-info-item {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    text-align: left;
  }

  .location-info-item__icon {
    width: 60px;
    min-width: 60px;
    height: 44px;
    flex: 0 0 60px;
    padding-right: 16px;
  }

  .location-info-item__icon::after,
  span.location-info-item__icon::after {
    display: block;
    height: 44px;
  }
}

/* ============================================
   SEARCH UX POLISH — dynamic Buy / Rent / Projects
   ============================================ */

/* Keep native selects lighter/cleaner. Native option popovers are partly
   browser-controlled, but these values reduce the visual thickness where
   the browser allows option styling. */
.filter-field select,
.listing-sort select {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color-scheme: light;
}

.filter-field select option,
.listing-sort select option {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  padding: 5px 8px;
  color: var(--color-charcoal);
  background: var(--color-white);
}

/* Dynamic fields must fully collapse when Projects is selected. */
[data-property-only][hidden] {
  display: none !important;
}

/* Home search: six fields + action + compact reset icon. */
.search-filters {
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto 46px;
}

/* Buy / Rent search: four fields + Filter + Sort + reset icon. */
.rent-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto 46px;
}

.search-reset {
  width: 46px;
  min-width: 46px;
  height: 49px;
  min-height: 49px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 116, 122, 0.45);
  border-radius: 5px;
  background: var(--color-white);
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.search-reset svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.search-reset:hover,
.search-reset:focus-visible {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
  outline: none;
  transform: translateY(-1px);
}

.rent-filters__btn svg {
  color: currentColor;
}

/* Smooth in-page results loading for Buy / Rent. */
.listing-section {
  position: relative;
}

.listing-results-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 110px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.listing-section.is-searching .listing-results-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.listing-section.is-searching > .wrap {
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s ease;
}

.listing-results-loader__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-silver);
  border-top-color: var(--color-charcoal);
  animation: arianeSearchSpin .7s linear infinite;
}

@keyframes arianeSearchSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .search-filters,
  .rent-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-filters .btn-standard,
  .rent-filters .btn-standard {
    width: 100%;
  }

  .search-reset {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .search-filters,
  .rent-filters {
    grid-template-columns: 1fr;
  }

  .search-reset {
    width: 100%;
  }

  .listing-results-loader {
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-results-loader__spinner {
    animation-duration: 1.4s;
  }
}

/* ============================================
   DYNAMIC PROJECTS — ARCHIVE + SINGLE PROJECT
   Black / White / Silver only
   ============================================ */
.projects-page,
.project-detail {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.projects-hero,
.project-detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-charcoal);
}

.projects-hero__image,
.project-detail-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.projects-hero__overlay,
.project-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, .30) 0%, rgba(18, 18, 20, .12) 36%, rgba(18, 18, 20, .83) 100%),
    linear-gradient(90deg, rgba(18, 18, 20, .62) 0%, rgba(18, 18, 20, .12) 60%, rgba(18, 18, 20, .04) 100%);
}

.projects-hero__content,
.project-detail-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 170px;
  padding-bottom: 78px;
  color: var(--color-white);
}

.projects-hero__breadcrumb,
.project-detail-hero__breadcrumb {
  color: rgba(255, 255, 255, .74);
  margin-bottom: 26px;
}

.projects-hero__eyebrow,
.project-detail-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--color-silver-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.projects-hero__eyebrow::before,
.project-detail-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: var(--color-silver);
}

.projects-hero__title,
.project-detail-hero__title {
  max-width: 1050px;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(52px, 5vw, 92px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.projects-hero__description,
.project-detail-hero__description {
  max-width: 690px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.project-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.project-detail-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.projects-page__intro {
  padding: 74px 0 10px;
  background: var(--color-white);
}

.projects-page__intro-inner {
  max-width: 900px;
  margin-inline: auto;
  color: var(--color-grey);
  font-size: 17px;
  line-height: 1.8;
}

.projects-archive {
  padding: 112px 0 140px;
  background: var(--color-white);
}

.projects-archive__header,
.project-properties__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.projects-archive__header .eyebrow,
.project-properties__header .eyebrow,
.project-overview .eyebrow {
  color: var(--color-silver-dark);
}

.projects-archive__title,
.project-properties__header h2,
.project-overview__content > h2 {
  margin: 0;
  color: var(--color-charcoal);
  font-size: clamp(38px, 3.2vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.projects-archive__count,
.project-properties__result-count {
  min-width: 58px;
  height: 58px;
  padding: 0 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 900;
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-archive-card {
  min-width: 0;
}

.project-archive-card__link {
  position: relative;
  min-height: clamp(520px, 38vw, 700px);
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-charcoal);
  isolation: isolate;
}

.project-archive-card__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.project-archive-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, .05) 20%, rgba(18, 18, 20, .84) 100%),
    linear-gradient(90deg, rgba(18, 18, 20, .32), transparent 60%);
  transition: background .4s ease;
}

.project-archive-card__content {
  position: absolute;
  inset-inline: clamp(28px, 3vw, 52px);
  bottom: clamp(30px, 3vw, 52px);
  z-index: 2;
  color: var(--color-white);
}

.project-archive-card__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--color-silver-light);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.project-archive-card__title {
  display: block;
  max-width: 700px;
  color: var(--color-white);
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.project-archive-card__description {
  display: block;
  max-width: 620px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.7;
}

.project-archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.project-archive-card__meta span + span::before {
  content: '•';
  margin-inline-end: 20px;
  color: var(--color-silver);
}

.project-archive-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .58);
  color: var(--color-white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-archive-card__cta svg {
  width: 17px;
  height: 17px;
  transition: transform .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-archive-card__link:hover .project-archive-card__image {
    transform: scale(1.055);
  }

  .project-archive-card__link:hover .project-archive-card__cta svg {
    transform: translateX(5px);
  }
}

.projects-empty-state {
  grid-column: 1 / -1;
  padding: 64px 34px;
  border: 1px solid var(--color-silver-light);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--color-grey);
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

.project-overview {
  padding: 112px 0;
  background: var(--color-white);
}

.project-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr);
  gap: clamp(60px, 8vw, 150px);
  align-items: start;
}

.project-overview__copy {
  max-width: 820px;
  margin-top: 30px;
  color: var(--color-grey);
  font-size: 16px;
  line-height: 1.8;
}

.project-overview__copy > * + * {
  margin-top: 1.15em;
}

.project-overview__facts {
  border-top: 1px solid var(--color-silver-light);
}

.project-fact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--color-silver-light);
}

.project-fact span {
  color: var(--color-grey);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.project-fact strong {
  max-width: 60%;
  color: var(--color-charcoal);
  font-size: 15px;
  font-weight: 700;
  text-align: end;
}

.project-properties {
  padding: 110px 0 130px;
  background: #F6F6F6;
}

.project-purpose-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
}

.project-purpose-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-charcoal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.project-purpose-tabs a.is-active,
.project-purpose-tabs a:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.project-properties__grid {
  margin-bottom: 58px;
}

.project-properties__pagination {
  margin-top: 14px;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 54px;
  color: var(--color-charcoal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.project-back-link svg {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .project-archive-card__cta svg,
[dir="rtl"] .project-back-link svg {
  transform: scaleX(-1);
}

[dir="rtl"] .project-fact strong {
  text-align: start;
}

@media (max-width: 1100px) {
  .projects-hero,
  .project-detail-hero {
    min-height: 560px;
  }

  .projects-archive-grid {
    grid-template-columns: 1fr;
  }

  .project-archive-card__link {
    min-height: 600px;
  }

  .project-overview__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .project-overview__facts {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .projects-hero,
  .project-detail-hero {
    min-height: 520px;
  }

  .projects-hero__content,
  .project-detail-hero__content {
    padding-top: 135px;
    padding-bottom: 52px;
  }

  .projects-hero__title,
  .project-detail-hero__title {
    font-size: clamp(42px, 12vw, 62px);
  }

  .projects-hero__description,
  .project-detail-hero__description {
    margin-top: 20px;
    font-size: 14px;
  }

  .project-detail-hero__meta {
    margin-top: 24px;
  }

  .projects-page__intro {
    padding-top: 54px;
  }

  .projects-archive,
  .project-overview,
  .project-properties {
    padding-top: 76px;
    padding-bottom: 86px;
  }

  .projects-archive__header,
  .project-properties__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
  }

  .projects-archive__count,
  .project-properties__result-count {
    min-width: 46px;
    height: 46px;
    padding: 0 13px;
    font-size: 13px;
  }

  .project-archive-card__link {
    min-height: 520px;
  }

  .project-archive-card__content {
    inset-inline: 24px;
    bottom: 28px;
  }

  .project-archive-card__description {
    font-size: 13px;
  }

  .project-overview__copy {
    font-size: 15px;
  }

  .project-fact {
    padding: 20px 0;
  }

  .project-purpose-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .project-purpose-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-purpose-tabs a {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .projects-hero,
  .project-detail-hero {
    min-height: 500px;
  }

  .project-archive-card__link {
    min-height: 470px;
  }

  .project-archive-card__meta {
    gap: 8px 12px;
  }

  .project-archive-card__meta span + span::before {
    margin-inline-end: 12px;
  }

  .project-fact strong {
    max-width: 58%;
  }
}

/* ============================================
   SEARCH ACTION ALIGNMENT HOTFIX
   Keep Filter / Sort / Reset on one baseline.
   ============================================ */
.search-filters > .btn-standard,
.rent-filters > .btn-standard,
.search-reset {
  align-self: end;
  height: 49px;
  min-height: 49px;
  max-height: 49px;
}

.search-reset {
  width: 49px;
  min-width: 49px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--color-charcoal);
  color: var(--color-white);
  box-shadow: none;
}

.search-reset:hover,
.search-reset:focus-visible {
  background: var(--color-silver-dark);
  color: var(--color-white);
  border: 0;
  transform: none;
}

.search-reset svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .search-reset {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   SEARCH FORM POLISH — custom dropdowns + borderless actions
   ============================================ */

/* Client rule: buttons should not carry visible borders. Focus remains visible
   via a subtle silver focus ring rather than a border. */
button,
.btn,
a.btn,
.btn-standard,
.btn-sidebar,
.btn-map,
.search-btn,
.filter-submit,
.rent-filters__btn,
.search-reset,
.portfolio-view-all,
.property-card__quick-action {
  border: 0 !important;
  box-shadow: none;
}

button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible,
.btn-standard:focus-visible,
.search-btn:focus-visible,
.filter-submit:focus-visible,
.rent-filters__btn:focus-visible,
.search-reset:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(112, 116, 122, .35);
}

/* In Projects mode only Location + Filter + Reset remain. Let Location use the
   available width so the row feels intentional rather than leaving dead space. */
@media (min-width: 1025px) {
  [data-search-router][data-mode="projects"] .search-filters,
  [data-search-router][data-mode="projects"] .rent-filters {
    grid-template-columns: minmax(320px, 1fr) 120px 49px;
    gap: 20px;
    align-items: end;
  }
}

/* Premium custom select. The native select stays in the form (visually hidden)
   so GET parameters, AJAX and accessibility fallbacks keep working. */
.select-wrap.has-ariane-select {
  position: relative;
  overflow: visible;
}

.select-wrap.has-ariane-select > select.ariane-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.select-wrap.has-ariane-select > .select-chevron {
  display: none !important;
}

.ariane-select-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 44px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #F3F4F5;
  color: var(--color-charcoal);
  border: 0 !important;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ariane-select-trigger:hover {
  background: #ECEDEF;
}

.select-wrap.has-ariane-select.is-open .ariane-select-trigger,
.ariane-select-trigger:focus-visible {
  background: #ECEDEF;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(112, 116, 122, .22);
}

.ariane-select-trigger__value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ariane-select-trigger svg {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  flex: 0 0 16px;
  color: var(--color-silver-dark);
  transition: transform .2s ease;
}

.select-wrap.has-ariane-select.is-open .ariane-select-trigger svg {
  transform: translateY(-50%) rotate(180deg);
}

.ariane-select-menu {
  /* Keep the dropdown in normal document flow. This lets the search panel
     grow when an option list is open instead of visually covering the next
     homepage/listing section. */
  position: relative;
  z-index: 120;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  margin-top: 0;
  padding: 0 8px;
  background: var(--color-white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 20, 22, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: max-height .22s ease, margin-top .22s ease, padding .22s ease, opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.select-wrap.has-ariane-select.is-open .ariane-select-menu {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ariane-select-option {
  width: 100%;
  min-height: 40px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  border: 0 !important;
  border-radius: 5px;
  background: transparent;
  color: var(--color-charcoal);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.ariane-select-option:hover,
.ariane-select-option:focus-visible {
  background: #F0F1F2;
  color: var(--color-charcoal);
  outline: 0;
}

.ariane-select-option.is-selected {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.ariane-select-option.is-selected:hover,
.ariane-select-option.is-selected:focus-visible {
  background: var(--color-silver-dark);
  color: var(--color-white);
}

.ariane-select-option:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* The popup is scrollable but the scrollbar stays visually light. */
.ariane-select-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--color-silver) transparent;
}
.ariane-select-menu::-webkit-scrollbar { width: 6px; }
.ariane-select-menu::-webkit-scrollbar-track { background: transparent; }
.ariane-select-menu::-webkit-scrollbar-thumb {
  background: var(--color-silver);
  border-radius: 999px;
}

/* RTL/Arabic search forms. */
html[dir="rtl"] .ariane-select-trigger,
html[dir="rtl"] .ariane-select-option {
  text-align: right;
}
html[dir="rtl"] .ariane-select-trigger {
  padding: 0 16px 0 44px;
}
html[dir="rtl"] .ariane-select-trigger svg {
  right: auto;
  left: 15px;
}

@media (max-width: 1024px) {
  [data-search-router][data-mode="projects"] .search-filters,
  [data-search-router][data-mode="projects"] .rent-filters {
    grid-template-columns: minmax(0, 1fr) 120px 49px;
    gap: 16px;
  }

  [data-search-router][data-mode="projects"] .search-reset {
    width: 49px;
    min-width: 49px;
  }
}

@media (max-width: 640px) {
  [data-search-router][data-mode="projects"] .search-filters,
  [data-search-router][data-mode="projects"] .rent-filters {
    grid-template-columns: minmax(0, 1fr) 49px;
  }

  [data-search-router][data-mode="projects"] .filter-field {
    grid-column: 1 / -1;
  }

  [data-search-router][data-mode="projects"] .filter-submit {
    grid-column: 1;
    width: 100%;
  }

  [data-search-router][data-mode="projects"] .search-reset {
    grid-column: 2;
    width: 49px;
    min-width: 49px;
  }
}


/* Custom search dropdowns expand the search panel rather than overlapping the section below. */
.search-filters,
.rent-filters {
  align-items: start;
}

.select-wrap.has-ariane-select {
  align-self: start;
}

/* ==========================================================
   FINAL SEARCH LAYOUT STABILISATION — 2026-09-09
   Keeps custom dropdowns floating (no click-time expansion),
   reserves enough banner space so menus never cover the next
   section, and locks all search actions to one clean baseline.
   ========================================================== */

/* Undo the previous document-flow dropdown experiment. */
.search-filters,
.rent-filters {
  align-items: end !important;
}

.select-wrap.has-ariane-select {
  align-self: auto !important;
  position: relative;
  overflow: visible;
}

.ariane-select-menu {
  position: absolute !important;
  z-index: 250;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  width: 100% !important;
  max-height: 190px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  margin-top: 0 !important;
  padding: 8px !important;
  background: var(--color-white);
  border: 0 !important;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 20, 22, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease !important;
}

.select-wrap.has-ariane-select.is-open .ariane-select-menu {
  max-height: 190px !important;
  margin-top: 0 !important;
  padding: 8px !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* The homepage already has generous padding below the filter row. A small
   extra reserve guarantees the 190px floating menu stays inside the search
   section and never sits over Featured Spaces. */
.search-section__inner {
  padding-bottom: 140px;
}

/* Buy/Rent banner used to have a hard 640px crop. Let its content define the
   height and reserve a neutral image-backed area below the white form for an
   open custom dropdown. The form itself does NOT grow when a dropdown opens. */
.page-banner__media {
  height: auto !important;
  min-height: 800px;
  overflow: hidden;
}

.page-banner__content {
  padding-bottom: 180px;
}

.page-search__panel {
  overflow: visible;
  margin-bottom: 0;
}

/* Search / Filter / Sort / Reset all align with the select trigger row,
   regardless of labels or a dropdown being open. */
.search-filters > .btn-standard,
.rent-filters > .btn-standard,
.search-filters > .search-reset,
.rent-filters > .search-reset {
  align-self: end !important;
  margin: 0 !important;
  height: 49px !important;
  min-height: 49px !important;
  max-height: 49px !important;
}

.search-reset {
  width: 49px !important;
  min-width: 49px !important;
  padding: 0 !important;
}

/* No visual borders on action buttons anywhere in the search UI. */
.search-panel button,
.page-search__panel button,
.search-btn,
.filter-submit,
.rent-filters__btn,
.search-reset,
.ariane-select-trigger,
.ariane-select-option {
  border: 0 !important;
}

/* Projects mode: one useful Location field, then Filter + Reset. */
@media (min-width: 1025px) {
  [data-search-router][data-mode="projects"] .search-filters,
  [data-search-router][data-mode="projects"] .rent-filters {
    grid-template-columns: minmax(320px, 1fr) 120px 49px !important;
    gap: 20px;
    align-items: end !important;
  }
}

@media (max-width: 1024px) {
  .page-banner__media {
    min-height: 980px;
  }

  .page-banner__content {
    padding-bottom: 160px;
  }

  .search-reset {
    width: 49px !important;
    min-width: 49px !important;
  }
}

@media (max-width: 768px) {
  .page-banner__media {
    min-height: 1160px;
  }

  .page-banner__content {
    padding-bottom: 140px;
  }

  .search-section__inner {
    padding-bottom: 130px;
  }

  .ariane-select-menu,
  .select-wrap.has-ariane-select.is-open .ariane-select-menu {
    max-height: 180px !important;
  }
}

/* ============================================
   PROPERTY MANAGEMENT PAGE
   Scoped page styles — black / white / silver only
   ============================================ */
.pm-page {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.pm-page__hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-charcoal);
}

.pm-page__hero-media,
.pm-page__hero-overlay {
  position: absolute;
  inset: 0;
}

.pm-page__hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pm-page__hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 16, 20, .22) 0%, rgba(20, 16, 20, .12) 38%, rgba(20, 16, 20, .84) 100%),
    linear-gradient(90deg, rgba(20, 16, 20, .62) 0%, rgba(20, 16, 20, .16) 58%, rgba(20, 16, 20, .04) 100%);
}

.pm-page__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 170px;
  padding-bottom: 78px;
  color: var(--color-white);
}

.pm-page__breadcrumb {
  color: rgba(255,255,255,.72);
  margin-bottom: 22px;
}

.pm-page__hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-silver-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.pm-page__hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-silver);
}

.pm-page__hero-title {
  max-width: 980px;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(52px, 5vw, 92px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.035em;
  text-shadow: none;
}

.pm-page__hero-description {
  max-width: 650px;
  margin-top: 26px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.pm-page__hero-description p { margin: 0; }

.pm-page__intro {
  padding: 120px 0;
  background: var(--color-white);
}

.pm-page__intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(60px, 8vw, 150px);
  align-items: center;
}

.pm-page__intro-copy {
  max-width: 650px;
}

.pm-page__intro-copy .eyebrow,
.pm-page__section-head .eyebrow,
.pm-page__audience-head .eyebrow {
  color: var(--color-silver-dark);
}

.pm-page__intro-copy .section-title,
.pm-page__section-head .section-title,
.pm-page__audience-head .section-title {
  color: var(--color-charcoal);
  max-width: 760px;
}

.pm-page__richtext {
  margin-top: 30px;
  color: #56595f;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
}

.pm-page__richtext p + p { margin-top: 16px; }

.pm-page__intro-media {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-silver-light);
}

.pm-page__intro-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,16,20,.16) 100%);
  pointer-events: none;
}

.pm-page__intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pm-page__services {
  padding: 120px 0 130px;
  background: #F4F5F6;
}

.pm-page__section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.pm-page__section-head > p {
  color: #656970;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.pm-page__service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #D8DADD;
}

.pm-page__service-card {
  position: relative;
  min-height: 320px;
  padding: 38px 36px 42px;
  background: var(--color-white);
  overflow: hidden;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.pm-page__service-card:hover {
  z-index: 2;
  background: var(--color-charcoal);
  color: var(--color-white);
}

.pm-page__service-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--color-silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pm-page__service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 72px;
  color: var(--color-charcoal);
}

.pm-page__service-icon svg {
  width: 100%;
  height: 100%;
}

.pm-page__service-card:hover .pm-page__service-icon,
.pm-page__service-card:hover .pm-page__service-number {
  color: var(--color-silver-light);
}

.pm-page__service-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.pm-page__service-card p {
  max-width: 330px;
  margin: 0;
  color: #686c72;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  transition: color .25s ease;
}

.pm-page__service-card:hover p { color: rgba(255,255,255,.72); }

.pm-page__process {
  padding: 125px 0 135px;
  background: var(--color-charcoal);
  color: var(--color-white);
}

.pm-page__process-head {
  max-width: 780px;
  margin-bottom: 72px;
}

.pm-page__process-head .eyebrow { color: var(--color-silver-light); }
.pm-page__process-head .section-title { color: var(--color-white); }

.pm-page__process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.18);
}

.pm-page__process-step {
  position: relative;
  min-height: 285px;
  padding: 34px 34px 20px 0;
  border-right: 1px solid rgba(255,255,255,.16);
}

.pm-page__process-step + .pm-page__process-step { padding-left: 34px; }
.pm-page__process-step:last-child { border-right: 0; }

.pm-page__process-index {
  margin-bottom: 64px;
  color: var(--color-silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.pm-page__process-step h3 {
  margin: 0 0 16px;
  color: var(--color-white);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.pm-page__process-step p {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.pm-page__audience {
  padding: 120px 0 130px;
  background: var(--color-white);
}

.pm-page__audience-head {
  max-width: 800px;
  margin-bottom: 56px;
}

.pm-page__audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pm-page__audience-card {
  min-height: 330px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #F3F4F5;
  border-radius: 8px;
  transition: background-color .25s ease, transform .25s ease;
}

.pm-page__audience-card:hover {
  background: #E6E8EA;
  transform: translateY(-4px);
}

.pm-page__audience-card > span {
  display: inline-block;
  margin-bottom: auto;
  color: var(--color-silver-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.pm-page__audience-card h3 {
  max-width: 360px;
  margin: 0 0 16px;
  color: var(--color-charcoal);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.pm-page__audience-card p {
  max-width: 390px;
  margin: 0;
  color: #62666c;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
}

.pm-page__cta {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-charcoal);
}

.pm-page__cta-media,
.pm-page__cta-overlay {
  position: absolute;
  inset: 0;
}

.pm-page__cta-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pm-page__cta-overlay {
  background: linear-gradient(90deg, rgba(20,16,20,.88) 0%, rgba(20,16,20,.65) 48%, rgba(20,16,20,.18) 100%);
}

.pm-page__cta-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: var(--color-white);
}

.pm-page__cta-content .eyebrow { color: var(--color-silver-light); }
.pm-page__cta-content .section-title { max-width: 800px; color: var(--color-white); }

.pm-page__cta-content > p {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.pm-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.pm-page__btn {
  min-height: 50px;
  border: 0 !important;
  border-radius: 5px;
}

.pm-page__btn--light {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.pm-page__btn--light:hover {
  background: var(--color-silver-light);
  color: var(--color-charcoal);
}

.pm-page__btn--ghost {
  background: rgba(255,255,255,.14);
  color: var(--color-white);
}

.pm-page__btn--ghost:hover {
  background: var(--color-silver-dark);
  color: var(--color-white);
}

html[dir="rtl"] .pm-page__service-number {
  right: auto;
  left: 30px;
}

html[dir="rtl"] .pm-page__process-step {
  padding: 34px 0 20px 34px;
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,.16);
}

html[dir="rtl"] .pm-page__process-step + .pm-page__process-step {
  padding-right: 34px;
}

html[dir="rtl"] .pm-page__process-step:last-child { border-left: 0; }

html[dir="rtl"] .pm-page__cta-overlay {
  background: linear-gradient(270deg, rgba(20,16,20,.88) 0%, rgba(20,16,20,.65) 48%, rgba(20,16,20,.18) 100%);
}

@media (max-width: 1200px) {
  .pm-page__intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 60px;
  }
  .pm-page__service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-page__process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-page__process-step:nth-child(2n) { border-right: 0; }
  .pm-page__process-step:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
  html[dir="rtl"] .pm-page__process-step:nth-child(2n) { border-left: 0; }
}

@media (max-width: 900px) {
  .pm-page__hero { min-height: 570px; }
  .pm-page__hero-content { padding-top: 145px; padding-bottom: 60px; }
  .pm-page__hero-title { font-size: clamp(46px, 9vw, 72px); }
  .pm-page__intro,
  .pm-page__services,
  .pm-page__process,
  .pm-page__audience { padding-top: 90px; padding-bottom: 96px; }
  .pm-page__intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .pm-page__intro-copy { max-width: 760px; }
  .pm-page__intro-media { min-height: 520px; }
  .pm-page__section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; }
  .pm-page__audience-grid { grid-template-columns: 1fr; }
  .pm-page__audience-card { min-height: 270px; }
  .pm-page__cta { min-height: 560px; }
}

@media (max-width: 640px) {
  .pm-page__hero { min-height: 520px; }
  .pm-page__hero-content { padding-top: 130px; padding-bottom: 46px; }
  .pm-page__hero-description { font-size: 14px; }
  .pm-page__intro,
  .pm-page__services,
  .pm-page__process,
  .pm-page__audience { padding-top: 72px; padding-bottom: 78px; }
  .pm-page__intro-media { min-height: 410px; }
  .pm-page__service-grid,
  .pm-page__process-grid { grid-template-columns: 1fr; }
  .pm-page__service-card { min-height: 285px; padding: 30px 26px 34px; }
  .pm-page__service-icon { margin-bottom: 54px; }
  .pm-page__process-step,
  .pm-page__process-step + .pm-page__process-step,
  html[dir="rtl"] .pm-page__process-step,
  html[dir="rtl"] .pm-page__process-step + .pm-page__process-step {
    min-height: 0;
    padding: 28px 0 34px;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }
  .pm-page__process-index { margin-bottom: 36px; }
  .pm-page__audience-card { padding: 30px 26px; }
  .pm-page__audience-card h3 { font-size: 24px; }
  .pm-page__cta { min-height: 520px; }
  .pm-page__cta-actions { flex-direction: column; align-items: stretch; }
  .pm-page__cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   ARIANE GSAP MOTION POLISH
   Activated only when GSAP + ScrollTrigger are available.
   Black / white / silver only.
   ============================================ */
html.has-gsap-motion .project-archive-card__link,
html.has-gsap-motion .gallery__main,
html.has-gsap-motion .location-map,
html.has-gsap-motion .pm-page__intro-media,
html.has-gsap-motion .pm-page__cta {
  backface-visibility: hidden;
  transform: translateZ(0);
}

html.has-gsap-motion .project-archive-card__link {
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(20, 16, 20, .08);
  transition: box-shadow .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  html.has-gsap-motion .project-archive-card__link:hover {
    box-shadow: 0 28px 72px rgba(20, 16, 20, .16);
  }
}

/* Property Management pinned service story. The base grid remains untouched
   when GSAP is unavailable, on reduced-motion devices, and on touch layouts. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.has-gsap-motion .pm-page__services.is-scroll-story {
    min-height: 100vh;
    padding: clamp(74px, 8vh, 104px) 0;
    display: flex;
    align-items: center;
    overflow: clip;
    background:
      radial-gradient(circle at 88% 10%, rgba(167, 169, 172, .18), transparent 32%),
      linear-gradient(180deg, #F5F6F7 0%, #ECEEF0 100%);
  }

  html[dir="rtl"].has-gsap-motion .pm-page__services.is-scroll-story {
    background:
      radial-gradient(circle at 12% 10%, rgba(167, 169, 172, .18), transparent 32%),
      linear-gradient(180deg, #F5F6F7 0%, #ECEEF0 100%);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story > .wrap {
    width: 100%;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__section-head {
    margin-bottom: 28px;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__section-head .section-title {
    max-width: 880px;
  }

  .pm-scroll-progress {
    display: grid;
    grid-template-columns: 34px minmax(120px, 1fr) 34px auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
    color: var(--color-charcoal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .pm-scroll-progress__current,
  .pm-scroll-progress__total {
    font-variant-numeric: tabular-nums;
    color: var(--color-silver-dark);
  }

  .pm-scroll-progress__track {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: rgba(112, 116, 122, .28);
  }

  .pm-scroll-progress__fill {
    position: absolute;
    inset: 0;
    background: var(--color-charcoal);
    transform: scaleX(.02);
    transform-origin: left center;
    will-change: transform;
  }

  html[dir="rtl"] .pm-scroll-progress__fill {
    transform-origin: right center;
  }

  .pm-scroll-progress__hint {
    margin-inline-start: 10px;
    color: var(--color-grey);
    white-space: nowrap;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-grid {
    padding: 4px 2px 22px;
    background: transparent;
    overflow: visible;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card {
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(20, 16, 20, .07);
    opacity: .68;
    transition:
      opacity .34s ease,
      background-color .34s ease,
      color .34s ease,
      box-shadow .34s ease;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 34px;
    width: 3px;
    height: 44px;
    border-radius: 0 3px 3px 0;
    background: var(--color-silver);
    opacity: .45;
    transition: height .34s ease, opacity .34s ease, background-color .34s ease;
  }

  html[dir="rtl"].has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card.is-scroll-active {
    z-index: 3;
    opacity: 1;
    background: var(--color-charcoal);
    color: var(--color-white);
    box-shadow: 0 28px 72px rgba(20, 16, 20, .2);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card.is-scroll-active::before {
    height: 82px;
    opacity: 1;
    background: var(--color-silver-light);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card.is-scroll-active p {
    color: rgba(255, 255, 255, .74);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card.is-scroll-active .pm-page__service-icon,
  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card.is-scroll-active .pm-page__service-number {
    color: var(--color-silver-light);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story .pm-page__service-card:hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-scroll-progress { display: none !important; }
}

/* ========================================================================
   PROPERTY MANAGEMENT — COMPACT VERTICAL SERVICE STORY
   Visual refinement only. Keeps the ACF service data and page behaviour.
   ======================================================================== */
.pm-page__services {
  padding: 92px 0 102px;
  background:
    radial-gradient(circle at 82% 10%, rgba(173, 176, 181, .11), transparent 30%),
    linear-gradient(180deg, #F6F7F8 0%, #EEF0F2 100%);
}

.pm-page__services .pm-page__section-head {
  margin-bottom: 34px;
  gap: 46px;
}

.pm-page__services .pm-page__section-head > p {
  max-width: 390px;
  justify-self: end;
  line-height: 1.62;
}

.pm-page__services-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .88fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: stretch;
}

.pm-page__services-visual {
  min-width: 0;
}

.pm-page__services-visual-frame {
  position: relative;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #D9DCDF;
  box-shadow: 0 22px 56px rgba(28, 28, 30, .08);
  isolation: isolate;
}

.pm-page__service-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border-radius: inherit;
}

.pm-page__service-visual.is-active {
  opacity: 1;
  visibility: visible;
}

.pm-page__service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.035);
  transform-origin: center center;
}

.pm-page__services-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(20, 20, 22, .46) 100%);
}

.pm-page__services-visual-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.55px;
  line-height: 1.25;
  text-transform: uppercase;
}

.pm-page__services-visual-index {
  display: inline-flex;
  min-width: 30px;
  color: rgba(255, 255, 255, .66);
  font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .pm-page__services-visual-caption {
  direction: rtl;
}

.pm-page__services-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pm-page__services-list-viewport {
  min-width: 0;
}

.pm-page__services .pm-page__service-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: transparent;
}

.pm-page__services .pm-page__service-card {
  position: relative;
  min-height: 104px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--color-charcoal);
  box-shadow: 0 10px 28px rgba(24, 24, 26, .045);
  overflow: hidden;
  transform: translateZ(0);
  transition:
    background-color .3s ease,
    box-shadow .3s ease,
    opacity .3s ease,
    transform .3s ease;
}

.pm-page__services .pm-page__service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: #C4C7CB;
  opacity: .7;
  transition: background-color .3s ease, width .3s ease, opacity .3s ease;
}

html[dir="rtl"] .pm-page__services .pm-page__service-card::before {
  left: auto;
  right: 0;
  border-radius: 3px 0 0 3px;
}

.pm-page__services .pm-page__service-card:hover {
  z-index: 2;
  background: #ECEEF0;
  color: var(--color-charcoal);
  box-shadow: 0 14px 34px rgba(24, 24, 26, .075);
  transform: translateY(-1px);
}

.pm-page__services .pm-page__service-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  color: #5E6268;
}

.pm-page__services .pm-page__service-icon svg {
  width: 100%;
  height: 100%;
}

.pm-page__service-copy {
  min-width: 0;
}

.pm-page__services .pm-page__service-card h3 {
  margin: 0 0 5px;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.24;
}

.pm-page__services .pm-page__service-card p {
  max-width: none;
  margin: 0;
  color: #73777D;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.52;
  transition: color .3s ease;
}

.pm-page__services .pm-page__service-number {
  position: static;
  align-self: start;
  justify-self: end;
  padding-top: 2px;
  color: #A1A5AA;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.35px;
  font-variant-numeric: tabular-nums;
}

.pm-page__services .pm-page__service-card:hover .pm-page__service-icon,
.pm-page__services .pm-page__service-card:hover .pm-page__service-number {
  color: #4D5156;
}

.pm-page__services .pm-page__service-card:hover p {
  color: #666A70;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical {
    min-height: 100svh;
    padding: clamp(50px, 6vh, 72px) 0;
    display: flex;
    align-items: center;
    overflow: clip;
    background:
      radial-gradient(circle at 84% 8%, rgba(164, 168, 174, .12), transparent 30%),
      linear-gradient(180deg, #F6F7F8 0%, #EEF0F2 100%);
  }

  html[dir="rtl"].has-gsap-motion .pm-page__services.is-scroll-story--vertical {
    background:
      radial-gradient(circle at 16% 8%, rgba(164, 168, 174, .12), transparent 30%),
      linear-gradient(180deg, #F6F7F8 0%, #EEF0F2 100%);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical > .wrap {
    width: 100%;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__section-head {
    margin-bottom: clamp(24px, 3vh, 34px);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__services-stage {
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .86fr);
    align-items: center;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__services-visual-frame {
    height: clamp(350px, 48vh, 470px);
    min-height: 0;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__services-list {
    align-self: stretch;
    justify-content: center;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress--vertical-story {
    display: grid;
    grid-template-columns: 30px minmax(90px, 1fr) 30px;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    color: var(--color-charcoal);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.35px;
    text-transform: uppercase;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__current,
  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__total {
    color: #74787E;
    font-variant-numeric: tabular-nums;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__track {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: rgba(95, 99, 105, .22);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__fill {
    position: absolute;
    inset: 0;
    background: #2B2B2D;
    transform: scaleX(.02);
    transform-origin: left center;
    will-change: transform;
  }

  html[dir="rtl"].has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__fill {
    transform-origin: right center;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-scroll-progress__hint {
    grid-column: 1 / -1;
    margin: 0;
    color: #999DA2;
    font-size: 8px;
    letter-spacing: 1.25px;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__services-list-viewport {
    height: clamp(332px, 43vh, 420px);
    overflow: hidden;
    border-radius: 12px;
    mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
    padding: 8px 2px 16px;
    background: transparent;
    overflow: visible;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card {
    flex: 0 0 auto;
    min-height: 104px;
    padding: 17px 19px;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 15px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    color: var(--color-charcoal);
    box-shadow: 0 9px 24px rgba(23, 23, 25, .045);
    opacity: .56;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card::before {
    top: 18px;
    bottom: 18px;
    height: auto;
    width: 2px;
    background: #C7CACD;
    opacity: .6;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active {
    z-index: 3;
    opacity: 1;
    background: #E4E6E8;
    color: var(--color-charcoal);
    box-shadow: 0 16px 38px rgba(24, 24, 26, .09);
    transform: translateX(0);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active::before {
    width: 4px;
    height: auto;
    opacity: 1;
    background: #262628;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active p {
    color: #62666C;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active .pm-page__service-icon {
    color: #303034;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active .pm-page__service-number {
    color: #686C72;
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card:hover {
    opacity: .9;
    background: #ECEEF0;
    color: var(--color-charcoal);
  }

  html.has-gsap-motion .pm-page__services.is-scroll-story--vertical .pm-page__service-card.is-scroll-active:hover {
    opacity: 1;
    background: #E1E3E5;
  }
}

@media (max-width: 1200px) {
  .pm-page__services-stage {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
    gap: 26px;
  }

  .pm-page__services-visual-frame {
    min-height: 400px;
  }
}

@media (max-width: 1024px) {
  .pm-page__services {
    padding: 78px 0 86px;
  }

  .pm-page__services .pm-page__section-head {
    margin-bottom: 30px;
  }

  .pm-page__services-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pm-page__services-visual-frame {
    min-height: 360px;
    height: min(48vw, 440px);
  }

  .pm-page__services .pm-page__service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pm-page__services .pm-page__service-card {
    min-height: 118px;
  }
}

@media (max-width: 680px) {
  .pm-page__services {
    padding: 66px 0 72px;
  }

  .pm-page__services .pm-page__section-head {
    margin-bottom: 24px;
  }

  .pm-page__services-visual-frame {
    min-height: 250px;
    height: 58vw;
    max-height: 330px;
    border-radius: 14px;
  }

  .pm-page__services-visual-caption {
    left: 18px;
    right: 18px;
    bottom: 17px;
    font-size: 8px;
    letter-spacing: 1.15px;
  }

  .pm-page__services .pm-page__service-grid {
    grid-template-columns: 1fr;
  }

  .pm-page__services .pm-page__service-card {
    min-height: 0;
    padding: 16px 17px;
    grid-template-columns: 32px minmax(0, 1fr) 26px;
    gap: 13px;
    border-radius: 10px;
  }

  .pm-page__services .pm-page__service-icon {
    width: 30px;
    height: 30px;
  }

  .pm-page__services .pm-page__service-card h3 {
    font-size: 16px;
  }

  .pm-page__services .pm-page__service-card p {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-page__service-visual:not(:first-child) {
    display: none;
  }
}

/* ========================================================================
   GLOBAL INNER-PAGE CONSISTENCY — FINAL
   One breadcrumb, one banner geometry, one title system and one stable listing
   form layout across Buy, Rent, Projects, Single Project, Property Management
   and standard/default pages.
   ======================================================================== */

:root {
  --ariane-inner-banner-height: 560px;
  --ariane-listing-banner-overflow: 0px;
  --ariane-banner-content-top: 118px;
  --ariane-banner-content-bottom: 34px;
}

/* ------------------------------------------------------------------------
   Shared banner geometry
   ------------------------------------------------------------------------ */
.page-banner,
.projects-hero,
.project-detail-hero,
.pm-page__hero,
.standard-page__hero {
  position: relative;
  background: #ECEDEF;
}

.page-banner__media,
.projects-hero,
.project-detail-hero,
.pm-page__hero,
.standard-page__hero {
  height: var(--ariane-inner-banner-height) !important;
  min-height: var(--ariane-inner-banner-height) !important;
  max-height: var(--ariane-inner-banner-height) !important;
}

/* Buy/Rent may have a form extending below the 560px visual crop. Reserve
   only that overflow as actual section padding; margin no longer changes. */
.page-banner {
  overflow: visible !important;
  margin-bottom: 0 !important;
  padding-bottom: var(--ariane-listing-banner-overflow, 0px);
}

.page-banner__media {
  position: relative;
  overflow: visible !important;
}

.page-banner__media > img,
.projects-hero__image,
.project-detail-hero__image,
.pm-page__hero-media,
.standard-page__hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-banner__media > img,
.projects-hero__image,
.project-detail-hero__image,
.pm-page__hero-media img,
.standard-page__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Consistent light editorial overlay so the black typography reads on every
   supplied/default image without washing the image out completely. */
.page-banner__overlay,
.projects-hero__overlay,
.project-detail-hero__overlay,
.pm-page__hero-overlay,
.standard-page__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 16, 20, .10) 0%, rgba(20, 16, 20, .025) 42%, rgba(20, 16, 20, 0) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .84) 34%, rgba(255, 255, 255, .43) 57%, rgba(255, 255, 255, .08) 78%, rgba(255, 255, 255, 0) 100%) !important;
  pointer-events: none;
}

html[dir="rtl"] .page-banner__overlay,
html[dir="rtl"] .projects-hero__overlay,
html[dir="rtl"] .project-detail-hero__overlay,
html[dir="rtl"] .pm-page__hero-overlay,
html[dir="rtl"] .standard-page__hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 16, 20, .10) 0%, rgba(20, 16, 20, .025) 42%, rgba(20, 16, 20, 0) 72%),
    linear-gradient(270deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .84) 34%, rgba(255, 255, 255, .43) 57%, rgba(255, 255, 255, .08) 78%, rgba(255, 255, 255, 0) 100%) !important;
}

/* ------------------------------------------------------------------------
   Shared banner content rhythm
   ------------------------------------------------------------------------ */
.page-banner__content,
.projects-hero__content,
.project-detail-hero__content,
.pm-page__hero-content,
.standard-page__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--ariane-banner-content-top) !important;
  padding-bottom: var(--ariane-banner-content-bottom) !important;
  color: var(--color-charcoal) !important;
}

/* Marketing eyebrows were the main structural inconsistency above titles.
   Interior banners now always start with the dynamic breadcrumb. */
.projects-hero__eyebrow,
.project-detail-hero__eyebrow,
.pm-page__hero-eyebrow,
.standard-page__eyebrow {
  display: none !important;
}

/* ------------------------------------------------------------------------
   One breadcrumb system
   ------------------------------------------------------------------------ */
.breadcrumb,
.ariane-breadcrumb {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px !important;
  color: #73777D !important;
  font-family: var(--font-family);
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  letter-spacing: 1.35px !important;
  text-transform: uppercase;
  opacity: 1;
  visibility: visible;
}

.breadcrumb a,
.ariane-breadcrumb a {
  color: #73777D !important;
  transition: color .22s ease;
}

.breadcrumb a:hover,
.ariane-breadcrumb a:hover {
  color: var(--color-charcoal) !important;
}

.breadcrumb__sep {
  color: #A7A9AC !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.breadcrumb__current {
  color: var(--color-charcoal) !important;
}

/* ------------------------------------------------------------------------
   One title / description system
   ------------------------------------------------------------------------ */
.page-banner__title,
.projects-hero__title,
.project-detail-hero__title,
.pm-page__hero-title,
.standard-page__title {
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0 !important;
  color: var(--color-charcoal) !important;
  font-family: var(--font-family) !important;
  font-size: 56px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -.018em !important;
  text-shadow: none !important;
}

.projects-hero__description,
.project-detail-hero__description,
.pm-page__hero-description,
.standard-page__banner-description {
  width: min(720px, 100%);
  max-width: 720px;
  margin: 22px 0 0 !important;
  color: rgba(30, 25, 28, .74) !important;
  font-family: var(--font-family);
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.68 !important;
}

.standard-page__banner-description p,
.pm-page__hero-description p {
  margin: 0;
}

.project-detail-hero__meta {
  margin-top: 22px !important;
  color: rgba(30, 25, 28, .76) !important;
}

.project-detail-hero__meta span {
  color: inherit !important;
}

/* ------------------------------------------------------------------------
   Buy / Rent search form — stable physical position
   ------------------------------------------------------------------------ */
.page-banner__title {
  margin-bottom: 30px !important;
}

.page-search__panel {
  position: relative !important;
  z-index: 12;
  margin: 0 !important;
  transform: none;
  overflow: visible;
  will-change: auto;
}

/* Custom dropdowns open upward inside the listing panel so they do not push
   or cover the next page section. */
.page-search__panel .select-wrap.has-ariane-select {
  position: relative;
  z-index: 1;
}

.page-search__panel .select-wrap.has-ariane-select.is-open {
  z-index: 260;
}

.page-search__panel .ariane-select-menu {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  transform: translateY(5px);
  transform-origin: bottom center;
}

.page-search__panel .select-wrap.has-ariane-select.is-open .ariane-select-menu {
  transform: translateY(0);
}

/* Search actions remain visually consistent and borderless. */
.page-search__panel button,
.search-panel button,
.btn,
.btn-standard,
.search-btn,
.filter-submit,
.rent-filters__btn,
.search-reset {
  border: 0 !important;
}

/* ------------------------------------------------------------------------
   Default/standard pages
   ------------------------------------------------------------------------ */
.standard-page__content-section {
  position: relative;
  padding: 92px 0 118px;
  background: #FFFFFF;
}

.standard-page__content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--side-margin);
  right: var(--side-margin);
  height: 1px;
  background: #E2E3E5;
}

.standard-page__article {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.standard-page__article .entry-content {
  color: #555A60;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.standard-page__article .entry-content > * + * {
  margin-top: 24px;
}

.standard-page__article .entry-content h2,
.standard-page__article .entry-content h3,
.standard-page__article .entry-content h4 {
  color: var(--color-charcoal);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
}

.standard-page__article .entry-content h2 {
  font-size: clamp(32px, 3vw, 46px);
}

.standard-page__article .entry-content h3 {
  font-size: clamp(25px, 2.2vw, 34px);
}

.standard-page__article .entry-content p,
.standard-page__article .entry-content ul,
.standard-page__article .entry-content ol {
  max-width: 860px;
}

.standard-page__article .entry-content a:not(.btn) {
  color: var(--color-charcoal);
  text-decoration: underline;
  text-decoration-color: #A7A9AC;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------------
   Responsive banner lock — SAME value for every banner type at each viewport
   ------------------------------------------------------------------------ */
@media (max-width: 1200px) {
  :root {
    --ariane-inner-banner-height: 520px;
    --ariane-banner-content-top: 112px;
    --ariane-banner-content-bottom: 30px;
  }

  .page-banner__title,
  .projects-hero__title,
  .project-detail-hero__title,
  .pm-page__hero-title,
  .standard-page__title {
    font-size: clamp(46px, 5vw, 54px) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --ariane-inner-banner-height: 500px;
    --ariane-banner-content-top: 102px;
    --ariane-banner-content-bottom: 26px;
  }

  .breadcrumb,
  .ariane-breadcrumb {
    margin-bottom: 18px !important;
    gap: 7px;
    font-size: 9px !important;
    letter-spacing: 1.1px !important;
  }

  .page-banner__title,
  .projects-hero__title,
  .project-detail-hero__title,
  .pm-page__hero-title,
  .standard-page__title {
    font-size: clamp(40px, 10.5vw, 50px) !important;
    line-height: 1.06 !important;
  }

  .projects-hero__description,
  .project-detail-hero__description,
  .pm-page__hero-description,
  .standard-page__banner-description {
    max-width: 94%;
    margin-top: 17px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .page-banner__title {
    margin-bottom: 24px !important;
  }

  .page-search__panel .ariane-select-menu,
  .page-search__panel .select-wrap.has-ariane-select.is-open .ariane-select-menu {
    max-height: 168px !important;
  }

  .standard-page__content-section {
    padding: 70px 0 88px;
  }
}

@media (max-width: 480px) {
  :root {
    --ariane-inner-banner-height: 500px;
    --ariane-banner-content-top: 96px;
  }

  .page-banner__title,
  .projects-hero__title,
  .project-detail-hero__title,
  .pm-page__hero-title,
  .standard-page__title {
    font-size: clamp(36px, 10.8vw, 46px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-search__panel {
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
    transform: none !important;
  }
}

/* ========================================================================
   INNER PAGE HEADER / BANNER ALIGNMENT — AFTER FIXED HEADER
   Keeps every interior page below the fixed page header, exposes breadcrumbs,
   and preserves the shared banner heights without changing search behaviour.
   ======================================================================== */
:root {
  --ariane-page-header-space: 131px;
  --ariane-banner-content-top: 46px;
}

/* All theme interior templates use .sub_page. The header stays fixed, while
   the page itself begins immediately after its real designed header height. */
main.sub_page {
  padding-top: var(--ariane-page-header-space) !important;
}

/* Logged-in WordPress toolbar sits above the fixed header. */
body.admin-bar main.sub_page {
  padding-top: calc(var(--ariane-page-header-space) + 32px) !important;
}

/* Keep the banner image crop intact for the full shared hero height. The
   search card may extend visually, but the background image itself never
   collapses or gets shortened by the panel. */
.page-banner__media,
.projects-hero,
.project-detail-hero,
.pm-page__hero,
.standard-page__hero {
  flex: none;
}

.page-banner__media > img {
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

/* The breadcrumb now has intentional breathing room immediately below the
   header instead of being hidden behind it. */
.page-banner__content,
.projects-hero__content,
.project-detail-hero__content,
.pm-page__hero-content,
.standard-page__hero-content {
  padding-top: var(--ariane-banner-content-top) !important;
}

@media (max-width: 1600px) {
  :root {
    --ariane-page-header-space: 108px;
    --ariane-banner-content-top: 42px;
  }
}

@media (max-width: 1240px) {
  :root {
    --ariane-page-header-space: 82px;
    --ariane-banner-content-top: 38px;
  }
}

@media (max-width: 782px) {
  body.admin-bar main.sub_page {
    padding-top: calc(var(--ariane-page-header-space) + 46px) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --ariane-page-header-space: 74px;
    --ariane-banner-content-top: 30px;
  }
}

@media (max-width: 480px) {
  :root {
    --ariane-banner-content-top: 26px;
  }
}


/* ============================================
   Polylang — premium language switcher
   Desktop: compact glass pill + dropdown.
   Mobile: language selector is injected into the existing drawer.
   ============================================ */
.language-switcher {
  position: relative;
  z-index: 116;
}

.language-switcher > summary {
  list-style: none;
}

.language-switcher > summary::-webkit-details-marker {
  display: none;
}

.language-switcher__summary {
  min-width: 82px;
  height: 40px;
  padding: 0 12px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(226, 227, 229, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.language-switcher__summary:focus-visible {
  outline: 2px solid #B7BABE;
  outline-offset: 3px;
}

.language-switcher__globe {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.language-switcher__globe svg {
  width: 18px;
  height: 18px;
}

.language-switcher__code {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.35px;
}

.language-switcher__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.25s ease;
}

.language-switcher[open] .language-switcher__chevron {
  transform: rotate(180deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid rgba(226, 227, 229, 0.16);
  border-radius: 14px;
  background: rgba(20, 16, 20, 0.96);
  box-shadow: 0 22px 55px rgba(20, 16, 20, 0.28);
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: top right;
  animation: ariane-language-menu-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.language-switcher__menu-label {
  display: block;
  padding: 7px 10px 9px;
  color: #A7A9AC;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.language-switcher__option {
  min-height: 48px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.language-switcher__option-code {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #C7C9CC;
}

.language-switcher__option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.language-switcher__option.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.language-switcher__active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D7D9DC;
}

.mobile-language-switcher {
  display: none;
}

@keyframes ariane-language-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .language-switcher__summary:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(226, 227, 229, 0.55);
    transform: translateY(-1px);
  }

  .language-switcher__option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateX(2px);
  }
}

@media (max-width: 1240px) {
  .language-switcher--desktop {
    display: none;
  }

  .mobile-primary-nav .mobile-language-switcher {
    display: block;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-language-switcher__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }

  .mobile-language-switcher__eyebrow {
    color: #A7A9AC;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
  }

  .mobile-language-switcher__current {
    color: #D7D9DC;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
  }

  .mobile-language-switcher__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav .mobile-language-switcher__option {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .primary-nav .mobile-language-switcher__option.is-active {
    background: #F0F1F2;
    border-color: #F0F1F2;
    color: #1E191C;
  }

  .mobile-language-switcher__code {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
  }
}

@media (max-width: 520px) {
  .mobile-language-switcher__options {
    grid-template-columns: 1fr;
  }
}

[dir="rtl"] .language-switcher__menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}

[dir="rtl"] .language-switcher__option {
  grid-template-columns: 8px minmax(0, 1fr) 34px;
}

[dir="rtl"] .language-switcher__active-dot {
  grid-column: 1;
  grid-row: 1;
}

[dir="rtl"] .language-switcher__option-name {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

[dir="rtl"] .language-switcher__option-code {
  grid-column: 3;
  grid-row: 1;
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher__menu {
    animation: none;
  }
}


/* ========================================================================
   FINAL APP / PROJECT / INNER-TITLE CONSISTENCY — 2026-09-10
   ======================================================================== */

/* Homepage Projects: the image must cover the complete card at every scroll
   position. JS no longer applies vertical parallax to this image. */
.portfolio-card__image {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Shared internal App CTA — restore the approved structure:
   text block on one side, store-button group on the other side. */
.sub_page .app-section__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(48px, 6vw, 110px) !important;
}

.sub_page .app-text {
  flex: 1 1 auto;
  width: auto;
  max-width: 640px;
  margin: 0;
}

.sub_page .app-store-buttons {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  margin: 0 !important;
}

/* User-requested visible outline on the App Store / Google Play buttons.
   Explicit exception to the site's normally borderless button treatment. */
.home .app-section .store-btn,
.sub_page .app-section .store-btn {
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, .025);
  min-height: 52px;
  transition:
    background-color .25s ease,
    border-color .25s ease,
    transform .25s ease !important;
}

.home .app-section .store-btn:hover,
.home .app-section .store-btn:focus-visible,
.sub_page .app-section .store-btn:hover,
.sub_page .app-section .store-btn:focus-visible {
  border-color: #fff !important;
  background: rgba(255, 255, 255, .10);
}

/* One typography system for the MAIN H1 of every interior banner.
   This closes gaps where a template only carried .h1-banner. */
main.sub_page .h1-banner,
main.sub_page .page-banner__title,
main.sub_page .projects-hero__title,
main.sub_page .project-detail-hero__title,
main.sub_page .pm-page__hero-title,
main.sub_page .standard-page__title {
  font-family: var(--font-family) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}

/* Keep the original internal-app responsive stacking. */
@media (max-width: 1100px) {
  .sub_page .app-section__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 38px !important;
  }

  .sub_page .app-text {
    width: 100%;
    max-width: 720px;
  }

  .sub_page .app-store-buttons {
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  .sub_page .app-store-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .sub_page .app-section .store-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }
}


/* ========================================================================
   BUY / RENT IMAGE-ONLY PARALLAX CLIP — EN + AR SAME MOTION
   ======================================================================== */

/*
 * .page-banner__media must remain overflow:visible because it also contains
 * the title/search panel. The runtime wrapper clips only the GSAP-transformed
 * background image, preventing a scaled image from spilling into the listing
 * section while preserving the approved yPercent/scale animation.
 */
.page-banner__image-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.page-banner__image-clip > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform-origin: center center !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Overlay and foreground content stay above the clipped background image. */
.page-banner__overlay {
  z-index: 1;
}

.page-banner__content {
  z-index: 2;
}


/* ========================================================================
   ARIANE — REQUESTED VISUAL / RTL / MOBILE FIXES
   Base: style(20260913-072232).css
   Important: original language-switcher design is preserved/restored.
   ======================================================================== */

/* ------------------------------------------------------------------------
   1) SIDE SCROLL NAVIGATION
   Keep the existing light version on image/dark sections, but make the dark
   theme readable when it crosses white/light sections.
   ------------------------------------------------------------------------ */
.side-nav.theme-dark {
  color: var(--color-charcoal, #1E191C);
}

.side-nav.theme-dark .scroll-label {
  color: rgba(30, 25, 28, 0.78);
}

.side-nav.theme-dark .scroll-line {
  background: currentColor;
  opacity: 0.62;
}

.side-nav.theme-dark .side-nav-dots button {
  border-color: rgba(30, 25, 28, 0.52);
  background: rgba(255, 255, 255, 0.88);
}

.side-nav.theme-dark .side-nav-dots button.is-active {
  border-color: var(--color-charcoal, #1E191C);
  background: var(--color-charcoal, #1E191C);
}


/* ------------------------------------------------------------------------
   2) CONTACT RAIL
   Strong enough contrast for white sections while remaining suitable on
   photography / dark sections. These rules are scoped ONLY to .contact-rail.
   ------------------------------------------------------------------------ */
.contact-rail a {
  background: rgba(30, 25, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(30, 25, 28, 0.16);
}

.contact-rail a svg {
  color: #FFFFFF;
}

.contact-rail a svg * {
  stroke: currentColor !important;
}

.contact-rail a svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}


/* ------------------------------------------------------------------------
   3) ARABIC TYPOGRAPHY SCALE
   Noto Kufi Arabic / IBM Plex Sans Arabic reads visually larger.
   Requested section-title maximum: 54.4px -> 45.4px.
   Other major Arabic headings are reduced at approximately the same ratio.
   ------------------------------------------------------------------------ */
html[dir="rtl"] {
  --h1-size: clamp(40px, 3.90vw, 74.8px);
  --title-size: clamp(38px, 2.84vw, 45.4px);
}

html[dir="rtl"] body {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
}

html[dir="rtl"] .h1-banner {
  font-size: var(--h1-size) !important;
  line-height: 1.18;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .section-title {
  font-size: var(--title-size) !important;
  line-height: 1.24;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .page-banner__title,
html[dir="rtl"] .projects-hero__title,
html[dir="rtl"] .project-detail-hero__title,
html[dir="rtl"] .pm-page__hero-title,
html[dir="rtl"] .standard-page__title {
  font-size: 46.8px !important;
  line-height: 1.20 !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .portfolio-section .section-title {
  font-size: clamp(35px, 2.63vw, 50px) !important;
  line-height: 1.18 !important;
}

html[dir="rtl"] .similar-section__title {
  font-size: 28.4px;
  line-height: 1.25;
}

html[dir="rtl"] .sub_page .app-section .section-title {
  font-size: 42.7px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}


/* ------------------------------------------------------------------------
   4) PROPERTY CARD BORDER
   ------------------------------------------------------------------------ */
.property-card {
  border-color: #D9DBDE;
}


/* ------------------------------------------------------------------------
   5) FEATURED SPACES CAROUSEL — RTL ARROW DIRECTION / POSITION
   Desktop RTL: previous control belongs on the right, next on the left.
   Rotate the existing icon artwork so its visual direction also matches RTL.
   ------------------------------------------------------------------------ */
html[dir="rtl"] .carousel-arrow--prev {
  left: auto;
  right: -22px;
}

html[dir="rtl"] .carousel-arrow--next {
  right: auto;
  left: -22px;
}

html[dir="rtl"] .carousel-arrow--prev svg,
html[dir="rtl"] .carousel-arrow--next svg {
  transform: rotate(180deg);
}


/* ------------------------------------------------------------------------
   6) MOBILE TYPOGRAPHY + SECTION RHYTHM
   Reduce oversized headings and the vertical distance between sections.
   ------------------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --h1-size: clamp(36px, 9vw, 48px);
    --title-size: clamp(28px, 7vw, 38px);
  }

  .h1-banner {
    font-size: var(--h1-size);
  }

  .section-title {
    font-size: var(--title-size);
  }

  .page-banner__title,
  .projects-hero__title,
  .project-detail-hero__title,
  .pm-page__hero-title,
  .standard-page__title {
    font-size: clamp(34px, 8.5vw, 42px) !important;
    line-height: 1.10 !important;
  }

  .portfolio-section .section-title {
    font-size: clamp(30px, 7.6vw, 40px) !important;
  }

  .similar-section__title {
    font-size: 26px;
  }

  .sub_page .app-section .section-title {
    font-size: clamp(28px, 7vw, 38px) !important;
  }

  .search-section__inner,
  .featured-section,
  .portfolio-section,
  .standards-section {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .featured-section {
    padding-bottom: 104px;
  }

  .pm-section {
    padding: 64px 0;
  }

  .testimonial-section {
    padding: 68px 0 76px;
  }

  .home .app-section {
    padding: 68px 0;
  }

  .sub_page .app-section {
    padding: 56px 0 64px;
  }

  .similar-section {
    padding: 56px 0 68px;
  }

  .listing-section {
    padding-top: 56px;
    padding-bottom: 84px;
  }

  .standard-page__content-section {
    padding-top: 56px;
    padding-bottom: 68px;
  }

  /* Featured Spaces navigation: centered pair below the cards. */
  .featured-section .carousel-wrap {
    padding-bottom: 60px;
  }

  .featured-section .carousel-arrow {
    top: auto;
    bottom: 0;
    transform: none !important;
  }

  .featured-section .carousel-arrow--prev {
    left: calc(50% - 52px);
    right: auto;
  }

  .featured-section .carousel-arrow--next {
    left: calc(50% + 8px);
    right: auto;
  }

  /* Keep the centered controls semantically mirrored in Arabic. */
  html[dir="rtl"] .featured-section .carousel-arrow--prev {
    left: calc(50% + 8px);
    right: auto;
  }

  html[dir="rtl"] .featured-section .carousel-arrow--next {
    left: calc(50% - 52px);
    right: auto;
  }

  /* Arabic needs an additional visual reduction on small screens. */
  html[dir="rtl"] {
    --h1-size: clamp(32px, 8.3vw, 42px);
    --title-size: clamp(26px, 6.6vw, 34px);
  }

  html[dir="rtl"] .page-banner__title,
  html[dir="rtl"] .projects-hero__title,
  html[dir="rtl"] .project-detail-hero__title,
  html[dir="rtl"] .pm-page__hero-title,
  html[dir="rtl"] .standard-page__title {
    font-size: clamp(30px, 7.5vw, 38px) !important;
  }

  html[dir="rtl"] .portfolio-section .section-title,
  html[dir="rtl"] .sub_page .app-section .section-title {
    font-size: var(--title-size) !important;
  }

  html[dir="rtl"] .similar-section__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --h1-size: clamp(32px, 9vw, 42px);
    --title-size: clamp(26px, 7vw, 34px);
  }

  .page-banner__title,
  .projects-hero__title,
  .project-detail-hero__title,
  .pm-page__hero-title,
  .standard-page__title {
    font-size: clamp(30px, 8vw, 38px) !important;
  }

  .search-section__inner,
  .portfolio-section,
  .standards-section {
    padding-top: 54px;
    padding-bottom: 46px;
  }

  .featured-section {
    padding-top: 54px;
    padding-bottom: 96px;
  }

  .pm-section,
  .home .app-section {
    padding: 56px 0;
  }

  .testimonial-section {
    padding: 58px 0 64px;
  }

  .sub_page .app-section,
  .similar-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  html[dir="rtl"] {
    --h1-size: clamp(29px, 8vw, 36px);
    --title-size: clamp(24px, 6.4vw, 31px);
  }

  html[dir="rtl"] .page-banner__title,
  html[dir="rtl"] .projects-hero__title,
  html[dir="rtl"] .project-detail-hero__title,
  html[dir="rtl"] .pm-page__hero-title,
  html[dir="rtl"] .standard-page__title {
    font-size: clamp(28px, 7.4vw, 34px) !important;
  }
}


/* ------------------------------------------------------------------------
   LANGUAGE SWITCHER — RESTORE / PRESERVE THE ORIGINAL APPROVED DESIGN
   These values are taken from the supplied working stylesheet.
   They intentionally override only the desktop Polylang summary control.
   ------------------------------------------------------------------------ */
.language-switcher--desktop {
  position: relative;
  z-index: 116;
  flex: 0 0 auto;
}

.language-switcher--desktop > summary {
  list-style: none !important;
}

.language-switcher--desktop > summary::marker {
  content: "";
  display: none;
}

.language-switcher--desktop > summary::-webkit-details-marker {
  display: none !important;
}

.language-switcher--desktop .language-switcher__summary {
  min-width: 82px !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px 0 10px !important;
  margin: 0 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid rgba(226, 227, 229, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: inherit !important;
  writing-mode: horizontal-tb !important;
  line-height: 1 !important;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.language-switcher--desktop .language-switcher__summary::before,
.language-switcher--desktop .language-switcher__summary::after {
  content: none !important;
  display: none !important;
}

.language-switcher--desktop .language-switcher__globe {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 18px !important;
}

.language-switcher--desktop .language-switcher__globe svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.language-switcher--desktop .language-switcher__code {
  display: inline-block !important;
  width: auto !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 1.35px !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

.language-switcher--desktop .language-switcher__chevron {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
  position: static !important;
}

@media (max-width: 1240px) {
  .language-switcher--desktop {
    display: none !important;
  }
}

/* ========================================================================
   ARABIC FEATURED PROPERTY CARD — REMOVE EMPTY BOTTOM GAP
   In RTL, different Arabic text wrapping can make one card shorter than the
   tallest flex item in the carousel. The outer card stretches, leaving its
   white background visible below .property-card__body.
   Keep equal-height cards, but let the body fill the stretched space.
   ======================================================================== */
html[dir="rtl"] .featured-section .property-card {
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .featured-section .property-card__img {
  flex: 0 0 auto;
}

html[dir="rtl"] .featured-section .property-card__body {
  flex: 1 1 auto;
  width: 100%;
}


/* ========================================================================
   SIDE NAV — AUTO CONTRAST FIX
   The markup starts as .theme-light, so a white-only theme disappears when
   the fixed rail passes over white sections. Difference blending lets the
   SAME fixed rail remain visible on both dark/image and white backgrounds
   without needing to alter the HTML or the existing section logic.
   ======================================================================== */

#sideNav.side-nav {
  /* White is intentionally used as the blend source:
     - over dark backgrounds it stays light
     - over white/light backgrounds it becomes dark */
  color: #FFFFFF !important;
  mix-blend-mode: difference;
}

#sideNav.side-nav .scroll-label {
  color: currentColor !important;
  opacity: 0.92;
}

#sideNav.side-nav .scroll-line {
  background: currentColor !important;
  opacity: 0.72;
}

#sideNav.side-nav .side-nav-dots button {
  background: transparent !important;
  border-color: currentColor !important;
  color: currentColor !important;
  opacity: 0.92;
}

#sideNav.side-nav .side-nav-dots button.is-active {
  background: currentColor !important;
  border-color: currentColor !important;
  opacity: 1;
}

/* Keep hover/focus clear without changing the established layout. */
#sideNav.side-nav .side-nav-dots button:hover,
#sideNav.side-nav .side-nav-dots button:focus-visible {
  opacity: 1;
}

/* The old theme classes may still be toggled by JS.
   Do not let either class force an unreadable fixed colour. */
#sideNav.side-nav.theme-light,
#sideNav.side-nav.theme-dark {
  color: #FFFFFF !important;
}


/* ========================================================================
   SIDE NAV — THEME DIRECTION CORRECTION
   Previous auto-contrast behavior was visually reversed on the live sections.
   Use the existing JS theme classes, but map them to the opposite foreground:
   - theme-light section/background -> dark nav
   - theme-dark section/background  -> light nav
   ======================================================================== */

#sideNav.side-nav {
  mix-blend-mode: normal !important;
}

/* On light / white sections */
#sideNav.side-nav.theme-light {
  color: var(--color-charcoal, #1E191C) !important;
}

/* On dark / image sections */
#sideNav.side-nav.theme-dark {
  color: #FFFFFF !important;
}

#sideNav.side-nav .scroll-label {
  color: currentColor !important;
  opacity: 0.92;
}

#sideNav.side-nav .scroll-line {
  background: currentColor !important;
  opacity: 0.72;
}

#sideNav.side-nav .side-nav-dots button {
  background: transparent !important;
  border-color: currentColor !important;
  color: currentColor !important;
  opacity: 0.92;
}

#sideNav.side-nav .side-nav-dots button.is-active {
  background: currentColor !important;
  border-color: currentColor !important;
  opacity: 1;
}


/* ========================================================================
   SIDE NAV — SINGLE GENERAL STYLE
   One fixed appearance for every section/background.
   No section-based theme switching, no blend mode.
   ======================================================================== */

#sideNav.side-nav,
#sideNav.side-nav.theme-light,
#sideNav.side-nav.theme-dark {
  color: #fff !important;
  mix-blend-mode: normal !important;

  background: rgba(60, 58, 60, 0.42);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 19px 5px;

  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#sideNav.side-nav .scroll-label {
  color: #FFFFFF !important;
  opacity: 0.92;
}

#sideNav.side-nav .scroll-line {
  background: #FFFFFF !important;
  opacity: 0.62;
}

#sideNav.side-nav .side-nav-dots button {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  color: #FFFFFF !important;
  opacity: 0.92;
}

#sideNav.side-nav .side-nav-dots button.is-active {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  opacity: 1;
}

/* ==========================================================
   PROPERTY DETAILS — GALLERY LAYOUT STABILITY
   Scoped only to the single-property gallery.
   Keeps the gallery height independent from the number or
   original dimensions of uploaded images.
   ========================================================== */

@media (min-width: 1201px) {
  .listing-top .gallery {
    --ariane-gallery-gap: 24px;
    --ariane-gallery-thumbs-width: clamp(240px, 22vw, 340px);

    position: relative;
    display: block;
    width: 100%;
    padding-right: calc(var(--ariane-gallery-thumbs-width) + var(--ariane-gallery-gap));
    min-width: 0;
  }

  /*
   * The main image defines the gallery height.
   * Portrait / very tall uploads are cropped inside this frame
   * instead of increasing the entire page height.
   */
  .listing-top .property-gallery-main.swiper {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 9.3;
    overflow: hidden;
    border-radius: 6px;
  }

  .listing-top .property-gallery-main .swiper-wrapper,
  .listing-top .property-gallery-main .swiper-slide {
    width: 100%;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
  }

  .listing-top .property-gallery-main .swiper-slide {
    overflow: hidden;
  }

  .listing-top .property-gallery-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: contain;
    object-position: center;
  }

  /*
   * Thumbnail rail is positioned against the main-image frame.
   * Therefore adding 4, 10 or 30 gallery images can never make
   * the desktop gallery taller.
   */
  .listing-top .property-gallery-thumbs.swiper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: var(--ariane-gallery-thumbs-width);
    height: auto !important;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0;

    overflow: hidden;
    border-radius: 6px;
  }

  .listing-top .property-gallery-thumbs .swiper-wrapper {
    width: 100%;
    height: 100% !important;
    min-height: 0;
  }

  .listing-top .property-gallery-thumbs .gallery__thumb.swiper-slide {
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 6px;
  }

  .listing-top .property-gallery-thumbs .gallery__thumb img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }
}

/* Tablet / mobile: main image on top, horizontal thumbnails below. */
@media (max-width: 1200px) {
  .listing-top .gallery {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .listing-top .property-gallery-main.swiper {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
  }

  .listing-top .property-gallery-main .swiper-wrapper,
  .listing-top .property-gallery-main .swiper-slide {
    height: 100% !important;
  }

  .listing-top .property-gallery-main .swiper-slide img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  .listing-top .property-gallery-thumbs.swiper {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(105px, 18vw, 170px) !important;
    margin-top: 14px;
    overflow: hidden;
  }

  .listing-top .property-gallery-thumbs .swiper-wrapper {
    height: 100% !important;
  }

  .listing-top .property-gallery-thumbs .gallery__thumb.swiper-slide {
    height: 100% !important;
    min-height: 0;
    overflow: hidden;
    border-radius: 6px;
  }

  .listing-top .property-gallery-thumbs .gallery__thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 520px) {
  .listing-top .property-gallery-thumbs.swiper {
    height: 96px !important;
  }
}