/* Tokens now in tokens.css — aliases for backward compat */
:root {
  --white: var(--color-white);
  --navy-980: var(--color-navy-980);
  --navy-940: var(--color-navy-940);
  --navy-900: var(--color-navy-900);
  --navy-860: var(--color-navy-860);
  --navy-820: var(--color-navy-820);
  --line: var(--color-line);
  --surface: var(--color-surface);
  --surface-shadow: var(--shadow-md);
  --premium-btn-shadow-soft: var(--shadow-btn-soft);
  --premium-btn-shadow-strong: var(--shadow-btn-strong);
  --premium-btn-shadow-hover: var(--shadow-btn-hover);
  --max: var(--max-width);
  --gutter: var(--site-gutter);
}

* {
  box-sizing: border-box;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--navy-940);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 560px at 105% -15%, rgba(31, 79, 152, 0.12), rgba(31, 79, 152, 0) 68%),
    radial-gradient(760px 480px at -15% 88%, rgba(31, 79, 152, 0.08), rgba(31, 79, 152, 0) 74%),
    #fff;
}

.topbar-wrap {
  width: 100%;
  border-bottom: 1px solid rgba(174, 203, 246, 0.62);
  background: linear-gradient(
    108deg,
    rgba(20, 58, 117, 0.24) 0%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(255, 255, 255, 0.72) 100%
  );
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 92px;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand {
  min-width: 0;
  z-index: 3;
}

.brand a {
  display: inline-flex;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(320px, 26vw);
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.nav a {
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  color: #12356d;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 15px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a + a {
  border-left: 1px solid rgba(18, 53, 109, 0.34);
}

.nav a:hover,
.nav a.is-active {
  color: #2f67bc;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  z-index: 3;
}

.header-cta {
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid #2f64b2;
  border-radius: 999px;
  padding: 12px 17px;
  background: linear-gradient(145deg, #2e66bb, #174283);
  color: #fff;
  transition: transform 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
}

.language-switcher {
  position: relative;
  height: 42px;
  min-width: 74px;
  border-radius: 999px;
  border: 1px solid rgba(18, 53, 109, 0.34);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(6, 23, 53, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px 0 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-switcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(7, 29, 63, 0.18);
  border-color: rgba(32, 79, 148, 0.52);
}

.language-switcher-code {
  font-family: "Outfit", sans-serif;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.language-switcher-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.language-switcher-caret {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #264f90;
  border-bottom: 1.6px solid #264f90;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.properties-page {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 0;
}

.page-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid rgba(167, 194, 237, 0.34);
  border-bottom: 1px solid rgba(167, 194, 237, 0.34);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(120deg, rgba(13, 34, 56, 0.95) 0%, rgba(18, 48, 77, 0.92) 52%, rgba(27, 67, 107, 0.88) 100%);
  box-shadow: 0 20px 42px rgba(13, 34, 56, 0.24);
  padding: 52px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 48px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-kicker,
.page-hero .hero-kicker {
  margin: 0;
  color: #bdd5fb;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.64rem;
  font-weight: 800;
}

.page-hero h1,
.page-hero h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  color: #f6faff;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.016em;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 60ch;
  color: #d4e5ff;
  font-size: 1rem;
  line-height: 1.55;
}

.filter-panel {
  position: relative;
  margin-top: 22px;
  border: 1px solid rgba(150, 185, 238, 0.6);
  border-radius: 22px;
  background: linear-gradient(138deg, #f9fcff 0%, #edf5ff 45%, #f7fbff 100%);
  box-shadow: 0 18px 36px rgba(11, 35, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 20px;
  overflow: hidden;
}

.filter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 220px at 88% -35%, rgba(36, 94, 174, 0.1), transparent 72%),
    radial-gradient(380px 200px at -12% 108%, rgba(36, 94, 174, 0.08), transparent 75%);
  pointer-events: none;
}

.filter-grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.92fr) minmax(0, 0.7fr) auto;
  grid-template-areas:
    "keyword location beds actions"
    "budget budget budget budget";
  gap: 14px;
  align-items: end;
}

.filter-field-keyword {
  grid-area: keyword;
}

.filter-field-location {
  grid-area: location;
}

.filter-field-beds {
  grid-area: beds;
}

.filter-field {
  display: grid;
  gap: 9px;
}

.filter-field span {
  color: #2f5f9d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.55rem;
  font-weight: 800;
}

.filter-field input,
.filter-field select,
.sort-wrap select {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(130, 169, 227, 0.62);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: var(--navy-940);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.filter-field input::placeholder {
  color: #6d85a9;
}

.filter-field-budget {
  grid-area: budget;
  min-width: 0;
  border: 1px solid rgba(136, 173, 229, 0.6);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(246, 251, 255, 0.98), rgba(231, 241, 255, 0.94));
  padding: 12px 16px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 20px rgba(17, 52, 102, 0.08);
}

.filter-field-budget > span {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.budget-slider-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "range value"
    "scale value";
  align-items: center;
  gap: 8px 16px;
}

#budgetRange {
  --budget-progress: 100%;
  grid-area: range;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

#budgetRange::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4f98 0%, #2f67bc var(--budget-progress), rgba(167, 195, 236, 0.52) var(--budget-progress), rgba(167, 195, 236, 0.52) 100%);
}

#budgetRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(145deg, #2f67bc, #0f356e);
  box-shadow: 0 5px 14px rgba(10, 36, 80, 0.34);
}

#budgetRange::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(167, 195, 236, 0.55);
}

#budgetRange::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4f98 0%, #2f67bc 100%);
}

#budgetRange::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f67bc, #0f356e);
  box-shadow: 0 5px 14px rgba(10, 36, 80, 0.34);
}

.budget-scale {
  grid-area: scale;
  display: flex;
  justify-content: space-between;
  color: #3b6298;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.budget-current {
  grid-area: value;
  align-self: stretch;
  min-width: 156px;
  border: 1px solid rgba(132, 169, 227, 0.58);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  color: #1f4f98;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.54rem;
  font-weight: 800;
}

.budget-current strong {
  color: #0a2f65;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

#budgetRange:hover::-webkit-slider-thumb {
  transform: scale(1.05);
}

#budgetRange:focus-visible {
  outline: none;
}

#budgetRange:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(47, 103, 188, 0.22), 0 5px 14px rgba(10, 36, 80, 0.34);
}

#budgetRange:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(47, 103, 188, 0.22), 0 5px 14px rgba(10, 36, 80, 0.34);
}

.filter-field input:focus,
.filter-field select:focus,
.sort-wrap select:focus {
  outline: none;
  border-color: #2f67bc;
  box-shadow: 0 0 0 3px rgba(47, 103, 188, 0.16);
}

.filter-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(148px, 1fr) auto;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
  padding-top: 21px;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
  height: 52px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.filter-actions .btn-secondary {
  min-width: 88px;
}

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  padding: 10px var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), filter var(--duration-fast) var(--ease-standard);
}

.btn-primary {
  border: 1px solid var(--color-btn-border);
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  box-shadow: var(--shadow-btn-strong);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--color-line);
  background: var(--color-tint);
  box-shadow: var(--shadow-btn-soft);
  color: var(--navy-940);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.03);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-soft);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.listing-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-btn-hover);
}

.results-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.results-meta strong {
  font-size: 1.2rem;
  color: var(--navy-980);
}

.data-status {
  margin-left: 8px;
  color: #3a65a5;
  font-size: 0.86rem;
  min-height: 1.05rem;
}

.data-status.is-loading {
  position: relative;
  padding-left: 18px;
}

.data-status.is-loading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(40, 89, 164, 0.2);
  border-top-color: #2f66bb;
  animation: landmark-spin 0.8s linear infinite;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-wrap span {
  color: #315d9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  font-weight: 800;
}

.sort-wrap select {
  width: 220px;
}

.listing-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.listing-card {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.listing-card::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.28s ease;
  z-index: 2;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-lg);
}

.listing-card:hover::before {
  background: var(--color-gold, #c9a96e);
}

.listing-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.listing-image-link {
  display: block;
  text-decoration: none;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.34s ease;
}

.listing-card:hover .listing-image img {
  transform: scale(1.06);
}

.listing-card:hover .listing-title-link {
  color: #1e4f98;
}

.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #c1d8fe;
  color: #1a4f9f;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 5px 8px;
}

.listing-body {
  padding: var(--space-3);
}

.listing-location {
  color: #2e5ca2;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(0.82rem, 0.98vw, 0.92rem);
  font-weight: 800;
}

.listing-title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  color: var(--navy-980);
  font-size: var(--text-xl);
  line-height: 0.92;
}

.listing-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.listing-title-link:hover {
  color: #1f4f98;
}

.listing-copy {
  margin: var(--space-2) 0 0;
  color: #2c599c;
  font-size: clamp(0.9rem, 0.95vw, 0.98rem);
  line-height: 1.52;
  min-height: 54px;
}

.listing-meta {
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #2c599c;
  font-size: 0.72rem;
  font-weight: 700;
}

.listing-row {
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.listing-price {
  color: #12356d;
  font-size: 1rem;
  font-weight: 800;
}

.listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-tint);
  box-shadow: var(--shadow-btn-soft);
  color: #1a4f9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 10px var(--space-4);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.listing-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  border-color: var(--color-card-hover);
  color: #16478f;
}

.listing-link:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-soft);
}

/* empty-state now in tokens.css — page-specific override if needed */

.load-more-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Footer */
.footer-lux {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid rgba(168, 196, 239, 0.42);
  background: linear-gradient(160deg, rgba(10, 35, 76, 0.88) 0%, rgba(7, 26, 55, 0.9) 56%, rgba(6, 21, 44, 0.92) 100%);
  box-shadow: 0 -8px 22px rgba(6, 21, 44, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.properties-page > section:last-of-type {
  margin-bottom: 26px;
}

.properties-page > .footer-lux {
  margin-top: auto;
}

.footer-lux::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(100deg, #5a8ee0 0%, #2e67bc 30%, rgba(46, 103, 188, 0) 72%);
}

.footer-awards-hang {
  position: absolute;
  right: var(--gutter);
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-award-item {
  height: 165px;
  width: auto;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 8px 14px rgba(2, 7, 20, 0.38));
  opacity: 0.98;
  transition: transform 0.25s ease;
}

.footer-lux[data-award-style="b"] .footer-award-item:nth-child(1) {
  transform: translateY(5px) rotate(-2.2deg);
}

.footer-lux[data-award-style="b"] .footer-award-item:nth-child(2) {
  transform: translateY(0) rotate(0deg);
}

.footer-lux[data-award-style="b"] .footer-award-item:nth-child(3) {
  transform: translateY(6px) rotate(2.2deg);
}

.footer-lux-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 290px 24px var(--gutter);
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: var(--space-6);
}

@media (min-width: 1600px) {
  .listing-grid {
    gap: 20px;
  }

  .filter-panel {
    padding: 24px;
  }
}

.footer-col h3 {
  margin: 0 0 9px;
  color: #b7d1ff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.64rem;
  font-weight: 800;
}

.footer-col p {
  margin: 0 0 10px;
  color: #dce9ff;
  font-size: 0.77rem;
  line-height: 1.56;
}

.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-contact-list li {
  color: #dce9ff;
  font-size: 0.75rem;
  line-height: 1.54;
}

.footer-contact-list a {
  color: #c8dcff;
  text-decoration: none;
}

.footer-contact-list a:hover {
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 214, 250, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f7ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.54rem;
  font-weight: 800;
  padding: 9px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer-social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(3, 10, 25, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(182, 208, 248, 0.24);
  color: #a8c6f7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.54rem;
  font-weight: 700;
  padding: 12px 290px 14px 24px;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px 18px;
  }

  .nav {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    padding: 7px 9px;
  }

  .nav a + a {
    border-left: 0;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .language-switcher {
    min-width: 86px;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "keyword keyword"
      "location beds"
      "budget budget"
      "actions actions";
  }

  .filter-actions {
    grid-template-columns: minmax(0, 1fr) 140px;
    justify-content: stretch;
    align-items: center;
    padding-top: 0;
  }

  .budget-slider-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "range"
      "scale"
      "value";
    gap: 8px;
  }

  .budget-current {
    min-width: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .footer-awards-hang {
    padding: var(--space-3) var(--space-3) 0;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .footer-award-item {
    height: 110px;
    transform: none !important;
  }

}

@media (max-width: 760px) {
  .properties-page {
    padding: 0 12px 0;
  }

  .page-hero,
  .filter-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .page-hero {
    border-radius: 0;
  }

  .page-hero h1,
  .page-hero h2 {
    font-size: clamp(1.5rem, 6vw, 2.3rem);
  }

  .page-hero p {
    font-size: 0.92rem;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "keyword"
      "location"
      "beds"
      "budget"
      "actions";
  }

  .filter-actions {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions .btn-secondary {
    min-width: 0;
  }

  .budget-current {
    min-width: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .results-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-wrap {
    width: 100%;
  }

  .sort-wrap select {
    width: 100%;
  }

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

  .footer-lux-grid {
    grid-template-columns: 1fr;
    padding: var(--space-5) var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .footer-legal {
    padding: var(--space-3);
  }
}

/* ── Mobile Navigation ────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(174, 203, 246, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0a2148;
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    grid-row: 1;
    grid-column: 2;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 0;
    min-height: 0;
    padding: 12px 16px;
    align-items: center;
  }

  .nav,
  .header-actions {
    display: none;
  }

  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    grid-column: 1 / -1;
    padding: 4px 0 10px;
    border-top: 1px solid rgba(174, 203, 246, 0.4);
    margin-top: 6px;
    width: 100%;
  }

  body.nav-open .nav a {
    width: 100%;
    padding: 13px 4px;
    font-size: 0.97rem;
    border-left: 0;
    border-bottom: 1px solid rgba(174, 203, 246, 0.2);
    text-align: left;
  }

  body.nav-open .header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
    width: 100%;
    grid-column: 1 / -1;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ── Neighbourhood Teaser ─────────────────────────────────── */
.neighbourhood-teaser {
  margin-top: 30px;
  margin-bottom: 10px;
}

.neighbourhood-head {
  margin-bottom: 16px;
}

.neighbourhood-head h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  color: var(--color-navy-980);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.neighbourhood-head p {
  margin: 0;
  color: #234f92;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.neighbourhood-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 3 / 4;
  box-shadow: 0 14px 32px rgba(8, 28, 68, 0.18);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.neighbourhood-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 52px rgba(8, 28, 68, 0.3);
}

.neighbourhood-card-bg {
  position: absolute;
  inset: 0;
}

.neighbourhood-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.neighbourhood-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.28s ease;
}

.neighbourhood-card:hover::after {
  opacity: 0.75;
}

.neighbourhood-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.neighbourhood-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.neighbourhood-card-body h3 {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.neighbourhood-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.52;
  max-height: 82px;
  overflow: hidden;
  opacity: 0.92;
  margin-top: 4px;
  transition: max-height 0.32s ease, opacity 0.32s ease, margin 0.32s ease;
}

.neighbourhood-card:hover .neighbourhood-card-body p {
  max-height: 80px;
  opacity: 1;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .neighbourhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .neighbourhood-card-body p {
    max-height: 80px;
    opacity: 1;
    margin-top: 4px;
  }
}

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

  .neighbourhood-card {
    aspect-ratio: 3 / 2;
  }
}

/* ── Mobile Properties Page (≤ 640px) ────────────────────── */
@media (max-width: 640px) {
  /* Hero: strip the long description, keep kicker + title compact */
  .page-hero p {
    display: none;
  }

  .page-hero {
    padding: 16px 14px 18px;
  }

  /* Filter: keep single-column comfort on small phones */
  .filter-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "keyword"
      "location"
      "beds"
      "budget"
      "actions";
    gap: 10px;
  }

  .filter-actions {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .budget-current {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Results row: keep inline */
  .results-meta {
    flex-direction: row;
    align-items: center;
  }

  .sort-wrap {
    width: auto;
    margin-left: auto;
  }

  .sort-wrap select {
    width: auto;
    font-size: 0.72rem;
  }

  /* ── Horizontal property card ── */
  .listing-card {
    grid-template-columns: 130px 1fr;
  }

  .listing-image {
    aspect-ratio: unset;
    height: 100%;
    min-height: 140px;
    border-bottom: none;
    border-right: 1px solid #cfe1ff;
  }

  .listing-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
  }

  .listing-location {
    font-size: 0.68rem;
  }

  .listing-title {
    margin-top: 3px;
    font-size: 1.02rem;
    line-height: 1.15;
  }

  /* Hide long description — not readable in compact card */
  .listing-copy {
    display: none;
  }

  .listing-meta {
    margin-top: 6px;
    font-size: 0.68rem;
  }

  .listing-row {
    margin-top: auto;
    padding-top: 8px;
  }

  .listing-price {
    font-size: 0.94rem;
  }

  .listing-link {
    font-size: 0.6rem;
    padding: 6px 10px;
  }

  /* Skeleton cards: match horizontal layout */
  .skeleton-card {
    grid-template-columns: 130px 1fr;
  }

  .skeleton-image {
    aspect-ratio: unset;
    min-height: 140px;
    border-radius: 0;
  }
}

/* ── Scroll Reveal ────────────────────────────────────────── */
body.js-ready .listing-card {
  transition: opacity 0.54s ease, transform 0.54s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

body.js-ready .listing-card:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

body.js-ready .listing-card.is-visible:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  body.js-ready .listing-card:not(.is-visible) {
    opacity: 0;
    transform: none;
  }

  body.js-ready .listing-card {
    transition: opacity 0.3s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  }
}

/* ── Skeleton Loaders ─────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.listing-card.skeleton-card {
  pointer-events: none;
  border-color: var(--line);
  box-shadow: none;
}

.skeleton-pulse {
  background: linear-gradient(
    90deg,
    var(--surface-2, #f0f0f0) 25%,
    var(--surface-3, #e4e4e4) 50%,
    var(--surface-2, #f0f0f0) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-image {
  height: 220px;
  border-radius: 0;
}

.skeleton-body {
  padding: 1.2rem 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-line {
  height: 0.9em;
  border-radius: 4px;
}

.skeleton-line--xs  { width: 38%; }
.skeleton-line--sm  { width: 55%; }
.skeleton-line--md  { width: 78%; }
.skeleton-line--lg  { width: 92%; }
.skeleton-line--full{ width: 100%; }


/* ── Fade transition on live-refresh ─────────────────────── */
.listing-grid--refreshing .listing-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.listing-grid--loading {
  opacity: 0.7;
  transition: opacity 0.16s ease;
}



/* =============================================================
   WHITE + NAVY + GOLD ACCENT OVERHAUL — v18 (properties page)
   ============================================================= */

body {
  background: #FFFFFF;
  color: var(--color-navy-940);
}

.topbar-wrap {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(10, 30, 60, 0.08);
}

.nav a {
  color: var(--color-navy-940);
  font-weight: 600;
}

.nav a:hover,
.nav a.is-active {
  color: #C9A84C;
}

.header-cta {
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  border-color: var(--color-btn-border);
  color: #ffffff;
}

/* ── Page hero — deep navy ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(120deg, #0D2238 0%, #12304D 52%, #1A446D 100%);
  border-top: 0;
  border-bottom: 0;
  box-shadow: 0 8px 30px rgba(13, 34, 56, 0.22);
}

.hero-kicker,
.page-hero .hero-kicker {
  color: #C9A84C;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.65rem;
}

.page-hero h1,
.page-hero h2 {
  color: #FFFFFF;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 500;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Filter panel — white card ──────────────────────────────── */
.filter-panel {
  background: #FFFFFF;
  border: 1px solid rgba(10, 30, 60, 0.10);
  box-shadow: 0 4px 18px rgba(13, 34, 56, 0.07);
}

.filter-panel::before {
  background: none;
}

.filter-label {
  color: var(--color-navy-940);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Slider — gold thumb */
#budgetRange::-webkit-slider-thumb {
  background: #C9A84C;
  border-color: #B8973E;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}

#budgetRange::-moz-range-thumb {
  background: #C9A84C;
  border-color: #B8973E;
}

#budgetRange::-moz-range-progress {
  background: #C9A84C;
}

/* Filter CTA button */
.btn-primary {
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  box-shadow: 0 8px 22px rgba(13, 34, 56, 0.22);
  border-color: var(--color-btn-border);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(145deg, #255681, #1A4870);
  filter: none;
}

/* ── Listing cards ──────────────────────────────────────────── */
.listing-card {
  background: #FFFFFF;
  border: 1px solid rgba(10, 30, 60, 0.09);
  box-shadow: 0 2px 8px rgba(13, 34, 56, 0.05);
}

.listing-card::before {
  background: linear-gradient(90deg, #C9A84C, rgba(201, 168, 76, 0));
}

.listing-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 12px 36px rgba(13, 34, 56, 0.10);
}

.listing-location {
  color: #4A6380;
}

.listing-title {
  color: var(--color-navy-940);
  font-weight: 700;
}

.listing-title-link {
  color: var(--color-navy-940);
}

.listing-title-link:hover {
  color: #C9A84C;
}

.listing-price {
  color: var(--color-navy-940);
}

.listing-link {
  background: linear-gradient(145deg, var(--color-btn-from), var(--color-btn-to));
  color: #FFFFFF;
  border-color: var(--color-btn-border);
}

.listing-link:hover {
  background: linear-gradient(145deg, #255681, #1A4870);
  box-shadow: 0 10px 24px rgba(13, 34, 56, 0.24);
}

/* ── Footer — deep navy ─────────────────────────────────────── */
.footer-lux {
  background: linear-gradient(160deg, #0D2238 0%, #12304D 60%, #183C61 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-lux::before {
  background: linear-gradient(100deg, #C9A84C 0%, rgba(201, 168, 76, 0.35) 38%, rgba(201, 168, 76, 0) 65%);
  height: 1px;
}

.footer-col h3 {
  color: #C9A84C;
  font-family: "Manrope", sans-serif;
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-col a,
.footer-col p,
.footer-col address {
  color: rgba(255, 255, 255, 0.60);
}

.footer-col a:hover {
  color: #C9A84C;
}

/* =============================================================
   HEADER SCALE REFINEMENT — v19
   ============================================================= */
.topbar {
  min-height: 102px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-logo {
  height: clamp(64px, 3.6vw, 74px);
  max-width: min(360px, 30vw);
}

.nav a {
  font-size: clamp(0.92rem, 0.68vw, 1rem);
  font-weight: 650;
  padding: 0 17px;
}

.header-cta {
  font-size: 0.8rem;
  padding: 13px 20px;
}

.language-switcher {
  height: 46px;
  min-width: 82px;
  padding: 0 34px 0 14px;
}

.language-switcher-code {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1320px) {
  .topbar {
    min-height: 0;
    padding: 12px 18px;
  }

  .brand-logo {
    height: 60px;
    max-width: min(320px, 48vw);
  }

  .nav a {
    font-size: 0.88rem;
    padding: 7px 11px;
  }

  .header-cta {
    font-size: 0.74rem;
    padding: 11px 16px;
  }

  .language-switcher {
    height: 42px;
    min-width: 78px;
  }

  .language-switcher-code {
    font-size: 0.73rem;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    height: 52px;
    max-width: min(280px, 62vw);
  }
}
