/* ══════════════════════════════════════════════════
   iLAND — Premium Listings & Map Interface CSS
   ══════════════════════════════════════════════════ */

:root {
  --primary: #1240AB;
  --primary2: #1A54CE;
  --primary-light: #EEF4FD;
  --gold: #D9A232;
  --gold-hover: #C58F22;
  --gold-light: #FFF8E7;
  --ink: #0F1C33;
  --muted: #5C6E87;
  --line: #E1E8F2;
  --bg: #F5F8FC;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(18,64,171,0.06);
  --shadow-md: 0 6px 20px rgba(18,64,171,0.09);
  --shadow-lg: 0 16px 36px rgba(18,64,171,0.16);
  --radius: 12px;
}

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

body.listings-page-body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Filter Hub ── */
.listings-filter-hub {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px; /* below public-nav */
  z-index: 900;
  box-shadow: 0 4px 16px rgba(11,61,46,0.04);
}

.filter-top-strip {
  padding: 12px 3%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #edf2ef;
}

/* City selector */
.city-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.city-icon {
  position: absolute;
  left: 12px;
  color: var(--gold);
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}

.city-select {
  padding: 8px 14px 8px 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fdfefe;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  outline: none;
  cursor: pointer;
  transition: all .2s ease;
}

.city-select:focus, .city-select:hover {
  border-color: var(--primary);
  background: #fff;
}

/* Keyword Search */
.listings-search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  height: 38px;
  transition: all .2s ease;
}

.listings-search-box:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,61,46,0.08);
}

.listings-search-box i {
  color: var(--muted);
  font-size: 13px;
  margin-right: 10px;
}

.listings-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}

/* GPS Pill Button */
.gps-pill-btn {
  background: rgba(201,150,63,0.12);
  border: 1px solid rgba(201,150,63,0.35);
  color: #a47525;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all .2s ease;
}

.gps-pill-btn:hover, .gps-pill-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* Tx Pills */
.tx-pills-wrap {
  display: flex;
  background: #edf2ee;
  padding: 3px;
  border-radius: 8px;
}

.tx-pill-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}

.tx-pill-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* View Mode Selector */
.view-mode-selector {
  display: flex;
  background: #f0f4f1;
  padding: 3px;
  border-radius: 8px;
  margin-left: auto;
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}

.view-mode-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Secondary Filter Strip */
.filter-bottom-strip {
  padding: 9px 3%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-group label {
  color: var(--muted);
  font-size: 11px;
}

.filter-select-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}

.filter-select-pill:focus, .filter-select-pill:hover {
  border-color: var(--primary);
}

.filter-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}

.chip-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chip-filter-btn.active i {
  color: #fff !important;
}

.reset-filters-btn {
  border: none;
  background: none;
  color: #8c9e97;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}

.reset-filters-btn:hover {
  color: #b03838;
}

.results-stat-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Main Viewport Layouts ── */
.listings-viewport {
  flex: 1;
  position: relative;
  transition: all .3s ease;
}

/* MODE 1: Split View (Listings on Left + Interactive Property Details Pane on Right) */
.listings-viewport.mode-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  height: calc(100vh - 142px);
  overflow: hidden;
}

.listings-viewport.mode-split .listings-cards-panel {
  overflow-y: auto;
  padding: 20px 20px 60px;
  background: var(--bg);
  height: 100%;
}

.listings-viewport.mode-split .listings-details-panel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px 80px;
  background: #F8FAFC;
  border-left: 1px solid #E1E8F2;
}

/* In-place Property Details Pane Styling */
.details-pane-card {
  background: #ffffff;
  border: 1px solid #E1E8F2;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(10,37,104,0.06);
  padding: 24px;
  animation: detailsFadeIn 0.25s ease-out;
}

@keyframes detailsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.details-hero-box {
  position: relative;
  height: 270px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(10, 37, 104, 0.12);
}

.details-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,37,104,0.2) 0%, rgba(10,37,104,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.details-hero-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-open-in-map {
  background: rgba(255, 255, 255, 0.92);
  color: #1240AB;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.btn-open-in-map:hover {
  background: #1240AB;
  color: #ffffff;
}

.details-hero-bottom {
  color: #ffffff;
}

.details-hero-price {
  font-size: 26px;
  font-weight: 800;
  color: #FFD56B;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.details-hero-area {
  font-size: 13px;
  color: #E2E8F0;
  margin-left: 8px;
  font-weight: 500;
}

/* Link to dedicated map page in view-mode-selector */
.view-mode-btn.btn-map-view-link {
  background: #EEF4FD;
  color: #1240AB;
  border-color: #B7CEFA;
}
.view-mode-btn.btn-map-view-link:hover {
  background: #1240AB;
  color: #ffffff;
}

/* Active card highlight on the left */
.listing-card-premium.active-selected {
  border-color: #1240AB !important;
  background: #F4F8FF !important;
  box-shadow: 0 8px 24px rgba(18, 64, 171, 0.16) !important;
}

.listing-card-premium.active-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #1240AB, #D9A232);
  z-index: 3;
}

/* MODE 2: Grid Gallery View */
.listings-viewport.mode-grid {
  display: block;
  min-height: 80vh;
  padding: 24px 4% 60px;
}

.listings-viewport.mode-grid .listings-details-panel {
  display: none;
}

.listings-viewport.mode-grid .cards-stream {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Panel Subheader ── */
.panel-header-sub {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.panel-header-sub h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.active-criteria-note {
  font-size: 12px;
  color: var(--muted);
}

/* ── Listing Cards ── */
.listing-card-premium {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  cursor: pointer;
  display: flex;
  position: relative;
}

.listing-card-premium:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.listing-card-premium.highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-md);
}

.listing-photo-box {
  width: 170px;
  flex: none;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 155px;
}

.listing-badges-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge-tx-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  display: inline-block;
}

.badge-tx-tag.sale { background: #1240AB; }
.badge-tx-tag.rent { background: #d97706; }
.badge-tx-tag.lease { background: #2563eb; }

.badge-trust-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-trust-tag.certified {
  background: rgba(217,162,50,0.96);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.badge-trust-tag.verified {
  background: rgba(18,64,171,0.90);
}

/* Card Body */
.listing-info-box {
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prop-type-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.prop-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-location-text {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.prop-specs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f4f2;
}

.prop-spec-chip {
  font-size: 11px;
  color: #43544d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prop-spec-chip i {
  color: var(--primary);
  font-size: 10px;
}

.prop-spec-chip.vastu {
  color: #b8740c;
  font-weight: 600;
}

.prop-spec-chip.vastu i {
  color: #b8740c;
}

.listing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prop-price-display {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.prop-price-display small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.card-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-card-action:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-card-action.fav {
  padding: 6px 9px;
  color: #e04848;
}

.btn-card-action.fav:hover {
  background: #ffeeee;
  border-color: #ffcccc;
}

/* Grid view card adjustment */
.listings-viewport.mode-grid .listing-card-premium {
  flex-direction: column;
}

.listings-viewport.mode-grid .listing-photo-box {
  width: 100%;
  height: 190px;
}

/* ── Leaflet Map Customization ── */
#listingsMap {
  width: 100%;
  height: 100%;
  background: #eef2ef;
}

/* Custom Marker Pins */
.custom-price-pin {
  background: var(--primary);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid #ffffff;
}

.custom-price-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary);
  border-bottom: none;
}

.custom-price-pin.rent {
  background: #b87d0a;
}
.custom-price-pin.rent::after {
  border-top-color: #b87d0a;
}

.custom-price-pin.lease {
  background: #1d4e8f;
}
.custom-price-pin.lease::after {
  border-top-color: #1d4e8f;
}

.custom-price-pin.certified {
  background: #C9963F;
  border-color: #ffe8b5;
  box-shadow: 0 0 0 2px rgba(201,150,63,0.4), 0 4px 14px rgba(0,0,0,0.35);
}
.custom-price-pin.certified::after {
  border-top-color: #C9963F;
}

.custom-price-pin:hover, .custom-price-pin.active-pin {
  transform: scale(1.15) translateY(-3px);
  z-index: 1000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Map Floating Bar */
.map-floating-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 700;
  pointer-events: none;
}

.map-layer-pills {
  pointer-events: auto;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  padding: 3px;
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 2px;
  border: 1px solid rgba(0,0,0,0.06);
}

.layer-pill {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s ease;
}

.layer-pill.active {
  background: var(--primary);
  color: #fff;
}

.map-action-btns {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.map-icon-btn {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}

.map-icon-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Map Legend */
.map-floating-legend {
  position: absolute;
  top: 66px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  z-index: 700;
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
}

.legend-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.pin-sale-color { background: var(--primary); }
.pin-rent-color { background: #b87d0a; }
.pin-lease-color { background: #1d4e8f; }
.pin-cert-color { background: #C9963F; }

/* ── Map Explorer Floating Carousel ── */
.map-floating-carousel-wrap {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 750;
  background: rgba(10, 38, 104, 0.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.carousel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.carousel-heading small {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 500;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  height: 5px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}

.carousel-card {
  flex: 0 0 260px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.carousel-card-img {
  height: 90px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6px;
}

.carousel-card-body {
  padding: 10px 12px;
}

.carousel-card-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.carousel-card-loc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.carousel-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

/* ── Leaflet Popup Custom Styling ── */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  margin: 0;
  width: 260px !important;
}

.popup-inner-card {
  padding: 0;
}

.popup-photo {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 8px;
}

.popup-content {
  padding: 12px 14px;
}

.popup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.popup-loc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.popup-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.popup-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.popup-btn:hover {
  background: var(--primary2);
}

/* ── Custom Quick View Modal ── */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 54, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card-custom {
  background: #fff;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 60px rgba(5, 18, 43, 0.45);
  border: 1px solid rgba(18, 64, 171, 0.15);
  animation: modalPop .25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-custom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(5, 18, 43, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-custom:hover {
  background: rgba(18, 64, 171, 0.9);
  transform: rotate(90deg);
}

/* Modal Hero */
.property-modal-hero {
  height: 270px;
  border-radius: 19px 19px 0 0;
  position: relative;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.property-modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 63, 0.9) 0%, rgba(7, 25, 63, 0.3) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.modal-hero-top-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.modal-hero-bottom-info {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-hero-price {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.modal-hero-unit-rate {
  font-size: 12.5px;
  color: #F0C465;
  font-weight: 600;
  margin-top: 3px;
}

/* Modal Body Content */
.property-modal-body {
  padding: 24px 28px 30px;
}

/* Section Titles */
.modal-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0A2568;
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E1E8F2;
}
.modal-section-title i {
  color: #1240AB;
  font-size: 15px;
}

/* Facts Strip (Inline Facts) */
.modal-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}
.modal-fact-card {
  background: #F5F8FC;
  border: 1px solid #E1E8F2;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.modal-fact-card:hover {
  border-color: #B7CEFA;
  background: #EEF4FD;
}
.modal-fact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #D6E2F5;
  color: #1240AB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.modal-fact-info {
  display: flex;
  flex-direction: column;
}
.modal-fact-label {
  font-size: 10.5px;
  color: #5C6E87;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.modal-fact-value {
  font-size: 13px;
  font-weight: 700;
  color: #0F1C33;
}

/* Property Details Specifications Table */
.modal-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E1E8F2;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #fff;
}
.modal-specs-table tr:nth-child(even) {
  background: #F8FAFC;
}
.modal-specs-table td {
  padding: 10px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid #EDF2F7;
}
.modal-specs-table tr:last-child td {
  border-bottom: none;
}
.modal-specs-label {
  color: #5C6E87;
  font-weight: 600;
  width: 38%;
}
.modal-specs-value {
  color: #0F1C33;
  font-weight: 600;
}

/* Amenities & Features Grid */
.modal-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.modal-amenity-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E1E8F2;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(10,37,104,0.03);
  transition: all 0.2s ease;
}
.modal-amenity-card:hover {
  border-color: #1240AB;
  background: #EEF4FD;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18,64,171,0.08);
}
.modal-amenity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEF4FD;
  color: #1240AB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.modal-amenity-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F1C33;
  line-height: 1.25;
}
.modal-amenity-check {
  margin-left: auto;
  color: #1240AB;
  font-size: 11px;
}

/* Modal Actions Bar */
.modal-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #E1E8F2;
  flex-wrap: wrap;
}
.btn-modal-primary {
  flex: 1;
  min-width: 190px;
  background: linear-gradient(135deg, #1240AB, #1A54CE);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(18, 64, 171, 0.35);
  transition: all 0.2s ease;
}
.btn-modal-primary:hover {
  background: linear-gradient(135deg, #1A54CE, #2B6CB0);
  transform: translateY(-1px);
}
.btn-modal-secondary {
  flex: 1;
  min-width: 170px;
  background: #fff;
  color: #0A2568;
  border: 1.5px solid #1240AB;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-modal-secondary:hover {
  background: #EEF4FD;
  color: #1240AB;
}
.btn-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F5F8FC;
  border: 1px solid #E1E8F2;
  color: #5C6E87;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-modal-icon:hover {
  background: #EEF4FD;
  color: #1240AB;
  border-color: #B7CEFA;
}

/* Card Amenities Mini Strip */
.prop-amenities-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}
.prop-amenity-mini-chip {
  background: #F0F4FA;
  border: 1px solid #E1E8F2;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #334E68;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prop-amenity-mini-chip i {
  color: #1240AB;
  font-size: 10px;
}

@media (max-width: 600px) {
  .property-modal-body {
    padding: 16px;
  }
  .modal-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-hero-price {
    font-size: 22px;
  }
  .modal-actions-bar {
    flex-direction: column;
  }
  .btn-modal-primary, .btn-modal-secondary {
    width: 100%;
  }
}


/* ── Empty State ── */
.no-results-box {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed var(--line);
}

.no-results-box i {
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.no-results-box h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.no-results-box p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Responsive Rules ── */
@media (max-width: 1024px) {
  .listings-viewport.mode-split {
    grid-template-columns: 400px 1fr;
  }
  .listings-viewport.mode-grid .cards-stream {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .listings-viewport.mode-split {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .listings-viewport.mode-split .listings-cards-panel {
    height: auto;
    max-height: none;
    padding: 16px;
  }
  .listings-viewport.mode-split .listings-details-panel {
    height: auto;
    max-height: none;
    border-left: none;
    border-top: 2px solid #E1E8F2;
    padding: 20px 14px 60px;
  }
  .view-mode-selector {
    display: none;
  }
}

@media (max-width: 640px) {
  .filter-top-strip, .filter-bottom-strip {
    gap: 8px;
    padding: 8px 14px;
  }
  .listings-search-box {
    min-width: 100%;
    order: 3;
  }
  .city-selector-wrap {
    width: 100%;
    order: 1;
  }
  .city-select {
    width: 100%;
  }
  .tx-pills-wrap {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }
  .listing-card-premium {
    flex-direction: column;
  }
  .listing-photo-box {
    width: 100%;
    height: 140px;
  }
  .listings-viewport.mode-grid .cards-stream {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .listings-filter-hub {
    top: 62px;
  }
}

