:root {
  --white: #ffffff;
  --navy-980: #041026;
  --navy-940: #0a2148;
  --navy-900: #12356d;
  --navy-860: #1f4f98;
  --navy-820: #2f67bc;
  --line: #c6dafb;
  --surface: #f7faff;
  --surface-shadow: 0 16px 38px rgba(10, 37, 82, 0.1);
  --premium-btn-shadow-soft: 0 10px 22px rgba(8, 34, 73, 0.14);
  --premium-btn-shadow-strong: 0 12px 26px rgba(7, 29, 63, 0.24);
  --premium-btn-shadow-hover: 0 18px 34px rgba(7, 29, 63, 0.3);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

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

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 24px;
  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: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  font-weight: 700;
  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: uppercase;
  letter-spacing: 0.07em;
  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 24px 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(4, 20, 50, 0.9) 0%, rgba(7, 28, 66, 0.82) 52%, rgba(11, 36, 81, 0.76) 100%);
  box-shadow: 0 20px 42px rgba(5, 22, 52, 0.24);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: 34px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

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

.page-hero h1 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  color: #f6faff;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: -0.012em;
}

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

.filter-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(176deg, #ffffff, #f5f9ff);
  box-shadow: var(--surface-shadow);
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.72fr) auto auto;
  grid-template-areas:
    "keyword location beds actions actions"
    "budget budget budget budget budget";
  gap: 12px;
  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: 8px;
}

.filter-field span {
  color: #355f9f;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.56rem;
  font-weight: 800;
}

.filter-field input,
.filter-field select,
.sort-wrap select {
  width: 100%;
  height: 48px;
  border: 1px solid #bcd2f8;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-940);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0 12px;
}

.filter-field-budget {
  grid-area: budget;
  min-width: 0;
  border: 1px solid #c9dcfb;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(247, 251, 255, 0.98), rgba(236, 245, 255, 0.94));
  padding: 9px 14px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 6px 14px rgba(17, 52, 102, 0.06);
}

.filter-field-budget > span {
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.budget-slider-wrap {
  display: grid;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  gap: 8px;
}

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

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

#budgetRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  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: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(167, 195, 236, 0.55);
}

#budgetRange::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #1f4f98;
}

#budgetRange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  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 {
  display: flex;
  justify-content: space-between;
  color: #3f6398;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.budget-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #1f4f98;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6rem;
  font-weight: 800;
}

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

#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: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  height: 48px;
  border-radius: 10px;
  padding: 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-primary {
  border: 1px solid #2f64b2;
  background: linear-gradient(145deg, #2e66bb, #174283);
  box-shadow: var(--premium-btn-shadow-strong);
  color: #fff;
}

.btn-secondary {
  border: 1px solid #bad1f8;
  background: #f5f9ff;
  box-shadow: var(--premium-btn-shadow-soft);
  color: var(--navy-940);
}

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

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

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.listing-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 103, 188, 0.2), var(--premium-btn-shadow-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;
}

.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 {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--surface-shadow);
  overflow: hidden;
  display: grid;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: #a7c7f6;
  box-shadow: 0 22px 42px rgba(8, 34, 73, 0.16);
}

.listing-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid #cfe1ff;
}

.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.03);
}

.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: 14px;
}

.listing-location {
  color: #2e5ca2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
  font-weight: 800;
}

.listing-title {
  margin: 7px 0 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-980);
  font-size: 2rem;
  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: 9px 0 0;
  color: #2c599c;
  font-size: 0.86rem;
  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: 0.9rem;
  font-weight: 800;
}

.listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #bfd5fa;
  border-radius: 999px;
  background: #f6f9ff;
  box-shadow: var(--premium-btn-shadow-soft);
  color: #1a4f9f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 8px 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.listing-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--premium-btn-shadow-hover);
  border-color: #9fc1f5;
  color: #16478f;
}

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

.empty-state {
  margin-top: 18px;
  border: 1px dashed #b9d1fb;
  border-radius: 14px;
  background: #f5f9ff;
  color: #1f4f99;
  text-align: center;
  padding: 18px;
  font-weight: 700;
}

.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: 24px;
  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 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 24px;
}

.footer-col h4 {
  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: grid;
  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 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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 location"
      "beds actions"
      "budget budget";
  }

  .filter-actions {
    justify-content: flex-start;
  }

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

  .footer-awards-hang {
    position: static;
    padding: 12px 14px 6px;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }

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

  .footer-lux-grid {
    grid-template-columns: 1fr;
    padding: 20px 14px 16px;
    gap: 14px;
  }

  .footer-legal {
    padding: 10px 14px 12px;
  }
}

@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 p {
    font-size: 0.92rem;
  }

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

  .budget-slider-wrap {
    max-width: none;
  }

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

  .sort-wrap {
    width: 100%;
  }

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

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