:root {
  --ink: #152721;
  --muted: #65736e;
  --brand: #0b7a5c;
  --brand-dark: #075741;
  --mint: #e6f4ef;
  --lime: #d8f36c;
  --cream: #f6f4ef;
  --white: #fff;
  --line: #e4e8e6;
  --danger: #ed5e56;
  --shadow: 0 22px 60px rgba(14, 42, 33, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

.lucide {
  height: auto;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 1001;
  height: 76px;
  border-bottom: 1px solid rgba(227, 232, 229, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
}

.topbar.sticky {
  position: sticky;
  top: 0;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-logo {
  width: 154px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px 11px 17px 17px;
  color: var(--white);
  background: var(--brand);
  transform: rotate(3deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 22px;
  right: 4px;
  bottom: -8px;
  border-radius: 50%;
  background: var(--lime);
}

.brand-mark .lucide {
  width: 17px;
  position: relative;
  z-index: 1;
  transform: rotate(-3deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  background: white;
}

.language-picker .lucide {
  width: 17px;
}

.language-picker select {
  width: 38px;
  padding: 0;
  outline: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 9px 22px rgba(11, 122, 92, 0.2);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: var(--line);
  background: var(--white);
}

.btn-dark {
  color: white;
  background: var(--ink);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.icon-btn .lucide,
.btn .lucide {
  width: 19px;
  height: 19px;
}

.menu-btn {
  display: none;
}

/* Home */
.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 35, 29, 0.82) 0%, rgba(8, 35, 29, 0.4) 48%, rgba(8, 35, 29, 0.12) 100%),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2000&q=85") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 23, 17, 0.32), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 0 110px;
}

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

.eyebrow::before {
  content: "";
  width: 27px;
  height: 2px;
  background: var(--lime);
}

.hero h1 {
  max-width: 750px;
  margin: 0 0 17px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -4px;
}

.hero-copy {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.6;
}

.search-panel {
  position: relative;
  z-index: 5;
  width: min(1080px, calc(100% - 48px));
  margin: -79px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.search-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 17px;
}

.search-tab {
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.search-tab.active {
  color: var(--brand-dark);
  background: var(--mint);
}

.search-main {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr auto;
  gap: 10px;
}

.field {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.field .lucide {
  width: 19px;
  color: var(--brand);
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  outline: none;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.search-main .btn {
  min-width: 140px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 12px;
}

.chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #51615c;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.chip.active,
.chip:hover {
  color: var(--brand-dark);
  border-color: #9bcbbb;
  background: var(--mint);
}

.chip .lucide {
  width: 15px;
}

.section {
  padding: 105px 0;
}

.section-soft {
  background: var(--cream);
}

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

.section-kicker {
  margin-bottom: 9px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.section-subtitle {
  max-width: 560px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 700;
}

.text-link .lucide {
  width: 17px;
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(22, 43, 36, 0.1);
}

.card-media {
  height: 235px;
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-media img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
}

.heart {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.heart .lucide {
  width: 18px;
}

.heart.saved {
  color: #e54f51;
}

.heart.saved svg {
  fill: currentColor;
}

.card-body {
  padding: 19px;
}

.card-type {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-price {
  margin: 8px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.card-title {
  margin: 0 0 13px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta .lucide {
  width: 16px;
}

.area-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 16px;
}

.area-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  color: white;
  cursor: pointer;
}

.area-card:first-child {
  grid-row: span 2;
}

.area-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.area-card:hover img {
  transform: scale(1.05);
}

.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 28, 22, 0.78), transparent 62%);
}

.area-label {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 20px;
}

.area-label h3 {
  margin: 0 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.area-label span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 14px;
  color: var(--brand);
  background: var(--mint);
  border: 1px solid rgba(11, 122, 92, 0.08);
}

.trust-icon .lucide {
  width: 21px;
  stroke-width: 2.1;
}

.trust-item > div strong,
.trust-item > div span {
  display: block;
}

.trust-item > div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* Search results */
.filter-bar {
  position: relative;
  z-index: 900;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: white;
  box-shadow: 0 4px 16px rgba(18, 44, 35, 0.035);
}

.filter-row {
  display: grid;
  grid-template-columns: 88px minmax(210px, 1fr) 140px 120px 105px 92px 126px;
  gap: 6px;
}

.compact-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-field:focus-within {
  border-color: rgba(11, 122, 92, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 122, 92, 0.08);
}

.compact-field input,
.compact-field select {
  width: 100%;
  min-width: 0;
  outline: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.compact-field .lucide {
  width: 16px;
  color: var(--brand);
}

.filter-row > .btn {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
}

.desktop-view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9f8;
}

.view-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.view-option .lucide {
  width: 16px;
}

.view-option.active {
  color: var(--brand-dark);
  background: var(--mint);
  box-shadow: 0 2px 7px rgba(14, 42, 33, 0.07);
}

.results-layout {
  height: calc(100vh - 149px);
  display: grid;
  grid-template-columns: minmax(410px, 40%) 1fr;
}

.results-layout.list-only {
  grid-template-columns: 1fr;
}

.results-layout.list-only .map-wrap {
  display: none;
}

.results-layout.list-only .results-list {
  padding-right: max(25px, calc((100vw - 1180px) / 2));
  padding-left: max(25px, calc((100vw - 1180px) / 2));
}

.results-layout.list-only .result-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-list {
  overflow-y: auto;
  padding: 25px;
  background: #fafbf9;
}

.results-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.back-link .lucide {
  width: 16px;
}

.results-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.6px;
}

.results-count {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

.result-cards .property-card {
  border-radius: 15px;
}

.result-cards .property-card.map-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(11, 122, 92, 0.13), 0 14px 34px rgba(14, 42, 33, 0.12);
}

.result-cards .card-media {
  height: 150px;
}

.result-cards .card-body {
  padding: 14px;
}

.result-cards .card-price {
  font-size: 18px;
}

.result-cards .card-meta {
  gap: 10px;
}

.map-wrap {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--line);
}

#map {
  width: 100%;
  height: 100%;
  background: #e8eee9;
}

.leaflet-container img {
  max-width: none !important;
}

.map-float {
  position: absolute;
  z-index: 500;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.map-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: white;
  box-shadow: 0 5px 18px rgba(17, 40, 33, 0.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.map-pill .lucide {
  width: 17px;
}

.price-marker {
  padding: 7px 10px;
  border: 2px solid white;
  border-radius: 9px;
  color: white;
  background: var(--brand);
  box-shadow: 0 4px 14px rgba(8, 48, 37, 0.3);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.price-marker.active {
  color: var(--ink);
  background: var(--lime);
  transform: scale(1.1);
}

.leaflet-div-icon {
  border: 0 !important;
  background: transparent !important;
}

.view-switch {
  display: none;
}

/* Detail */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 21px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .lucide {
  width: 13px;
  flex-shrink: 0;
}

.gallery {
  height: 540px;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 9px;
  overflow: hidden;
  border-radius: 22px;
}

.gallery-main,
.gallery-side > div {
  position: relative;
  overflow: hidden;
}

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.gallery-count .lucide {
  width: 16px;
}

.verified {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--brand-dark);
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.verified .lucide {
  width: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 55px;
  padding: 35px 0 90px;
}

.detail-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-title {
  margin: 14px 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1.3px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.detail-location .lucide {
  width: 17px;
  color: var(--brand);
}

.detail-price {
  margin: 25px 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1px;
}

.detail-price small {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 36px;
}

.fact {
  min-width: 125px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.fact .lucide {
  width: 18px;
  margin-bottom: 8px;
  color: var(--brand);
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-size: 14px;
}

.fact span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.detail-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 17px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #52615c;
  line-height: 1.75;
}

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

.amenity {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.amenity .lucide {
  width: 18px;
  color: var(--brand);
}

.detail-map {
  height: 290px;
  overflow: hidden;
  border-radius: 18px;
}

.agent-card {
  position: sticky;
  top: 101px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 46px rgba(12, 43, 33, 0.09);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.agent-photo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.agent-head strong,
.agent-head span {
  display: block;
}

.agent-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: #d28a12;
  font-size: 11px;
  font-weight: 700;
}

.agent-rating .lucide {
  width: 13px;
  fill: currentColor;
}

.agent-card h3 {
  margin: 20px 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.agent-card > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-field {
  width: 100%;
  height: 48px;
  margin-bottom: 9px;
  padding: 0 13px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.agent-card .btn {
  width: 100%;
  margin-top: 3px;
}

.contact-alts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

/* Modal and utility */
.modal-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 26, 21, 0.52);
  backdrop-filter: blur(5px);
}

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

.modal {
  position: static;
  display: block;
  width: min(540px, 100%);
  height: auto;
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
  padding: 27px;
  border: 0;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  outline: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.modal-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

.choice.selected {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--mint);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.range-row input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.clear-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.toast {
  position: fixed;
  z-index: 3000;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.3s ease;
  font-size: 13px;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .lucide {
  width: 18px;
  color: var(--lime);
}

.footer {
  padding: 55px 0 25px;
  color: rgba(255, 255, 255, 0.78);
  background: #102720;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 55px;
  padding-bottom: 40px;
}

.footer .brand {
  color: white;
}

.footer-intro {
  max-width: 330px;
  margin-top: 18px;
  line-height: 1.6;
}

.footer h4 {
  margin: 5px 0 17px;
  color: white;
}

.footer-links {
  display: grid;
  gap: 11px;
  font-size: 13px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 17px;
  }

  .nav-links a:nth-child(3),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .filter-row {
    grid-template-columns: 110px 1fr 140px auto 146px;
  }

  .filter-row .compact-field:nth-child(4),
  .filter-row .compact-field:nth-child(5) {
    display: none;
  }

  .results-layout {
    grid-template-columns: 43% 57%;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

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

  .property-grid .property-card:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .topbar {
    height: 66px;
  }

  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-btn {
    display: grid;
  }

  .hero {
    min-height: 590px;
    align-items: flex-start;
    background-position: 64% center;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -2.5px;
  }

  .hero-copy {
    max-width: 390px;
    font-size: 16px;
  }

  .search-panel {
    width: calc(100% - 30px);
    margin-top: -125px;
    padding: 16px;
  }

  .search-tabs {
    overflow-x: auto;
  }

  .search-tab {
    flex: 1;
    padding: 9px 12px;
    white-space: nowrap;
  }

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

  .search-main .field:first-child {
    grid-column: span 2;
  }

  .search-main .btn {
    grid-column: span 2;
  }

  .quick-filters {
    display: none;
  }

  .section {
    padding: 75px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .property-grid .property-card:last-child {
    display: block;
  }

  .area-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .area-card {
    min-width: 82%;
    height: 330px;
    scroll-snap-align: start;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row {
    display: flex;
  }

  .filter-row > * {
    display: none !important;
  }

  .filter-row .compact-field:nth-child(2),
  .filter-row .btn {
    display: flex !important;
  }

  .filter-row .compact-field:nth-child(2) {
    flex: 1;
  }

  .results-layout {
    height: calc(100vh - 132px);
    display: block;
  }

  .results-layout.list-only .result-cards {
    grid-template-columns: 1fr;
  }

  .results-list,
  .map-wrap {
    height: 100%;
  }

  .results-layout.show-map .results-list,
  .results-layout:not(.show-map) .map-wrap {
    display: none;
  }

  .results-list {
    padding: 18px 15px 95px;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

  .result-cards .property-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .result-cards .card-media {
    height: 100%;
    min-height: 175px;
  }

  .view-switch {
    position: fixed;
    z-index: 800;
    bottom: 22px;
    left: 50%;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 99px;
    color: white;
    background: var(--ink);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
    font-weight: 700;
  }

  .view-switch .lucide {
    width: 18px;
  }

  .gallery {
    width: calc(100% + 30px);
    height: 390px;
    grid-template-columns: 1fr;
    margin-left: -15px;
    border-radius: 0;
  }

  .gallery-side {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 25px;
  }

  .detail-title {
    font-size: 26px;
  }

  .agent-card {
    position: relative;
    top: 0;
  }

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

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

  .footer-main > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .nav-actions .btn-primary {
    display: none;
  }

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

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

  .search-main .field:first-child,
  .search-main .btn {
    grid-column: auto;
  }

  .search-main .field:nth-child(3) {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .result-cards .property-card {
    grid-template-columns: 40% 1fr;
  }

  .result-cards .card-meta {
    flex-wrap: wrap;
  }

  .facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    min-width: 0;
  }

  .footer-main {
    gap: 35px 25px;
  }

  .footer-bottom {
    gap: 8px;
    flex-direction: column;
  }
}
