:root {
  --green: #6b8e63;
  --green-dark: #4f6f4a;
  --orange: #e07a3e;
  --text-dark: #23291f;
  --gray-bg: #f2f2f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  /* Safety net: some third-party widgets (Google Maps' own internal
     controls in particular) render slightly outside their container even
     though the container's own box has zero visible overflow — clip at the
     page level rather than risk breaking those components' own intentional
     overflow:visible (e.g. the map's floating Layers panel). */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

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

.container {
  max-width: 1478px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-signin {
  background: var(--orange);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Header */
.site-header {
  background: var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

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

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  background: var(--green);
  padding-bottom: 60px;
}

/* Header and hero rows share this narrower content width (rather than the
   wide 1478px .container) so the nav+button group and the hero image align
   to the same right edge, with a natural, non-stretched gap on each row. */
.header-inner,
.hero-inner {
  max-width: 1100px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
}

.hero-content {
  color: #fff;
  max-width: 540px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
}

/* Search page (Map Search) */
.search-hero { padding-bottom: 0; }

.search-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  column-gap: 40px;
  align-items: start;
  padding-top: 40px;
}

.search-hero-content { max-width: none; grid-column: 1; grid-row: 1; }

.search-hero-inner .search-live-root { display: contents; }

.search-hero-inner .search-card { grid-column: 2; grid-row: 1; }

.search-card .adv-filters { left: auto; right: 0; }

.search-hero-inner .property-results {
  grid-column: 1 / -1;
  grid-row: 2;
  /* The base rule's margin: 0 auto would make this grid item shrink to its
     content — e.g. a narrow box when a search returns nothing. */
  width: 100%;
  margin: 0;
  background: #fff;
  padding: 25px 25px 70px;
}

/* Map pages (For Sale, For Rent, Map Discovery): the map spans the full
   width at 75% of the screen height; with Radius Search on it narrows to
   75% and the radius panel docks beside it at the same height. The title
   row and a 3-per-row listing grid sit below. */
.search-map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.search-map-stage.has-radius {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.search-map-col {
  min-width: 0;
}

.search-map-col .property-map {
  height: 75vh;
  min-height: 420px;
  margin-top: 0;
}

.search-map-col .property-map-canvas {
  height: 100%;
}

.search-radius-side {
  min-width: 0;
  height: 75vh;
  min-height: 420px;
  overflow-y: auto;
}

.search-radius-side .gis-radius-panel--docked {
  margin-bottom: 0;
  min-height: 100%;
}

.search-map-layout .search-list-header {
  margin-bottom: 24px;
}

.search-map-layout .search-breadcrumb {
  padding: 0;
  margin-bottom: 8px;
}

.search-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.search-list-title-row .search-list-title {
  margin-bottom: 0;
}

.map-visibility-toggle {
  flex-shrink: 0;
  border: 1px solid #cfd8cf;
  background: #fff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.map-visibility-toggle:hover {
  background: #f4f7f4;
  border-color: var(--green);
  color: var(--green);
}

.radius-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #eef5ee;
  border: 1px solid #c5d8c5;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.radius-filter-clear {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-hero-inner--map.container {
  max-width: 1480px;
}

.search-results-list {
  max-width: 100%;
}

.property-results-list .search-list-header {
  margin-bottom: 28px;
}

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

.property-card-bubble {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.property-card-bubble .property-card-image {
  height: 250px;
}

.property-card-bubble .property-card-body {
  padding: 20px 22px 24px;
}

.property-card-bubble .property-card-body h3 {
  font-size: 1.12rem;
  line-height: 1.35;
}

.property-card-bubble .property-card-price {
  font-size: 1.2rem;
}

.search-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 16px;
}

.search-breadcrumb a { color: #777; }
.search-breadcrumb span:last-child { color: var(--text-dark); font-weight: 600; }

.search-list-header { margin-bottom: 20px; }

.search-list-title {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.favorites-intro {
  margin: -4px 0 12px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.search-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-by { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-dark); }

.sort-by select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-dark);
}

.property-row-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 14px;
  margin-bottom: 20px;
  transition: transform 0.15s ease;
}

.property-row-card:hover { transform: translateY(-2px); }

.property-row-image {
  position: relative;
  flex: 0 0 220px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-bg);
}

.property-row-image img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
}

.badge-featured { background: var(--green); }

.badge-hot { top: auto; bottom: 10px; background: var(--orange); }

.property-row-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.favorite-btn-icon,
.compare-btn-icon {
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn-icon.active { color: var(--orange); }
.compare-btn-icon.active { color: var(--orange); background: #fff; }

.property-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 4px 4px 0;
}

.property-row-body h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.property-row-meta {
  display: flex;
  gap: 24px;
  margin-bottom: auto;
  padding-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.meta-icon { color: var(--green); flex-shrink: 0; }
.meta-item small { font-size: 0.7rem; font-weight: 500; color: #777; }

.property-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.property-row-status { font-size: 0.85rem; color: #666; font-weight: 600; }

.property-row-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}

.search-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 20px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 25px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
}

.tab.active {
  background: var(--gray-bg);
  color: var(--text-dark);
  font-weight: 600;
}

.search-bar {
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.9rem;
  background: var(--gray-bg);
  font-family: inherit;
}

.search-bar button {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  border: none;
  background: var(--text-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.search-bar .search-filters-btn {
  background: var(--gray-bg, #f3f3f3);
  color: var(--text-dark);
  border: 1px solid #ddd;
  padding: 12px 14px;
}

/* Advanced filters panel */
.adv-filters {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 480px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  padding: 24px 24px 20px;
  z-index: 40;
  color: var(--text-dark);
}

.adv-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.adv-close:hover { color: var(--text-dark); }

.filters-row {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

.filters-row.two-col { grid-template-columns: 1fr 1fr; }
.filters-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.filters-row.four-col { grid-template-columns: repeat(4, 1fr); }
.filters-row--fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-group { margin-bottom: 18px; }
.filters-row .filter-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
}

.filters-row--fields .filter-group label {
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
}

.btn-group {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.btn-group .opt {
  flex: 1;
  border: none;
  border-right: 1px solid #ddd;
  background: #fff;
  padding: 9px 4px;
  font-size: 0.82rem;
  color: #666;
  cursor: pointer;
}

.btn-group .opt:last-child { border-right: none; }

.btn-group .opt.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* For Rent: Rental type (Rent / Short term rental / Lease) under the tabs. */
.rental-type-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rental-type-label {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.rental-type-filter .btn-group {
  flex: 1;
}

.rental-type-filter .opt {
  padding: 7px 8px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .rental-type-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .rental-type-filter .opt {
    white-space: normal;
  }
}

.price-slider {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 20px 4px 8px;
}

.slider-track { position: absolute; inset: 0; border-radius: 2px; }

.slider-range {
  position: absolute;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

.price-slider input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  cursor: pointer;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 18px;
}

.features-toggle {
  border: none;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.features-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: 14px 0 4px;
  font-size: 0.85rem;
}

.features-panel-heading {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

.features-panel-heading:first-child {
  margin-top: 0;
}

.features-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.btn-reset,
.btn-apply {
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-reset {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-apply {
  background: var(--orange);
  color: #fff;
}

.hero-sub {
  margin-top: 22px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero-image {
  width: 340px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  background: rgba(0,0,0,0.12);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.hero-dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dot:hover {
  background: rgba(255,255,255,0.85);
}

.dot.active {
  background: #fff;
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* Features */
.features {
  background: var(--gray-bg);
  padding: 70px 0;
}

.section-title {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Ad spaces (home, property sidebar, search) */
.ad-space-section {
  padding: 10px 0 30px;
}

.ad-space {
  display: block;
  width: 100%;
}

.ad-space-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.ad-space-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.ad-space-banner {
  min-height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

.ad-space-sidebar {
  margin-top: 18px;
  min-height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.ad-space-card {
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.ad-space-placeholder {
  background: linear-gradient(135deg, #e8eee6 0%, #f4f6f3 55%, #dfe6dc 100%);
  border: 1px dashed #b7c4b3;
}

.ad-space-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: inherit;
  height: 100%;
  padding: 28px 20px;
  text-align: center;
}

.ad-space-banner .ad-space-empty { min-height: 120px; }
.ad-space-sidebar .ad-space-empty { min-height: 250px; }
.ad-space-card .ad-space-empty { min-height: 320px; }

.ad-space-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a68;
}

.ad-space-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.ad-space-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange, #c96a3d);
}

.property-sidebar-ad {
  position: sticky;
  top: 20px;
}

/* CTA banner */
.cta-banner {
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  text-align: center;
  color: #fff;
}


/* Showcase */
.showcase {
  padding: 70px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 320px;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}

.showcase-title {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 1;
  max-width: calc(100% - 56px);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Locations */
.homepage-banner {
  padding-bottom: 40px;
}

.homepage-banner-link,
.homepage-banner-image {
  display: block;
  width: 100%;
}

.homepage-banner-image {
  min-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.locations {
  padding-bottom: 70px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.location-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  height: 220px;
  /* border-radius: 8px; */
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}

.location-name {
  position: absolute;
  top: 14px;
  left: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.location-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  text-align: right;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.location-count strong {
  font-size: 1.6rem;
  line-height: 1.1;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 50px 0 20px;
  position: relative;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  text-align: center;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

/* .footer-logo img {
  background: #d9d9d9;
  border-radius: 4px;
} */

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}

.back-to-top {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
}

/* Property search results */
.property-results {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.property-results.is-loading { opacity: 0.6; }

.results-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.results-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(107, 142, 99, 0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: results-spin 0.7s linear infinite;
}

@keyframes results-spin {
  to { transform: rotate(360deg); }
}

html.lw-min-loading .results-loading-overlay { display: flex !important; }
html.lw-min-loading .apply-label { display: none !important; }
html.lw-min-loading .apply-loading-label { display: inline !important; }

.filters-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  pointer-events: none;
}

html.lw-min-loading .filters-loading-overlay { display: flex !important; }

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

.property-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}

.property-card:hover { transform: translateY(-3px); }

.property-card-image {
  position: relative;
  height: 190px;
  background: var(--gray-bg);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.property-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.property-card-body {
  padding: 16px 18px 20px;
}

.property-card-price {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Property type eyebrow on listing cards (components/property-type-label). */
.property-type-label {
  display: block;
  max-width: 100%;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.property-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.property-card-meta {
  font-size: 0.82rem;
  color: #777;
}

.property-results-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 40px 0;
}

.property-results-empty a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}

.property-results-empty a:hover { color: var(--green); }

.property-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.site-pagination { display: flex; gap: 6px; flex-wrap: wrap; }

.page-link {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-dark);
}

.page-link.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page-link.disabled {
  color: #bbb;
  cursor: default;
}

/* Content pages & contact form */
.page-content {
  max-width: 1478px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  line-height: 1.7;
}

.page-content h1 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 24px;
}

.page-content .page-body {
  margin-bottom: 40px;
}

.contact-form {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

/*
 * Agent registration form: grouped sections + 2-col field pairing.
 * Scoped to .agent-register-form so the shared .contact-form/.form-group
 * rules above (used by the contact page, property enquiry form, etc.)
 * are left untouched.
 */
.agent-register-form .form-section {
  margin-bottom: 32px;
}

.agent-register-form .form-section:last-child {
  margin-bottom: 0;
}

.agent-register-form .form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}

.agent-register-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.agent-register-form .form-required {
  color: var(--orange);
  margin-left: 2px;
}

.agent-register-form .form-optional-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  background: #e9e9e9;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-hero-intro {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.agent-register-form .password-field {
  position: relative;
}

.agent-register-form .password-field input {
  padding-right: 44px;
}

.agent-register-form .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #999;
}

.agent-register-form .password-toggle:hover {
  color: var(--green);
}

.agent-register-form .password-toggle svg {
  width: 18px;
  height: 18px;
}

.agent-register-form .segmented-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.agent-register-form .segmented-toggle button {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.agent-register-form .segmented-toggle button + button {
  border-left: 1px solid #ddd;
}

.agent-register-form .segmented-toggle button.is-active {
  background: var(--green);
  color: #fff;
}

/* Radio choices drawn as a segmented toggle (register: buy/rent, mortgage
   certificate yes/no). Real radios, so the form works without JavaScript. */
.form-choice {
  border: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

.form-choice legend {
  display: block;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.choice-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.form-group .choice-toggle-option {
  flex: 1;
  position: relative;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.choice-toggle-option + .choice-toggle-option {
  border-left: 1px solid #ddd;
}

.form-group .choice-toggle-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-toggle-option span {
  display: block;
  padding: 11px 14px;
  text-align: center;
  font-size: 0.88rem;
  color: #555;
  transition: background 0.15s ease, color 0.15s ease;
}

.choice-toggle-option input:checked + span {
  background: var(--green);
  color: #fff;
}

.choice-toggle-option input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}

.preference-mortgage {
  margin: -4px 0 20px;
  padding: 16px 16px 2px;
  border-radius: 8px;
  background: #f5f7f5;
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #eef1ee;
  color: #555;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.form-group .input-prefix input {
  border: none;
  border-radius: 0;
}

.form-hint {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: #666;
}

.agent-register-form .btn-signin[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .agent-register-form .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero-intro {
    font-size: 0.88rem;
  }
}

/* Account pages (resources/views/layouts/auth.blade.php): the agent
   registration card, narrowed for short forms. */
.auth-form {
  max-width: 480px;
  margin: 0 auto;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 20px;
  font-size: 0.85rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-checkbox input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}

.auth-submit {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-note {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #555;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.auth-links p + p {
  margin-top: 6px;
}

.auth-form a,
.auth-link-button {
  color: var(--green);
  font-weight: 600;
}

.auth-link-button {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 4px;
}

.form-success {
  background: #e6f4ea;
  color: #256029;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* About page */
.about-section {
  padding: 60px 0 80px;
  text-align: center;
}

.about-section .section-title {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-bottom: 60px;
}

.about-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.about-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.about-card p {
  padding: 20px 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.about-cta h2 {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 700;
  max-width: 1470px;
  text-align: center;
  margin: 0 auto 28px;
  line-height: 1.4;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

/* Join chooser page */
.join-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.join-option-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 30px 24px;
  text-align: center;
}

.join-option-card h3 {
  color: var(--green);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.join-option-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  min-height: 42px;
}

/* Contact page */
.page-hero {
  padding: 50px 0 70px;
}

.page-hero-title {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
}

.contact-card img {
  width: 80px;
  height: 80px;
  margin: -60px auto 16px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.contact-card h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}

.contact-card .btn {
  background: var(--green);
  color: #fff;
}

.get-in-touch h2 {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.get-in-touch-intro {
  max-width: 640px;
  margin-bottom: 30px;
}

.contact-agent-cta {
  margin: 36px 0 28px;
  padding: 28px 24px;
  background: #eef5ee;
  border: 1px solid #c5d8c5;
  border-radius: 12px;
  text-align: center;
}

.contact-agent-cta h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.45rem;
}

.contact-agent-cta p {
  margin: 0 0 18px;
  color: #555;
}

.contact-agent-cta .btn {
  display: inline-block;
}

/* Agent Workspace page */
.agent-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
}

.agent-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 20px;
  flex-shrink: 0;
}

.agent-photo-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.agent-photo-1 { height: 260px; }
.agent-photo-2 { height: 190px; align-self: start; }
.agent-photo-3 { height: 190px; align-self: end; }
.agent-photo-4 { height: 260px; }

.agent-features {
  background: #fff;
  padding: 70px 0;
}

.agent-features-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.agent-features-intro {
  flex-shrink: 0;
  width: 280px;
}

.agent-features-intro .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.agent-features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  flex: 1;
}

.agent-feature-item img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.agent-feature-item p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Property detail page */
.property-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

[x-cloak] { display: none !important; }

.property-gallery { margin-bottom: 30px; }

.property-gallery-main {
  position: relative;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-bg);
}

.property-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.gallery-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.property-gallery-placeholder .property-card-placeholder { border-radius: 10px; }

.property-detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-tab {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.65;
}

.detail-tab.active {
  background: var(--orange);
  opacity: 1;
}

.detail-panel-map {
  min-height: 420px;
}

.detail-panel-map .property-map {
  margin-top: 0;
  min-height: 420px;
  height: 420px;
}

.detail-panel-map .property-map-canvas {
  min-height: 420px;
  height: 420px;
}

.detail-additional-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
}

.detail-additional-list > div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.detail-additional-list dt { color: #777; }
.detail-additional-list dd { font-weight: 600; color: var(--text-dark); }

.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.floor-plans-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
}

.property-video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.property-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.property-video-file {
  width: 100%;
  border-radius: 10px;
  margin-top: 12px;
}

.agent-detail-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 26px 24px;
  text-align: center;
}

.agent-detail-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.agent-detail-avatar-placeholder {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.agent-detail-card h4 { margin-bottom: 2px; }

.agent-detail-contact {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
}

.agent-detail-contact li { margin-bottom: 6px; }

.agent-detail-price { color: var(--green); font-weight: 700; }

.btn-view-listings {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gray-bg);
  color: var(--text-dark);
  margin-bottom: 10px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}

.agents-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.agents-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 40px;
  align-items: stretch;
}

.agent-directory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.agent-directory-top {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.agent-directory-card .agent-detail-avatar {
  margin: 0;
  flex-shrink: 0;
}

.agent-directory-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.agent-directory-info .agency-name {
  margin: 0;
  font-size: 0.88rem;
  color: #777;
}

.agent-listings-count {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

.agent-directory-bio {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.45;
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-directory-card .agent-detail-contact {
  flex: 1;
  min-height: 7.5em;
  margin-bottom: 0;
}

.agent-directory-card .agent-detail-contact a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agent-directory-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.agent-directory-actions .btn-whatsapp {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.agent-directory-actions .btn-view-listings,
.agent-directory-actions .btn-apply,
.agent-directory-actions .btn {
  margin: 0;
  width: 100%;
}

.agent-contact-form-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

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

@media (max-width: 640px) {
  .agents-directory-grid { grid-template-columns: 1fr; }
  .agent-directory-actions { grid-template-columns: 1fr; }
}

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

.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.property-detail-header h1 {
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.property-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.property-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.property-facts div {
  font-size: 0.85rem;
  color: #555;
}

.property-facts strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.property-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.property-features-list li {
  font-size: 0.88rem;
  color: #444;
}

.neighborhood-density {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.neighborhood-density-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Property page "What's Nearby" (resources/views/components/whats-nearby.blade.php):
   one button per OSM lifestyle category; the picked one is highlighted, the
   rest dimmed, and its places listed below. --cat-color is set inline. */
.whats-nearby {
  margin-top: 20px;
}

.whats-nearby-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.whats-nearby-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e4e4e0;
  border-radius: 999px;
  background: var(--gray-bg);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.whats-nearby-category:hover {
  border-color: var(--cat-color);
}

.whats-nearby-category:focus-visible {
  outline: 2px solid var(--cat-color);
  outline-offset: 2px;
}

.whats-nearby-category.is-active {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #fff;
}

.whats-nearby-category.is-dimmed {
  opacity: 0.45;
}

.whats-nearby-category.is-dimmed:hover {
  opacity: 0.8;
}

/* Category badge image (resources/views/components/lifestyle-icon.blade.php). */
.lifestyle-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* On the filled active button the badge would vanish into the same colour. */
.whats-nearby-category.is-active .lifestyle-icon {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.whats-nearby-count {
  font-weight: 700;
}

.whats-nearby-places {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e4e4e0;
  border-left: 4px solid var(--cat-color);
  border-radius: 8px;
  background: #fff;
}

.whats-nearby-places-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.whats-nearby-places .nearby-places-list {
  max-height: 280px;
}

/* Zillow-style named "nearby places" list — category dropdown + distance-sorted
   list. Used as an always-open panel on the property page, and as a
   click-to-expand teaser on search result cards (.nearby-places-collapsed). */
.nearby-places {
  margin-top: 16px;
}

.nearby-places-heading {
  margin-bottom: 8px;
}

.nearby-places-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #e4e4e0;
  border-radius: 8px;
  background: var(--gray-bg);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.nearby-places-toggle:hover {
  background: #ececea;
}

.nearby-places-toggle span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-places-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nearby-places-chevron.is-open {
  transform: rotate(180deg);
}

.nearby-places-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e4e4e0;
  border-radius: 8px;
  background: #fff;
}

.nearby-places-collapsed .nearby-places-panel {
  background: var(--gray-bg);
}

.nearby-places-filter {
  margin-bottom: 8px;
}

.nearby-places-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nearby-places-filter select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e4e4e0;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.nearby-places-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  max-height: 220px;
  overflow-y: auto;
}

.nearby-places-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.nearby-places-list li:last-child {
  border-bottom: none;
}

.nearby-places-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nearby-places-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-places-distance {
  flex-shrink: 0;
  color: #6b6b66;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nearby-places-attribution {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #999;
}

.agent-detail-card .agency-name {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.property-map {
  height: 320px;
  border-radius: 10px;
  margin-top: 30px;
  background: var(--gray-bg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* The map canvas itself clips to the rounded corners; the outer
   .property-map container stays overflow:visible so the floating Layers
   panel isn't cut off when it extends past the map's own bounds. */
.property-map-canvas {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* When the fullscreen button is used, the map div itself goes fullscreen —
   drop the card chrome so the canvas fills the viewport edge to edge. */
.property-map:fullscreen,
.property-map:-webkit-full-screen {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.property-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* GIS Layers button + panel (map overlay UI) */
.gis-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  gap: 8px;
}

.gis-layers-toggle,
.gis-radius-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
}

.gis-layers-toggle:hover,
.gis-radius-toggle:hover { color: var(--green); }
.gis-radius-toggle.active { background: var(--green); color: #fff; }
.gis-layers-toggle-icon { font-size: 1rem; }
.gis-layers-toggle-chevron { font-size: 0.7rem; color: #999; }

.gis-radius-panel {
  position: absolute;
  left: 16px;
  z-index: 40;
  width: 260px;
  max-width: calc(100% - 32px);
  /* Below the map's top row of buttons and never past its bottom edge
     (it would be cut off); longer content scrolls inside the panel. */
  top: 60px;
  max-height: calc(100% - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  padding: 16px;
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* Docked (non-floating) variant: a normal-flow sidebar card instead of an
   overlay pinned to the map — used on the search pages so the panel never
   covers the map. */
.gis-radius-panel--docked {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow-y: visible;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #e5e9e3;
  margin-bottom: 16px;
}

.gis-radius-panel-anchored {
  transition: left 0.08s linear, top 0.08s linear;
  will-change: left, top;
}

.gis-radius-hint { margin: 0; color: #777; }

.gis-radius-hint-active {
  color: var(--green);
  font-weight: 600;
}

.gis-radius-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Title + "Clear radius" on one row at the top of the radius panel. */
.gis-radius-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gis-radius-head .gis-radius-title {
  margin: 0;
}

.gis-radius-clear-top {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid #d9d9d4;
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.gis-radius-clear-top:hover,
.gis-radius-clear-top:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.gis-radius-panel-featured {
  min-width: 280px;
}

.lifestyle-hero {
  padding-top: 36px;
  padding-bottom: 28px;
  min-height: 0;
}

.lifestyle-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-height: 0;
  padding-bottom: 8px;
}

.lifestyle-hero .hero-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 6px;
}

.lifestyle-hero .hero-sub {
  margin-bottom: 0;
  max-width: 42rem;
}

.lifestyle-map-shell {
  height: min(72vh, 720px);
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.lifestyle-map-shell .property-map {
  height: 100%;
  margin-top: 0;
  border-radius: 12px;
}

.gis-radius-controls { margin-top: 4px; }

.gis-radius-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 6px;
}

.gis-radius-slider-value { color: var(--orange); font-weight: 700; }

.gis-radius-slider {
  width: 100%;
  accent-color: var(--orange);
  cursor: pointer;
}

.gis-radius-results { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.gis-radius-results p { margin: 0 0 6px; }

.gis-radius-lifestyle {
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.gis-radius-lifestyle-head { margin: 0 0 6px; }
.gis-radius-lifestyle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 168px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
}
.gis-radius-lifestyle-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-dark, #222);
}
.gis-radius-lifestyle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.gis-radius-lifestyle-count {
  margin-left: auto;
  font-weight: 600;
  color: #555;
}
.gis-radius-lifestyle-attr {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: #999;
}

.lifestyle-iw {
  min-width: 150px;
  line-height: 1.4;
}
.lifestyle-iw-cat {
  font-weight: 600;
}
.lifestyle-iw-name {
  font-size: 14px;
  font-weight: 600;
}
.lifestyle-iw-meta {
  color: #666;
}
.lifestyle-iw-attr {
  margin-top: 4px;
  font-size: 11px;
  color: #999;
}

.gis-layers-panel {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 40;
  width: 280px;
  max-width: calc(100% - 32px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  padding: 20px 18px 16px;
  color: var(--text-dark);
}

.gis-layers-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  padding-right: 20px;
}

.gis-layer-row {
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.gis-layer-row:first-of-type { border-top: none; }

.gis-layer-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.gis-layer-row.disabled label { color: #aaa; cursor: not-allowed; }

.gis-layer-description {
  margin: 4px 0 0 24px;
  font-size: 0.78rem;
  color: #888;
}

.gis-layer-hint {
  margin: 4px 0 0 24px;
  font-size: 0.75rem;
  color: var(--orange);
}

.gis-attribution {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.7rem;
  color: #999;
}

.gis-info-window {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.favorite-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
}

.favorite-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; justify-content: flex-start; }
  .hero-content { width: 100%; max-width: 100%; }
  .hero-media { width: 100%; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-title { font-size: 1.3rem; left: 20px; bottom: 20px; max-width: calc(100% - 40px); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: center; gap: 30px; }
  .main-nav { display: none; }
  .adv-filters { min-width: 0; }
  .filters-row.two-col,
  .filters-row.three-col,
  .filters-row.four-col,
  .filters-row--fields { grid-template-columns: 1fr; }
  .features-panel { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-detail-body { grid-template-columns: 1fr; }
  .property-gallery-main { height: 280px; }
  .detail-additional-list { grid-template-columns: 1fr; }
  .floor-plans-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .join-options { grid-template-columns: repeat(2, 1fr); }
  .agent-hero-inner { flex-direction: column; }
  .agent-features-inner { flex-direction: column; gap: 30px; }
  .agent-features-intro { width: auto; }
  .agent-features-list { grid-template-columns: repeat(2, 1fr); }
  .search-hero-inner { grid-template-columns: 1fr; }
  .search-hero-inner .search-hero-content,
  .search-hero-inner .search-card,
  .search-hero-inner .property-results { grid-column: 1; grid-row: auto; min-width: 0; }
  .search-card { margin-top: 20px; }
  .search-map-layout .search-list-title-row { flex-wrap: wrap; }
  .property-row-card { flex-direction: column; }
  .property-row-image { flex: none; width: 100%; height: 200px; }
  .property-grid-bubbles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .search-map-stage.has-radius { grid-template-columns: minmax(0, 1fr); }
  .search-radius-side { height: auto; min-height: 0; overflow: visible; }
}

@media (max-width: 640px) {
  .property-grid { grid-template-columns: 1fr; }
  .property-grid-bubbles { grid-template-columns: 1fr; }
  .about-cta-actions { flex-direction: column; align-items: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .join-options { grid-template-columns: 1fr; }
  .agent-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-features-list { grid-template-columns: 1fr; }
  .search-list-meta { flex-direction: column; align-items: flex-start; }
}

/* Compare floating pill (site-wide, layouts/site.blade.php) */
.compare-float-pill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.compare-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* "Added to compare (2 of 4)" message (public/js/compare.js), just above
   the Compare button. */
.compare-toast {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 61;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.compare-toast.is-visible {
  opacity: 1;
  transform: none;
}

.compare-attribution {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #888;
}

/* Compare page: "Clear all" above the table. */
.compare-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.compare-clear-all {
  padding: 0;
  border: none;
  background: none;
  color: #c0392b;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Compare table (resources/views/compare/index.blade.php) */
.compare-hero {
  padding-top: 36px;
  padding-bottom: 28px;
  min-height: 0;
}

.compare-hero-inner {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-bottom: 8px;
}

.compare-hero .hero-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 6px;
}

.compare-hero .hero-sub {
  margin-bottom: 0;
  max-width: 36rem;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 12px 0 60px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.compare-table thead th {
  vertical-align: top;
}

.compare-table tbody tr:nth-child(even) { background: var(--gray-bg); }

.compare-label-col {
  width: 180px;
  font-weight: 600;
  color: #666;
  white-space: normal;
}

.compare-col-head { position: relative; min-width: 0; white-space: normal; }

.compare-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.compare-col-image {
  display: block;
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--sage, #6b8e63);
}

.compare-col-image img { width: 100%; height: 100%; object-fit: cover; }

.compare-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6b8e63, #5a7a54);
}

.compare-col-title {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  text-decoration: none;
}

.compare-col-status { display: block; color: var(--green); font-size: 0.8rem; font-weight: 600; }

.compare-col-price { display: block; color: var(--text-dark); font-weight: 700; margin-top: 2px; }

.compare-feature-cell { text-align: center; font-size: 1.05rem; }
/* =========================================================
   PARISH / LOCATION MOSAIC
   ========================================================= */

.locations {
    width: 100%;
    margin: 0;
    padding: 0;
}

.locations-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 310px;
    gap: 0;
    overflow: hidden;
}

/* ---------------------------------------------------------
   LOCATION CARD
   --------------------------------------------------------- */

.location-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.location-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1),
        filter 0.4s ease;
}

/* Dark gradient exactly like the reference */
.location-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.02) 35%,
            rgba(0, 0, 0, 0.10) 55%,
            rgba(0, 0, 0, 0.72) 100%
        );

    pointer-events: none;
}

/* ---------------------------------------------------------
   TEXT
   --------------------------------------------------------- */

.location-name {
    position: absolute;
    top: 20px;
    left: 28px;

    z-index: 2;

    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.35);
}

.location-count {
    position: absolute;
    right: 28px;
    bottom: 20px;

    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    color: #fff;

    text-align: right;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.65),
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.location-count strong {
    display: block;

    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.location-count small {
    display: block;
    margin-top: 5px;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

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

.location-card:hover .location-overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.15) 55%,
            rgba(0, 0, 0, 0.78) 100%
        );
}

/* =========================================================
   MOSAIC PATTERN
   ========================================================= */

/*
   Every 6 cards create this pattern:

   ┌───────────────┬───────┬───────┐
   │               │   2   │   3   │
   │       1       ├───────┴───────┤
   │               │               │
   ├───────┬───────┤       6       │
   │   4   │   5   │               │
   └───────┴───────┴───────────────┘
*/

/* Card 1 = 2 columns */
.location-card:nth-child(6n + 1) {
    grid-column: span 2;
}

/* Card 2 */
.location-card:nth-child(6n + 2) {
    grid-column: span 1;
}

/* Card 3 */
.location-card:nth-child(6n + 3) {
    grid-column: span 1;
}

/* Card 4 */
.location-card:nth-child(6n + 4) {
    grid-column: span 1;
}

/* Card 5 */
.location-card:nth-child(6n + 5) {
    grid-column: span 1;
}

/* Card 6 = 2 columns */
.location-card:nth-child(6n + 6) {
    grid-column: span 2;
}


/* =========================================================
   DYNAMIC SMALL COUNTS
   ========================================================= */

/* 1 parish */
.locations-count-1 {
    grid-template-columns: 1fr;
}

.locations-count-1 .location-card {
    grid-column: span 1 !important;
}


/* 2 parishes */
.locations-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locations-count-2 .location-card {
    grid-column: span 1 !important;
}


/* 3 parishes */
.locations-count-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.locations-count-3 .location-card:nth-child(1) {
    grid-column: span 2;
}

.locations-count-3 .location-card:nth-child(2),
.locations-count-3 .location-card:nth-child(3) {
    grid-column: span 1;
}


/* 4 parishes */
.locations-count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.locations-count-4 .location-card:nth-child(1) {
    grid-column: span 2;
}

.locations-count-4 .location-card:nth-child(2),
.locations-count-4 .location-card:nth-child(3) {
    grid-column: span 1;
}

.locations-count-4 .location-card:nth-child(4) {
    grid-column: span 2;
}


/* 5 parishes */
.locations-count-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.locations-count-5 .location-card:nth-child(1) {
    grid-column: span 2;
}

.locations-count-5 .location-card:nth-child(2),
.locations-count-5 .location-card:nth-child(3) {
    grid-column: span 1;
}

.locations-count-5 .location-card:nth-child(4) {
    grid-column: span 1;
}

.locations-count-5 .location-card:nth-child(5) {
    grid-column: span 3;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .locations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 260px;
    }

    .location-card {
        grid-column: span 1 !important;
    }

    .locations-count-1 {
        grid-template-columns: 1fr;
    }

    .locations-count-1 .location-card {
        grid-column: span 1 !important;
    }

    .location-name {
        top: 16px;
        left: 18px;
        font-size: 15px;
    }

    .location-count {
        right: 18px;
        bottom: 16px;
    }

    .location-count strong {
        font-size: 24px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .locations-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .location-card {
        grid-column: span 1 !important;
    }

    .location-name {
        top: 16px;
        left: 18px;
        font-size: 16px;
    }

    .location-count {
        right: 18px;
        bottom: 16px;
    }

    .location-count strong {
        font-size: 25px;
    }

    .location-count small {
        font-size: 11px;
    }
}

/* Lifestyle insights / Around this home / Compare hubs */
.around-this-home { margin-top: 4px; }
.around-heading { margin: 0 0 6px; font-size: 1.15rem; }
.around-note { color: #666; font-size: 0.85rem; margin: 0 0 12px; }
.around-map-wrap { height: 420px; border-radius: 10px; overflow: hidden; margin: 16px 0 4px; }
.around-map-wrap .property-map { height: 100%; margin-top: 0; }
.around-map-wrap .property-map-canvas { min-height: 420px; height: 420px; }
.around-hubs { margin-top: 24px; }
.around-hubs-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.around-hubs-header h4 { margin: 0; }
.around-add-btn {
  border: none; background: var(--sage, #6b8e63); color: #fff;
  padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.around-add-form {
  background: #f7f7f5;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  min-width: 0;
  overflow: hidden;
}

.around-add-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.around-add-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
}

.around-add-grid input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 400;
}

/* Narrow Lifestyle Insights sidebar — stack fields so they don't overflow */
.lifestyle-sidebar .around-add-grid {
  grid-template-columns: 1fr;
}
.around-error { color: #b42318; font-size: 0.85rem; margin: 0 0 8px; }
.around-hub-list { list-style: none; padding: 0; margin: 0; }
.around-hub-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.95rem;
}
.around-hub-distance { font-weight: 700; color: var(--orange, #e07a3e); white-space: nowrap; }
.around-hub-delete {
  border: none; background: transparent; color: #999; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.around-hubs-help {
  margin: 0 0 12px;
}

.around-hub-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.around-my-places { margin-top: 18px; }
.around-my-places h4 { margin: 0 0 8px; }

.lifestyle-page-body {
  padding-top: 28px;
  padding-bottom: 40px;
}
.lifestyle-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 24px;
  align-items: stretch;
  min-height: 560px;
}
.lifestyle-layout--map-only {
  grid-template-columns: 1fr;
}
.lifestyle-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 18px 16px;
  min-width: 0;
  overflow: hidden;
}
.lifestyle-sidebar h2 { margin: 0 0 8px; font-size: 1.2rem; }
.lifestyle-map-col { min-height: 560px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.lifestyle-map-col .property-map { height: 100%; min-height: 560px; margin-top: 0; }
.lifestyle-hub-picker { list-style: none; padding: 0; margin: 0; }
.lifestyle-hub-picker li { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.lifestyle-hub-btn {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  text-align: left; border: 1px solid #e5e5e5; background: #fff; border-radius: 8px;
  padding: 10px 12px; cursor: pointer; font-size: 0.9rem;
}
.lifestyle-hub-btn:hover { border-color: var(--sage, #6b8e63); }
.lifestyle-hub-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--sage, #6b8e63); background: #eef3ec; padding: 2px 6px; border-radius: 4px;
}
.lifestyle-hub-btn.is-selected {
  border-color: var(--green);
  background: #eef3ec;
  box-shadow: inset 3px 0 0 var(--green);
  font-weight: 600;
}

/* Lifestyle Insights add-a-place (pin mode). */
.place-pin-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  background: #fff6ef;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.lifestyle-add-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lifestyle-add-cancel {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.lifestyle-saved {
  margin: 12px 0 0;
}

/* Over the map while a pin is being placed — below the toolbar row so its
   Cancel is never hidden behind Radius Search / Layers. */
.map-pin-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 140px);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.map-pin-banner strong {
  display: block;
  font-size: 0.88rem;
}

.map-pin-banner-cancel {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.map-pin-banner-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.gis-radius-toggle[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.gis-radius-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.gis-radius-save-point {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .map-pin-banner {
    max-width: calc(100% - 24px);
    top: 120px;
  }
}

.lifestyle-distances { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.lifestyle-distances h3 { margin: 0 0 10px; font-size: 1rem; }

.compare-layout {
  padding-top: 28px;
  padding-bottom: 40px;
}

.compare-layout > .search-breadcrumb {
  margin-top: 0;
  margin-bottom: 20px;
}
.compare-main { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.compare-content:only-child { grid-column: 1 / -1; }
.compare-saved-sidebar {
  background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); padding: 16px;
  position: sticky; top: 16px;
}
.compare-saved-sidebar h3 { margin: 0 0 12px; font-size: 1rem; }
.compare-saved-link {
  display: block; padding: 10px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; font-size: 0.9rem;
}
.compare-saved-link span { display: block; color: #888; font-size: 0.8rem; margin-top: 2px; }
.compare-save-form { margin-top: 16px; display: grid; gap: 8px; }
.compare-save-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.compare-save-form input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-weight: 400; }
.compare-hubs-cell {
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
  max-width: none;
}
.compare-hub-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.compare-hub-stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.compare-hub-stack li:last-child { border-bottom: none; }
.compare-hub-name { color: #555; min-width: 0; }
.compare-hub-dist { color: var(--orange, #e07a3e); font-weight: 700; white-space: nowrap; }

.compare-nearby-cell {
  text-align: center;
  vertical-align: middle;
}

.compare-nearby-count {
  font-weight: 700;
  color: var(--green);
  font-size: 1.05rem;
}
.compare-blurb {
  background: #f7f7f5;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 20px;
}
.compare-blurb h3 { margin: 0 0 10px; font-size: 1rem; }
.compare-blurb-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.compare-blurb-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
}
.compare-blurb-list li:last-child { margin-bottom: 0; }
.compare-blurb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage, #6b8e63);
}
.compare-blurb-hint { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #e5e5e2; font-size: 0.82rem; line-height: 1.4; color: #777; }
.compare-blurb-hint a { color: var(--sage, #6b8e63); }
.compare-col-condition {
  display: block;
  font-size: 0.75rem;
  color: var(--sage, #6b8e63);
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .lifestyle-layout,
  .compare-main { grid-template-columns: 1fr; }
  .around-add-grid { grid-template-columns: 1fr; }
  .lifestyle-map-col,
  .lifestyle-map-col .property-map { min-height: 420px; }
}

/* My Account (resources/views/dashboard.blade.php): favourites and saved
   places on the left, preferences and quick links on the right. */
.account-page {
  padding-top: 40px;
}

.account-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fff7ec;
  border: 1px solid #f4d6ad;
}

.account-prompt p {
  margin: 0;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.account-section + .account-section {
  margin-top: 44px;
}

.account-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}

.account-section-head h2,
.account-card h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--green);
}

.account-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef1ee;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: middle;
}

.account-section-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.account-section-intro {
  margin: -6px 0 16px;
  color: #666;
  font-size: 0.9rem;
}

.property-grid-bubbles.account-favorites-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.account-empty {
  padding: 28px;
  border-radius: 10px;
  background: var(--gray-bg);
  text-align: center;
}

.account-empty p {
  margin: 0 0 14px;
  color: #555;
}

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

.account-place {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.account-place-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef1ee;
  color: var(--green);
}

.account-place-icon svg {
  width: 20px;
  height: 20px;
}

.account-place-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.account-place-text span {
  color: #555;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.account-place-text small {
  color: #999;
  font-size: 0.75rem;
}

.account-place-remove {
  padding: 6px 12px;
  border: 1px solid #e3b4ae;
  border-radius: 6px;
  background: #fff;
  color: #c0392b;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.account-place-remove:hover {
  background: #fdf0ee;
}

.account-side {
  display: grid;
  gap: 24px;
}

.account-card {
  padding: 24px;
  border-radius: 10px;
  background: var(--gray-bg);
}

.account-card h2 {
  margin-bottom: 18px;
}

.account-links {
  display: grid;
  gap: 10px;
}

.account-links .btn {
  text-align: center;
}

@media (max-width: 960px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

/* Phones: maps with Radius Search / Layers stack as buttons bar, map, then
   the radius panel, so the buttons never sit on Google's Map/Satellite and
   full-screen controls and the panel never covers the map. On For Sale /
   For Rent / Map Discovery the map also runs edge to edge. */
@media (max-width: 640px) {
  .property-map.property-map--gis {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto !important;
    min-height: 0 !important;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .property-map.property-map--gis > .property-map-canvas {
    flex: none;
    height: var(--phone-map-height, 420px) !important;
    min-height: 0 !important;
    border-radius: 10px;
    background: var(--gray-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  .property-map--gis > .gis-toolbar {
    position: static;
    order: -1;
    justify-content: flex-end;
  }

  .property-map--gis .gis-radius-toggle,
  .property-map--gis .gis-layers-toggle {
    border: 1px solid #e5e9e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* The panel follows the search circle on larger maps (inline left/top);
     here it is a normal card under the map. */
  .property-map--gis > .gis-radius-panel:not(.gis-radius-panel--docked) {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow-y: visible;
    transition: none;
    border: 1px solid #e5e9e3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  .property-map--gis > .gis-layers-panel {
    top: 54px;
  }

  /* Map containers sized for an overlay layout grow with the stack. */
  .around-map-wrap,
  .lifestyle-map-col {
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .lifestyle-map-col .property-map {
    min-height: 0;
  }

  /* For Sale / For Rent / Map Discovery: full-width map. */
  .search-map-col .property-map {
    --phone-map-height: max(420px, 70vh);
  }

  .search-map-col .property-map.property-map--gis {
    width: 100vw !important; /* beats the map's inline width: 100% */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .search-map-col .property-map--gis > .property-map-canvas {
    border-radius: 0;
    box-shadow: none;
  }

  .search-map-col .property-map--gis > .gis-toolbar {
    padding: 0 16px;
  }

  /* Full screen: the whole map fills the screen again. Separate rules, as
     a browser drops a selector list containing a selector it doesn't know. */
  .property-map.property-map--gis:fullscreen {
    height: 100% !important;
    background: #fff;
  }

  .property-map.property-map--gis:-webkit-full-screen {
    height: 100% !important;
    background: #fff;
  }

  .property-map.property-map--gis:fullscreen > .property-map-canvas {
    flex: 1 1 auto;
    height: auto !important;
    border-radius: 0;
  }

  .property-map.property-map--gis:-webkit-full-screen > .property-map-canvas {
    flex: 1 1 auto;
    height: auto !important;
    border-radius: 0;
  }
}

/* Form bot checks (resources/views/components/form-protection.blade.php).
   The honeypot field is off-screen for people; screen readers skip it. */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error-general {
  margin: 0 0 14px;
  font-size: 0.85rem;
}

/* reCAPTCHA v3: Google's floating badge is hidden (it would sit on the
   Compare button); the notice under each protected form replaces it, as
   Google allows. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-notice {
  margin: 0 0 14px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #888;
}

.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

/* Radius panel: "Nearest 2,000 shown on the map" under the building count. */
.gis-radius-note {
  margin: -4px 0 6px;
  font-size: 0.75rem;
  color: #888;
}
