:root {
  --ink: #171511;
  --muted: #716b60;
  --paper: #f4efe5;
  --panel: #fffdf8;
  --dark: #12110e;
  --gold: #c6a052;
  --gold-light: #d8b66e;
  --line: #d7cdbc;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }

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

button, input, select, textarea { font: inherit; }

button { color: inherit; cursor: pointer; }

img { max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.eyebrow,
.section-label,
.apartments-section h4 {
  color: #8d6620;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.button-outline { background: transparent; color: var(--dark); }

.gold-button {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--dark);
}

.outline-light { border-color: #ffffff; background: transparent; }

/* =====================================================
   HEADER
   ===================================================== */

/* =====================================================
   HEADER
   ===================================================== */

.topbar {
  width: 100%;
  min-height: 88px;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: #11100d;
  color: #ffffff;
  border-bottom: 1px solid rgba(216, 182, 110, 0.2);
}

.header-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 88px;
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 200px;
  align-items: center;
  column-gap: 24px;
}


.brand-pair {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}


.brand-pair img {
  width: auto;
  display: block;
  object-fit: contain;
}


.brand-pair img:first-child {
  height: 48px;
  max-width: 190px;
}

.brand-pair img:last-child {
  height: 56px;
  max-width: 92px;
}

.header-navigation {
  min-width: 0;
  min-height: 88px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.4vw, 24px);
  white-space: nowrap;
}

.header-navigation > button,
.residence-dropdown-toggle {
  width: auto;
  min-height: 44px;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
}

.header-navigation > button:not(.header-enquiry)::after,
.residence-dropdown-toggle::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.header-navigation > button:not(.header-enquiry):hover,
.header-navigation > button:not(.header-enquiry):focus-visible,
.residence-dropdown-toggle:hover,
.residence-dropdown-toggle:focus-visible {
  color: var(--gold-light);
}

.header-navigation > button:not(.header-enquiry):hover::after,
.header-navigation > button:not(.header-enquiry):focus-visible::after,
.residence-dropdown-toggle:hover::after,
.residence-dropdown-toggle:focus-visible::after {
  transform: scaleX(1);
}

.header-enquiry {
  width: 200px;
  min-width: 200px;
  height: 50px;
  min-height: 50px !important;
  margin: 0;
  padding: 0 18px !important;
  justify-self: end;
  border: 1px solid var(--gold-light) !important;
  background: var(--gold-light) !important;
  color: var(--dark) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

.header-enquiry::after {
  display: none !important;
}

.header-enquiry:hover,
.header-enquiry:focus-visible {
  border-color: #ffffff !important;
  background: #ffffff !important;
}

/* Mobile navigation button */

.menu-toggle {
  width: 50px;
  height: 50px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--gold);
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  background: var(--gold-light);
}

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

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

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

/* Residences dropdown */

.residence-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.residence-dropdown-toggle {
  gap: 7px;
}

.residence-dropdown-toggle > span {
  color: var(--gold-light);
  font-size: 9px;
}

.residence-dropdown-menu {
  width: 290px;
  max-width: calc(100vw - 32px);
  max-height: min(470px, calc(100vh - 130px));
  padding: 13px 18px 15px;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 1200;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(216, 182, 110, 0.7);
  background: #11100d;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.residence-dropdown.open .residence-dropdown-menu {
  display: block;
}

.dropdown-heading {
  padding: 5px 2px 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dropdown-layout {
  width: 100%;
  min-height: 46px;
  padding: 7px 6px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.dropdown-layout strong,
.dropdown-layout span {
  flex: 0 0 auto;
  pointer-events: none;
}

.dropdown-layout strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.dropdown-layout span {
  color: #c8c5c0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.dropdown-layout:hover,
.dropdown-layout:focus-visible,
.dropdown-layout.active {
  background: rgba(216, 182, 110, 0.1);
  outline: none;
}

.dropdown-layout:hover strong,
.dropdown-layout:focus-visible strong,
.dropdown-layout.active strong {
  color: var(--gold-light);
}

.dropdown-separator {
  height: 1px;
  margin: 7px 2px 9px;
  background: rgba(216, 182, 110, 0.35);
}
/* =====================================================
   HERO
   ===================================================== */

.hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(18, 17, 14, 0.9), rgba(18, 17, 14, 0.6), rgba(18, 17, 14, 0.15)),
    url("./assets/residence-living-city-view.jpg") center / cover;
  color: #ffffff;
}

.hero h1 {
  max-width: 980px;
  margin: 0 0 14px;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.03;
}

.hero h1 span { color: var(--gold-light); }

.hero p { max-width: 800px; margin: 0; font-size: 16px; }

.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================
   STATISTICS
   ===================================================== */

   /* =====================================================
   SALES & RENTALS DROPDOWN
===================================================== */

.statistic-clickable{
  cursor:pointer;
  transition: 0.2s ease;
}

.statistic-clickable:hover{
  background:#f8f6f2;
}
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #ffffff;
}

.statistic {
  min-height: 92px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.statistic strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.statistic span {
  color: #8d6620;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.rental-residence-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,minmax(260px,1fr));
  gap:22px;
}
.rental-residence-card{
  min-height:280px;
  padding:32px 24px;
  border:1px solid var(--line);
  background:#f8f4eb;
  text-align:center;
  transition:.2s ease;
}
.rental-residence-card:hover{
  background:#ffffff;
  border-color:var(--gold);
}

.rental-residence-card strong{
  display:block;
  margin-bottom:8px;
  font-family:var(--serif);
  font-size:28px;
  font-weight:400;
}

.rental-residence-card span{
  display:block;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}

@media (max-width:650px){

  .rental-residence-grid{
    grid-template-columns:1fr;
  }

}
.rental-card-button{
  margin-top:12px;

  padding:8px 10px;

  border:1px solid #cdbd9f;

  background:#f8f6f2;

  color:#8d6620;

  font-size:9px;
  font-weight:700;

  text-transform:uppercase;

  transition:.2s ease;
}

.rental-card-button:hover{
  background:#f8f6f2;
  border-color:#c6a052;
}

.statistic-clickable{
  cursor:pointer;
  transition:.25s ease;
}

.statistic-clickable:hover{
  background:#f8f6f2;
}

/* =====================================================
   PANELS AND TABS
   ===================================================== */

.panel-area { padding: 24px 12px; }

.content-panel {
  width: min(960px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-tabs {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f0e9dc;
}

.panel-tabs button { border: 0; background: transparent; }

.panel-tabs button.active {
  font-weight: 700;
  box-shadow: inset 0 -3px var(--gold);
}

.panel-content { padding: 26px; }

.panel-heading { margin-bottom: 20px; }

.panel-heading h2 { margin: 0 0 8px; font-size: 32px; }

.panel-heading p { margin: 0; color: var(--muted); }

/* =====================================================
   FACEBOOK VIDEOS (vertical, fixed size)
   Used by the Walkthrough tab AND the Why Aurea tab.
   Change 320px below to resize the Walkthrough video.
   ===================================================== */

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000000;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
}

.video-container.video-vertical {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 0;
  margin: 0 auto;
  position: relative;
  display: block;
  overflow: hidden;
  background: #11100d;
}

.video-vertical .fb-video,
.video-vertical .fb-video > span,
.video-vertical iframe {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

/* =====================================================
   WHY AUREA: benefit cards on the left, video on the right
   ===================================================== */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

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

.why-video { min-width: 0; }

.why-video .video-container.video-vertical { width: 100%; }

/* =====================================================
   WATCH YOUTUBE BUTTON
   ===================================================== */

.walkthrough-more-action {
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
}

.walkthrough-more-button {
  width: min(310px, 100%);
  min-height: 50px;
  gap: 11px;
  border-color: var(--gold);
  background: var(--dark);
  color: #ffffff;
  box-shadow: 0 9px 22px rgba(18, 17, 14, 0.16);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.walkthrough-more-button span {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 10px;
}

.walkthrough-more-button:hover,
.walkthrough-more-button:focus-visible {
  background: #29251d;
  box-shadow: 0 13px 28px rgba(18, 17, 14, 0.24);
  transform: translateY(-2px);
}

/* =====================================================
   YOUTUBE POPUP (hidden until opened)
   ===================================================== */

.facebook-video-modal {
  padding: 20px;
  position: fixed;
  inset: 0;
  z-index: 850;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 6, 0.92);
  backdrop-filter: blur(6px);
}

.facebook-video-modal.open { display: flex; }

.facebook-video-modal-box {
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(216, 182, 110, 0.6);
  background: #fffdf8;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.52);
}

.facebook-video-modal-head {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fffdf8, #f3ead9);
}

.facebook-video-modal-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.facebook-video-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.facebook-video-close:hover,
.facebook-video-close:focus-visible {
  border-color: var(--gold);
  background: #f5efe4;
}

.facebook-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11100d;
}

.facebook-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000000;
}

.facebook-video-fallback {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.facebook-video-fallback p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.facebook-video-link {
  width: 100%;
  min-height: 46px;
  gap: 9px;
  border-color: var(--gold);
}

/* =====================================================
   WALKTHROUGH COLLECTION
   ===================================================== */

.walkthrough-collection {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.collection-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.collection-heading h3 { margin: 5px 0; font-size: 31px; }

.collection-heading p { margin: 0; color: var(--muted); }

.collection-summary {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.collection-summary article {
  min-height: 75px;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.collection-summary strong { font-size: 24px; }

.collection-summary span {
  color: #8d6620;
  font-size: 9px;
  text-transform: uppercase;
}

.collection-group {
  margin-bottom: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #f8f4eb;
}

.collection-group-heading {
  margin-bottom: 15px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.collection-group-heading > span {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
}

.collection-group-heading h4,
.collection-group-heading p { margin: 0; }

.collection-group-heading p { color: var(--muted); font-size: 11px; }

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

.collection-single { grid-template-columns: minmax(250px, 310px); }

.collection-residence-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.collection-residence-image {
  height: 155px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}

.collection-residence-image img { width: 100%; height: 100%; object-fit: contain; }

.collection-residence-content { padding: 15px; }

.collection-residence-label {
  color: #8d6620;
  font-size: 9px;
  text-transform: uppercase;
}

.collection-residence-content h5 {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.collection-residence-card {
  display: flex;
  flex-direction: column;
}

.collection-residence-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.collection-residence-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.collection-residence-actions {
  margin-top: auto;
}

.collection-residence-actions { display: flex; flex-wrap: wrap; gap: 7px; }

/* =====================================================
   BENEFITS
   ===================================================== */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefit-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  background: #f5efe4;
}

.benefit-grid h3 { margin: 0 0 7px; font-size: 20px; }

.benefit-grid p { color: var(--muted); font-size: 12px; }

/* =====================================================
   RESIDENCE SELECTOR (floor plan no longer overflows)
   ===================================================== */

.bedroom-filters,
.layout-filters,
.amenity-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.layout-filters { margin: 10px 0 16px; }

.filter-chip,
.layout-chip {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #cdbd9f;
  border-radius: 999px;
  background: #ffffff;
}

.filter-chip.active,
.layout-chip.active { background: var(--gold-light); }

.residence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 25px;
}

.residence-layout > div { min-width: 0; }

.floor-plan-frame {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.selector-layout-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.selector-main-layout,
.selector-floor-thumbnail {
  min-height: 0;
  padding: 32px 7px 8px;
  position: relative;
  border: 1px solid var(--line);
  background: #ffffff;
}

.selector-main-layout img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
}

.selector-floor-thumbnail { width: 120px; background: #f5efe4; }

.selector-floor-thumbnail img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.selector-image-label {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #8d6620;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.selector-floor-caption {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.selector-view-action {
  padding: 8px;
  position: absolute;
  right: 7px;
  bottom: 7px;
  background: var(--dark);
  color: #ffffff;
  font-size: 8px;
}

.residence-information h3 { margin: 5px 0; font-size: 28px; }
.layout-rental-price{
  margin:10px 0 18px;
  color:#a87829;
  font-size:16px;
  font-weight:600;
  line-height:1.4;
}


.layout-meta { color: #a87829; font-weight: 700; }

.layout-description { color: var(--muted); font-size: 12px; }

.residence-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.apartments-section { margin-top: 20px; }

.listing-preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.listing-preview-grid.single-apartment { grid-template-columns: 220px; }

.apartment-type-card {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5efe4;
  text-align: left;
}

.apartment-type-image {
  height: 135px;
  padding: 6px;
  display: block;
  background: #ffffff;
}

.apartment-type-image img { width: 100%; height: 100%; object-fit: contain; }

.apartment-type-copy {
  min-height: 120px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.apartment-type-label { color: #8d6620; font-size: 9px; text-transform: uppercase; }

.apartment-type-copy strong {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.apartment-type-copy small { color: var(--muted); }

.apartment-type-copy em {
  margin-top: auto;
  color: #8d6620;
  font-size: 9px;
  font-style: normal;
}

/* =====================================================
   AMENITIES
   ===================================================== */

.amenity-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.amenity-card { border: 1px solid var(--line); background: #f5efe4; }

.amenity-image-frame { height: 145px; }

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

.amenity-card-content { padding: 13px; }

.amenity-card-content h3 { margin: 0; font-family: var(--serif); font-weight: 400; }

.amenity-card-content p { color: var(--muted); font-size: 11px; }


/* =====================================================
   LOCATION
   ===================================================== */

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.location-map {
  height: 260px;
}

.location-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

/* Nearby destination cards */

.nearby-section {
  padding: 18px 0 4px;
  border-bottom: 1px solid var(--line);
}

.nearby-heading {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: baseline;
  gap: 12px;
}

.nearby-heading > span {
  color: var(--ink);
  font-size: 15px;
}

.nearby-heading > strong {
  font-size: 15px;
  font-weight: 700;
}

.nearby-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nearby-card {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  background: #f8f4eb;
}

.nearby-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 160, 82, 0.5);
  border-radius: 50%;
  background: #ffffff;
  font-size: 17px;
}

.nearby-card-copy {
  min-width: 0;
  flex: 1;
}

.nearby-time {
  display: block;
  margin-bottom: 3px;
  color: #8d6620;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nearby-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.nearby-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby-card li {
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(215, 205, 188, 0.75);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.nearby-card li span {
  min-width: 0;
}
.nearby-card li strong {
  flex: 0 0 auto;
  color: #8d6620;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.nearby-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

/* =====================================================
   APARTMENT DETAILS
   ===================================================== */

.details-hero { padding: 36px 0; background: var(--dark); color: #ffffff; }

.back-link { color: var(--gold-light); }

.details-hero h1 { margin: 5px 0; font-size: 48px; }

.details-content { padding: 25px 0 40px; }

.details-container {
  width: min(900px, calc(100% - 30px));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.details-gallery-heading {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f5efe4;
}

.details-gallery-heading h2 { margin: 0 0 6px; font-size: 27px; }
.details-rental-price{
  margin: 4px 0 8px;
  color:#a87829;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
}

#details-enquiry-top { min-width: 188px; min-height: 44px; }

.details-gallery-stage {
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 65px;
  background: #eeeeee;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 50%;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.details-main-image-button {
  max-width: 90%;
  padding: 0;
  position: relative;
  border: 0;
  background: transparent;
}

.details-main-image-button img { width: 100%; max-height: 375px; object-fit: contain; }

.details-main-image-button span {
  padding: 8px 10px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--dark);
  color: #ffffff;
  font-size: 9px;
}

.gallery-thumbs {
  padding: 10px 10px 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-thumb { width: 105px; height: 65px; padding: 0; }

.gallery-thumb.active { border: 2px solid var(--gold); }

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

.gallery-360-action {
  padding: 18px 24px 24px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #faf7f0);
}

.gallery-360-button {
  width: min(330px, 100%);
  min-height: 52px;
  gap: 12px;
  border-color: var(--gold);
  box-shadow: 0 9px 22px rgba(18, 17, 14, 0.18);
}

.gallery-360-button span {
  min-width: 42px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 182, 110, 0.75);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 10px;
}

.details-section {
  padding: 36px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.details-section h2 { margin: 0 0 16px; color: #a8884a; font-size: 24px; }

.details-section > p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; }

.details-section .gallery-specs {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.details-section .gallery-spec {
  padding: 11px 8px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details-section .gallery-spec b { font-size: 12px; }

.details-section .gallery-spec span { color: var(--muted); font-size: 12px; }

.details-selector-link { min-height: 34px; margin-top: 0; padding: 0 14px; }

.details-section .feature-list {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
  list-style: disc;
}

.details-section .feature-list li { margin: 0 0 4px; font-size: 12px; }

.image-nav-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.image-nav-tile {
  width: 195px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
}

.image-nav-tile img { width: 100%; height: 88px; object-fit: cover; }

.image-nav-tile span { display: block; padding: 10px 8px; font-size: 12px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
}

.related-card img {
  width: 100%;
  height: 170px;
  padding: 10px;
  object-fit: contain;
  background: #faf7f0;
  border-bottom: 1px solid var(--line);
}

.related-card span { padding: 14px; display: flex; flex-direction: column; gap: 4px; }

.details-enquiry-section,
.compact-cta { padding: 25px 30px; background: var(--gold-light); }

.details-enquiry-section,
.compact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =====================================================
   360-DEGREE MODAL
   ===================================================== */

.residence-360-modal {
  padding: 24px;
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 7, 0.94);
  backdrop-filter: blur(6px);
}

.residence-360-modal.open { display: flex; }

.residence-360-modal-box {
  width: min(1050px, 100%);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid rgba(216, 182, 110, 0.55);
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.residence-360-modal-head {
  margin-bottom: 18px;
  padding-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.residence-360-modal-head h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); }

.residence-360-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-size: 28px;
}

.residence-360-warning {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2d3ae;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: var(--muted);
  font-size: 12px;
}

.residence-360-status { min-height: 24px; margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.residence-360-status.success { color: #2f6b3a; }
.residence-360-status.error { color: #a12b2b; }

.residence-360-viewer {
  width: 100%;
  height: min(600px, 65vh);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: var(--dark);
}

.residence-360-help {
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.pnlm-container { font-family: var(--sans); }

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

.footer { padding: 22px 0; background: var(--dark); color: #ffffff; }

.footer-main {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-logos { display: flex; gap: 8px; }

.footer-logos img { width: auto; height: 32px; }

/* =====================================================
   ENQUIRY MODAL
   ===================================================== */

.modal {
  padding: 15px;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.modal.open { display: flex; }
#rental-residences-modal .modal-box {
  width: min(1400px, 95vw);
  max-width: 1400px;
  max-height: 90vh;
  padding: 40px 48px;
}

.modal-box {
  width: min(520px, 100%);
  max-height: calc(100vh - 30px);
  padding: 32px;
  position: relative;
  overflow-y: auto;
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.form-grid label { display: flex; flex-direction: column; gap: 5px; }

.full-field { grid-column: 1 / -1; }

.form-grid input,
.form-grid select,
.form-grid textarea { width: 100%; padding: 10px; border: 1px solid var(--line); }

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }

.submit-button { width: 100%; margin-top: 15px; }

.submit-button:disabled { opacity: 0.6; cursor: wait; }

.form-note { color: var(--muted); font-size: 11px; }

.form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  background: #f8f4eb;
  font-size: 12px;
}

.form-status.error { border-left-color: #a12b2b; color: #a12b2b; }
.form-status.success { border-left-color: #2f6b3a; color: #2f6b3a; }

.enquiry-receipt { text-align: center; }

.enquiry-receipt-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-light);
  font-size: 26px;
}

.enquiry-receipt-summary {
  margin: 16px 0;
  border: 1px solid var(--line);
  text-align: left;
}

.enquiry-receipt-summary > div {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.enquiry-receipt-summary > div:last-child { border-bottom: 0; }

.enquiry-receipt-summary span { color: var(--muted); font-size: 12px; }

.enquiry-receipt-note { color: var(--muted); font-size: 11px; }

.enquiry-receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* =====================================================
   BUYER ASSISTANT
   ===================================================== */

.chat-launch {
  min-height: 48px;
  padding: 0 18px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  border: 0;
  background: var(--dark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chat-launch span { color: var(--gold-light); }

.chat-panel {
  width: min(470px, calc(100vw - 28px));
  height: min(690px, calc(100vh - 95px));
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 151;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
}

.chat-panel.open { display: flex; }

.chat-head {
  min-height: 90px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: #ffffff;
}

.chat-head strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 400; }

.chat-head small { display: block; color: var(--gold-light); }

.chat-head button { border: 0; background: transparent; color: #ffffff; font-size: 25px; }

.chat-progress { height: 3px; background: #e9e1d0; }

.chat-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--gold);
  transition: width 0.3s ease;
}

.chat-messages {
  min-height: 0;
  padding: 22px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  background: #f8f4ec;
}

.chat-bubble { max-width: 90%; padding: 13px 15px; border: 1px solid #ddd0b8; background: #ffffff; }

.chat-bubble-user { align-self: flex-end; background: var(--dark); color: #ffffff; }

.chat-bubble-error { border-color: #a12b2b; color: #a12b2b; }

.chat-options {
  max-height: 230px;
  padding: 13px 20px 17px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow-y: auto;
}

.chat-options.apartment-options { grid-template-columns: 1fr; }

.chat-option { min-height: 50px; padding: 10px 13px; border: 1px solid #cfb477; background: #ffffff; text-align: left; }

.chat-option:hover,
.chat-option:focus-visible { background: #f7f0e2; border-color: var(--gold); }

.chat-entry,
.chat-review,
.chat-done-actions { padding: 13px 20px; }

.chat-entry > div { display: grid; grid-template-columns: 1fr auto; }

.chat-entry input { min-width: 0; padding: 10px; }

.chat-entry button,
.chat-done-actions button { padding: 10px 13px; }

.chat-review { overflow-y: auto; }

.chat-review-list { display: grid; grid-template-columns: 110px 1fr; gap: 5px; }

.chat-review-list dd { margin: 0; }

.chat-done-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.chat-privacy { padding: 11px 20px; font-size: 9px; }

/* =====================================================
   IMAGE LIGHTBOX
   ===================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  flex-direction: column;
  background: rgba(8, 8, 7, 0.97);
  color: #ffffff;
}

.image-lightbox.open { display: flex; }

.image-lightbox-toolbar { padding: 14px 22px; display: flex; justify-content: space-between; }

.image-lightbox-toolbar button { border: 0; background: transparent; color: #ffffff; font-size: 30px; }

.image-lightbox-stage {
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 30px 80px;
}

.image-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  transform: translateY(-50%);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-thumbnails { padding: 10px; display: flex; justify-content: center; gap: 8px; }

.image-lightbox-thumbnail { width: 90px; height: 60px; padding: 0; }

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1380px) {
  .header-inner {
    width: calc(100% - 48px);
    gap: 20px;
  }

  .brand-pair {
    min-width: 285px;
    gap: 22px;
  }

  .brand-pair img:first-child {
    height: 50px;
    max-width: 195px;
  }

  .brand-pair img:last-child {
    height: 58px;
    max-width: 92px;
  }

 .header-navigation {
  min-width: 0;
  min-height: 88px;
  margin-left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 24px;
  white-space: nowrap;
}
  .header-navigation > button,
  .residence-dropdown-toggle {
    font-size: 14px;
  }

  .header-enquiry {
  width: 220px;
  min-width: 220px;
  height: 52px;
  min-height: 52px !important;
  margin-left: 16px;
  padding: 0 20px !important;
  flex: 0 0 220px;
  border: 1px solid var(--gold-light) !important;
  background: var(--gold-light) !important;
  color: var(--dark) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
}

@media (max-width: 1100px) {
  .topbar,
  .header-inner { min-height: 88px; }

  .header-inner { width: calc(100% - 42px); }

  .brand-pair { min-width: 0; gap: 26px; }
  .brand-pair img:first-child { height: 60px; max-width: 230px; }
  .brand-pair img:last-child { height: 67px; max-width: 115px; }

  .menu-toggle { display: flex; }

  .header-navigation {
    width: min(430px, calc(100vw - 30px));
    min-height: 0;
    margin: 0;
    padding: 15px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(216, 182, 110, 0.72);
    background: #11100d;
  }

  .header-navigation.open { display: flex; }

  .header-navigation > button,
  .residence-dropdown-toggle {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    justify-content: flex-start;
    font-size: 15px;
    text-align: left;
  }

  .header-enquiry {
    width: 100% !important;
    min-width: 0;
    min-height: 54px !important;
    margin-top: 8px;
    justify-content: center !important;
  }

  .residence-dropdown { width: 100%; display: block; }


  .residence-layout,
  .location-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .collection-card-grid,
  .benefit-grid,
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }

  .collection-heading,
  .compact-cta-inner,
  .details-enquiry-section { align-items: flex-start; flex-direction: column; }

  /* Why Aurea: video moves below the cards */
  .why-layout { grid-template-columns: 1fr; }
  .why-layout .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .why-video .video-container.video-vertical { width: 320px; }
}

@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 24px); }

  .topbar,
  .header-inner { min-height: 88px; }

  .header-inner { width: calc(100% - 28px); gap: 14px; }

  .brand-pair { gap: 14px; }
  .brand-pair img:first-child { height: 43px; max-width: 164px; }
  .brand-pair img:last-child { height: 49px; max-width: 84px; }

  .menu-toggle { width: 50px; height: 50px; flex-basis: 50px; }

  .hero h1 { font-size: 40px; }

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

  .panel-tabs { display: flex; overflow-x: auto; }
  .panel-tabs button { min-width: 110px; flex: none; }

  .panel-content { padding: 18px 12px; }

  .collection-summary,
  .collection-card-grid,
  .collection-single,
  .benefit-grid,
  .why-layout .benefit-grid,
  .amenity-grid { grid-template-columns: 1fr; }

  .selector-layout-gallery,
  .listing-preview-grid,
  .listing-preview-grid.single-apartment { grid-template-columns: 1fr; }

  .selector-floor-thumbnail { width: 100%; }
  .selector-floor-thumbnail img { height: auto; max-height: 160px; }

  .apartment-type-card { width: 100%; }

  .details-gallery-heading { align-items: flex-start; flex-direction: column; }

  #details-enquiry-top { width: 100%; max-width: none; }

  .details-section,
  .details-enquiry-section { padding: 28px 16px; }

  .details-section .gallery-specs { grid-template-columns: 1fr; }
  .details-section .gallery-spec { grid-template-columns: 125px 1fr; }
  .details-section .feature-list { columns: 1; }

  .image-nav-tile { width: calc(50% - 4px); }

  .related-grid,
  .form-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; }

  .chat-panel { width: calc(100vw - 12px); height: calc(100vh - 75px); right: 6px; bottom: 60px; }

  .chat-options,
  .chat-entry > div,
  .chat-done-actions { grid-template-columns: 1fr; }

  .facebook-video-modal,
  .residence-360-modal { padding: 8px; }

  .walkthrough-more-button,
  .gallery-360-button { width: 100%; }

  .residence-360-modal-box { max-height: calc(100vh - 16px); padding: 16px; }
  .residence-360-viewer { height: 55vh; min-height: 340px; }

  .image-lightbox-stage { padding: 20px 45px; }

  .why-video .video-container.video-vertical { width: 100%; max-width: 320px; }
}


/* =====================================================
   INLINE YOUTUBE VIDEOS (Walkthrough + Why Aurea)
   ===================================================== */

.video-container.video-inline {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #000000;
}

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

.why-video {
  position: sticky;
  top: 16px;
}

.why-video .video-container.video-inline { width: 100%; }

@media (max-width: 980px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-video { position: static; }
}


.why-video .video-container.video-vertical {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

