:root {
  --blue: #253d7a;
  --blue-dark: #17295f;
  --blue-soft: #eaf0ff;
  --red: #d5103d;
  --red-dark: #a9072d;
  --ink: #17213a;
  --muted: #667085;
  --line: #e5e9f2;
  --light: #f6f8fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 58, 0.14);
  --shadow-soft: 0 10px 30px rgba(23, 33, 58, 0.08);
  --radius: 22px;
  --header-height: 76px;
  --container: 1180px;
  --hero-bg: url("../background_images/image1.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 233, 242, 0.9);
  box-shadow: 0 4px 20px rgba(23, 33, 58, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: linear-gradient(135deg, rgba(213, 16, 61, 0.12), rgba(37, 61, 122, 0.1));
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.logo-copy {
  display: grid;
  line-height: 1.12;
}

.logo-copy strong {
  color: var(--blue-dark);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.logo-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #1e2433;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

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

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

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

.pay-rent-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 61, 122, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pay-rent-btn svg,
.btn svg {
  width: 18px;
  height: 18px;
}

.pay-rent-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  box-shadow: 0 16px 32px rgba(37, 61, 122, 0.3);
}

.btn-red {
  background: var(--red);
  box-shadow: 0 12px 28px rgba(213, 16, 61, 0.24);
}

.btn-red:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 32px rgba(213, 16, 61, 0.28);
}

.btn-outline {
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(37, 61, 122, 0.18);
  box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #17295f;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
          linear-gradient(90deg, rgba(13, 26, 61, 0.86), rgba(13, 26, 61, 0.58), rgba(13, 26, 61, 0.22)),
          linear-gradient(180deg, rgba(13, 26, 61, 0.12), rgba(13, 26, 61, 0.28));
  pointer-events: none;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 96px 0;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  border-radius: 999px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.hero-highlight {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.hero-highlight strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-highlight span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-muted {
  background: var(--light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.feature-copy h2,
.content-card h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-header p,
.feature-copy p,
.content-card p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.info-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.info-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-soft);
}

.info-icon svg {
  width: 26px;
  height: 26px;
}

.info-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.feature-media {
  position: relative;
  min-height: 440px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 440px;
  opacity: 0.86;
}

.feature-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.feature-badge strong {
  display: block;
  color: var(--red);
  font-size: 1.45rem;
  line-height: 1;
}

.feature-badge span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.34);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 310px;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(13, 26, 61, 0.88), rgba(13, 26, 61, 0.5)), var(--page-hero-image, url('../background_images/image2.png'));
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.13rem;
  font-weight: 650;
}

.availability-shell {
  display: grid;
  grid-template-columns: minmax(360px, 42vw) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
  background: var(--light);
}

.map-column {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  background: #dfe9f5;
  border-right: 1px solid var(--line);
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.map-loading,
.map-empty,
.fallback-map {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--blue-dark);
  background: radial-gradient(circle at 20% 20%, rgba(37, 61, 122, 0.14), transparent 34%), radial-gradient(circle at 80% 76%, rgba(213, 16, 61, 0.12), transparent 32%), linear-gradient(135deg, #eef5ff, #dbe9f5);
}

.map-empty-card {
  width: min(380px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.fallback-map {
  position: relative;
  overflow: hidden;
  place-items: stretch;
}

.fallback-map::before,
.fallback-map::after {
  content: "";
  position: absolute;
  inset: 18% -10% auto -10%;
  height: 8px;
  background: rgba(37, 61, 122, 0.14);
  transform: rotate(-16deg);
}

.fallback-map::after {
  inset: auto -10% 24% -10%;
  transform: rotate(17deg);
}

.fallback-map-note {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.fallback-pin {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 18px rgba(213, 16, 61, 0.35);
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 0.78rem;
  font-weight: 900;
}

.fallback-pin span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}

.fallback-popover {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: none;
  text-align: left;
}

.fallback-popover.visible {
  display: block;
}

.map-popup,
.fallback-card {
  width: 280px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.fallback-card {
  width: 100%;
}

.map-popup img,
.fallback-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #dbe1ec;
}

.map-popup-body,
.fallback-card-body {
  padding: 14px;
}

.map-popup-body h3,
.fallback-card-body h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.24;
}

.map-popup-price,
.fallback-card-price {
  margin: 8px 0 6px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}

.map-popup-price span,
.fallback-card-price span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.map-popup-stats,
.fallback-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-popup-status,
.fallback-card-status {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.results-column {
  min-width: 0;
  padding: 24px;
}

.results-topbar {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  display: grid;
  gap: 16px;
  margin: -24px -24px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(12px);
}

.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.results-summary h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.results-count {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 170px)) auto;
  gap: 10px;
}

.field-control {
  position: relative;
}

.field-control input,
.field-control select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  box-shadow: 0 8px 18px rgba(23, 33, 58, 0.04);
}

.field-control input:focus,
.field-control select:focus {
  border-color: rgba(37, 61, 122, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 61, 122, 0.1);
}

.clear-filters {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: var(--white);
  background: #5d6678;
  font-weight: 850;
}

.clear-filters:hover {
  background: var(--blue-dark);
}

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

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-card:hover,
.listing-card:focus-within,
.listing-card.active {
  transform: translateY(-2px);
  border-color: rgba(37, 61, 122, 0.22);
  box-shadow: var(--shadow);
}

.listing-gallery {
  position: relative;
  height: 236px;
  overflow: hidden;
  background: #dbe1ec;
}

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

.listing-gallery::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 33, 58, 0.72);
  transform: translateY(-50%);
  transition: background 0.18s ease;
}

.gallery-nav:hover {
  background: var(--red);
}

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

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

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 33, 58, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.listing-body {
  padding: 20px;
}

.listing-price {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.9rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.listing-price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.listing-body h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.24rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 16px;
}

.stat-pill {
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 15px;
  background: var(--light);
  text-align: center;
}

.stat-pill strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.1;
}

.stat-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(213, 16, 61, 0.08);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.availability-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.listing-actions button,
.listing-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background: #5d6678;
  font-weight: 900;
}

.listing-actions a {
  background: var(--blue);
}

.listing-actions button:hover,
.listing-actions a:hover {
  background: var(--red);
}

.state-panel {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed rgba(37, 61, 122, 0.28);
  border-radius: 24px;
  background: var(--white);
  text-align: center;
}

.state-panel h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 17, 36, 0.66);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 5;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 33, 58, 0.8);
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--red);
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 0;
  clear: both;
}

.modal-gallery {
  background: #111827;
}

.modal-main-image-wrap {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111827;
}

.modal-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 33, 58, 0.75);
  transform: translateY(-50%);
}

.modal-gallery-nav:hover {
  background: var(--red);
}

.modal-gallery-nav.prev {
  left: 16px;
}

.modal-gallery-nav.next {
  right: 16px;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  background: #111827;
}

.modal-thumb {
  height: 70px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  opacity: 0.7;
}

.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--red);
  opacity: 1;
}

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

.modal-details {
  padding: 34px;
}

.modal-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.modal-price {
  color: var(--blue);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.modal-price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-details h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.modal-address {
  color: var(--muted);
  font-weight: 800;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.detail-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.85rem;
  font-weight: 850;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.content-page {
  padding: 74px 0;
  background: var(--light);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  gap: 24px;
  align-items: start;
}

.content-card,
.side-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin-bottom: 16px;
}

.content-card h3,
.side-card h3 {
  margin: 26px 0 10px;
  color: var(--blue-dark);
}

.content-card h3:first-child,
.side-card h3:first-child {
  margin-top: 0;
}

.content-card p,
.side-card p {
  color: var(--muted);
}

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

.contact-list a,
.contact-list span {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--red);
}

@media (max-width: 1120px) {
  .availability-shell {
    grid-template-columns: minmax(320px, 40vw) minmax(0, 1fr);
  }

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

  .filter-bar {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(120px, 1fr));
  }

  .filter-bar .clear-filters {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .primary-nav a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a:hover,
  .primary-nav a.active {
    background: var(--blue-soft);
  }

  .pay-rent-btn span {
    display: none;
  }

  .hero-highlights,
  .card-grid,
  .feature-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .availability-shell {
    display: block;
  }

  .map-column {
    position: relative;
    top: auto;
    height: 420px;
  }

  .results-topbar {
    top: var(--header-height);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-main-image-wrap {
    height: 410px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-copy strong {
    font-size: 0.92rem;
  }

  .logo-copy small {
    font-size: 0.62rem;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.055em;
  }

  .section {
    padding: 62px 0;
  }

  .section-header,
  .results-summary,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .results-column {
    padding: 16px;
  }

  .results-topbar {
    margin: -16px -16px 18px;
    padding: 16px;
  }

  .listing-gallery {
    height: 215px;
  }

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

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

  .modal-backdrop {
    padding: 12px;
  }

  .modal-panel {
    border-radius: 20px;
  }

  .modal-details {
    padding: 22px;
  }

  .modal-main-image-wrap {
    height: 300px;
  }

  .modal-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .header-inner {
    gap: 10px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
