:root {
  --primary: #0099ff;
  --secondary: #ff9900;
  --dark-blue: #005588;
  --light-blue: #e6f5ff;
  --light-orange: #fff4e6;
  --gray: #f0f0f0;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --red: #ff5252;
  --green: #4caf50;
  --yellow: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
}

body, html {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #f8f9fa;
  font-family: "Inter", "Helvetica Neue", "Neue Haas Grotesk", Arial, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 1rem 1rem 1rem 1rem;
  padding: 0 1rem;
}

.listings-main-container {
  height: calc(100% - 70px);
  margin-top: 72px;
  padding-right: 0;
}

/* Mobile Toggle Button */
.mobile-toggle-view {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.mobile-toggle-view i {
  margin-right: 5px;
}

.mobile-toggle-view:hover {
  background-color: var(--dark-blue);
}


.full-height-section {
    height: calc(100vh - 70px);
    margin-top: 70px;
    padding-top: 0;
    overflow: hidden;
    position: relative;
}

/*==========================================================================
 Search Section Styles [Begin]
========================================================================== */

.search-section-container {
    padding: 19px;
    margin-bottom: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.search-container {
    background-color: #fff;
    padding: 15px 34px;
    margin-bottom: 0;
    box-shadow: none;
    z-index: 10;
    position: relative;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
}

.search-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #e0e0e0;
    font-size: 14px;
    color: #333;
    padding: 10px 15px;
    height: 46px;
    background-color: #f8f9fa;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.search-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0 15px;
    background-color: #64748B;
    border-color: #525c6b;
    height: 46px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}
.search-btn:hover {
    background-color: #525c6b;
    border-color: #64748B;
}

.filter-button {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 500;
    height: 38px;
}

.filter-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.filter-button i {
    margin-right: 6px;
    font-size: 14px;
}
.filter-carousel {
  position: relative;
  overflow: hidden !important; /* Prevent ALL scrolling */
  width: 100%;
}

.filter-scrollable {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden !important; /* Prevent vertical scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 5px;
}

.dropdown-menu {
  position: fixed !important;
  z-index: 9999 !important;
}

.dropdown.show .dropdown-menu {
  position: fixed !important;
  transform: translate3d(0, 100%, 0) !important;
}
.dropdown-item.active {
  background-color: #007bff;
  color: white;
}

.dropdown-item.active:hover {
  background-color: #0056b3;
  color: white;
}
  .filter-scrollable::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .filter-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .filter-nav-prev {
    left: 0;
  }
  
  .filter-nav-next {
    right: 0;
  }
  
  .navbar {
      z-index: 1030; /* Ensure navbar is above other elements */
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
/*==========================================================================
 Search Section Styles [End]
========================================================================== */

/*==========================================================================
 Mobile Search & Filter (lp_listings)
==========================================================================*/
/* Hide on desktop/laptop; show only on mobile */
.mobile-search-container {
  display: none;
}

@media (min-width: 769px) {
  .mobile-search-container {
    display: none !important;
  }
}

.mobile-filter-button {
  background-color: #2e2e2e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.mobile-filter-button i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .search-container .row {
    flex-direction: row !important;
    align-items: center;
  }

  .search-container {
    padding: 10px 15px;
  }

  .mobile-search-container {
    display: flex !important;
    width: 100%;
    align-items: center;
    padding: 8px 12px;
  }

  .col-lg-3.col-md-4,
  .col-lg-9.col-md-8 {
    display: none;
  }

  .mobile-search-input {
    flex: 1;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    height: 46px;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #333;
  }

  .mobile-search-input:focus {
    outline: none;
    border-color: #64748B;
  }

  .listings-column {
    margin-top: 60px !important;
  }

  .offcanvas-backdrop {
    z-index: 1050;
  }

  .offcanvas {
    z-index: 1051;
  }
}

/*==========================================================================
 Map Legend Styles [Begin]
========================================================================== */
/* Map Legend Styles */
.map-legend-toggle {
  position: absolute;
  top: 47px;
  right: 35px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.map-legend-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.map-legend-panel {
  position: absolute;
  top: 37px;
  right: 24px;
  width: 280px;
  background: rgba(45, 55, 72, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: white;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.map-legend-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.map-legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-legend-header h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.map-legend-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.map-legend-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.map-legend-content {
  padding: 16px 20px;
  max-height: 400px;
  overflow-y: auto;
}

.legend-section {
  margin-bottom: 24px;
}

.legend-section h7 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.legend-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Toggle Switch Styles */
.legend-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
}

.legend-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.legend-toggle input:checked + .toggle-slider {
  background-color: #4CAF50;
}

.legend-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Property Value Scale */
.value-scale {
  margin-top: 8px;
}

.scale-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.scale-gradient {
  height: 100%;
  background: linear-gradient(to right, 
      #4ade80, #22d3ee, #3b82f6, #8b5cf6, #f59e0b, #ef4444);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .map-legend-panel {
      width: 260px;
  }
}

/* Legend Info Styles */
.legend-info {
  display: none;
}

.legend-info.active {
  display: block;
}

.legend-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.legend-description {
  margin-top: 12px;
}

.short-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.expandable-content {
  position: relative;
}

.full-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 8px 0 0 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.expand-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.expand-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.expand-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Gradients for each layer */
.property-gradient {
  background: linear-gradient(to right, #4ade80, #22d3ee, #3b82f6, #8b5cf6, #f59e0b, #ef4444);
}

.safety-gradient {
  background: linear-gradient(to right, #10b981, #f59e0b, #ef4444);
}

.market-gradient {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
}

.population-gradient {
  background: linear-gradient(to right, #e5e7eb, #9ca3af, #4b5563, #111827);
}

.hazards-gradient {
  background: linear-gradient(to right, #10b981, #f59e0b, #ef4444, #7f1d1d);
}

/* Scale styles remain the same */
.value-scale {
  margin: 8px 0;
}

.scale-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/*==========================================================================
 Map Legend Styles [End]
========================================================================== */

/*==========================================================================
 Property Card Styles [Begin]
========================================================================== */

.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: none;
    background: transparent;
    transition: transform 0.2s;
    cursor: pointer; /* ADD THIS LINE */
}

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

.property-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 fallback for older browsers */
    overflow: hidden;
}

@supports (aspect-ratio: 4/3) {
    .property-image-container {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 4 / 3;
    }
}

.property-card-carousel-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.property-card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.property-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.property-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.property-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-badge--venda { background-color: #3b82f6; }
.property-badge--aluguel { background-color: #10b981; }
.property-badge--ambos { background-color: #6366f1; }

.property-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.property-badges .property-badge {
    position: static;
}

.property-card .property-details {
    padding: 12px 16px 16px;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.property-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    flex-wrap: wrap;
    gap: 8px;
}

.property-address {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/*==========================================================================
 Property Card Styles [End]
========================================================================== */

/*==========================================================================
 Map Styles [Begin]
========================================================================== */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    border-radius: 0;
}

.map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: #e9ecef;
}

.map-column {
    height: 100%;
    padding: 0;
    position: relative;
}

.mapboxgl-popup {
    max-width: 300px;
    z-index: 100;
}

.mapboxgl-popup-content {
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Property Value: Multi-Transaction Popup ──────────────────────────── */
.pv-mp-wrap.mapboxgl-popup { max-width: 300px; }

.pv-mp-wrap .mapboxgl-popup-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.20);
    min-width: 240px;
}

.pv-mp-wrap .mapboxgl-popup-close-button {
    width: 24px;
    height: 24px;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    color: #555;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    border: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pv-mp-wrap .mapboxgl-popup-close-button:hover {
    background: rgba(240,240,240,0.98);
    color: #111;
}

/* Component root */
.pv-mp {
    --pv-accent: #3096e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #1a1a2e;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Header */
.pv-mp__header {
    display: flex;
    align-items: stretch;
    padding: 13px 36px 11px 0;
    background: #fff;
}
.pv-mp__accent-bar {
    width: 4px;
    background: var(--pv-accent);
    flex-shrink: 0;
    margin-right: 11px;
    border-radius: 0 2px 2px 0;
    opacity: 0.85;
}
.pv-mp__info { flex: 1; min-width: 0; }
.pv-mp__count {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

/* Tags */
.pv-mp__tags { display: flex; flex-direction: column; gap: 3px; }
.pv-mp__tag {
    display: block;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    background: #f2f3f5;
    border-radius: 4px;
    padding: 2px 7px;
}

/* Sort bar */
.pv-mp__sort {
    display: flex;
    border-top: 1px solid #eeeff2;
    border-bottom: 1px solid #eeeff2;
    background: #fafbfc;
}
.pv-mp__sort-btn {
    flex: 1;
    padding: 7px 0;
    border: none;
    background: transparent;
    font-size: 11.5px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0.3px;
}
.pv-mp__sort-btn:first-child { border-right: 1px solid #eeeff2; }
.pv-mp__sort-btn.is-active {
    color: var(--pv-accent);
    background: #fff;
    font-weight: 700;
}
.pv-mp__sort-btn:hover:not(.is-active) { background: #f0f0f0; color: #444; }

/* Transaction list */
.pv-mp__list {
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.pv-mp__list::-webkit-scrollbar { width: 4px; }
.pv-mp__list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.pv-mp__tx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #f4f4f6;
    transition: background 0.1s;
}
.pv-mp__tx:last-child { border-bottom: none; }
.pv-mp__tx:hover { background: #f9f9fb; }

.pv-mp__tx-price {
    font-weight: 700;
    font-size: 13px;
    color: var(--pv-accent);
}
.pv-mp__tx-date {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

.pv-mp__loading, .pv-mp__empty {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    padding: 18px 0;
}

/* Mobile */
@media (max-width: 640px) {
    .pv-mp-wrap.mapboxgl-popup { max-width: min(320px, 90vw); }
    .pv-mp-wrap .mapboxgl-popup-content { min-width: min(280px, 88vw); }
    .pv-mp__list { max-height: 200px; }
    .pv-mp__tx { padding: 10px 14px; }
    .pv-mp__tx-price { font-size: 14px; }
    .pv-mp__tx-date  { font-size: 12px; }
    .pv-mp__tag { max-width: 240px; font-size: 12px; }
    .pv-mp__count { font-size: 14px; }
}

/* ─── Hazard Popup ──────────────────────────────────────────────── */
.hz-pop-wrap.mapboxgl-popup { max-width: 280px; }

.hz-pop-wrap .mapboxgl-popup-content {
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    overflow: hidden;
    min-width: 220px;
}

.hz-pop-wrap .mapboxgl-popup-close-button {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    right: 8px; top: 8px;
    color: #555;
}
.hz-pop-wrap .mapboxgl-popup-close-button:hover { background: rgba(240,240,240,0.98); }

.hz-pop { --hz-accent: #60a5fa; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

.hz-pop__bar { height: 4px; background: var(--hz-accent); }

.hz-pop__body { padding: 12px 14px 14px; }

.hz-pop__header {
    display: flex; align-items: flex-start;
    padding-right: 26px; margin-bottom: 10px;
}
.hz-pop__title { font-size: 13px; font-weight: 700; color: #111; line-height: 1.3; }
.hz-pop__total { font-size: 11px; color: #888; margin-top: 1px; }

.hz-pop__dominant {
    display: inline-block;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    margin-bottom: 10px;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hz-pop__rows { display: flex; flex-direction: column; gap: 7px; }

.hz-pop__row { display: flex; align-items: center; gap: 8px; }

.hz-pop__swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.hz-pop__label {
    font-size: 11px; color: #444;
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hz-pop__cnt { font-size: 11px; font-weight: 700; color: #111; }

@media (max-width: 640px) {
    .hz-pop-wrap.mapboxgl-popup { max-width: min(300px, 88vw); }
    .hz-pop-wrap .mapboxgl-popup-content { min-width: min(260px, 82vw); }
    .hz-pop__title { font-size: 14px; }
    .hz-pop__total { font-size: 12px; }
    .hz-pop__label { font-size: 12px; }
    .hz-pop__cnt   { font-size: 12px; }
}

/* Map cluster styling */
.marker-cluster {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.marker-cluster:hover {
    transform: scale(1.1);
    background-color: rgba(37, 99, 235, 0.9);
}

.cluster-small {
    background-color: rgba(59, 130, 246, 0.8);
    font-size: 13px;
}

.cluster-medium {
    background-color: rgba(37, 99, 235, 0.85);
    font-size: 14px;
}

.cluster-large {
    background-color: rgba(30, 64, 175, 0.9);
    font-size: 15px;
    width: 46px;
    height: 46px;
}

.map-nav {
    display: flex;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

.map-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 0;
    color: #64748B;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.map-nav-btn i {
    font-size: 16px;
    margin-bottom: 4px;
}

.map-nav-btn:hover {
    background-color: #f8fafc;
    color: #334155;
}

.map-nav-btn.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
}

/* Individual button colors and styles */
.map-nav-btn[data-layer="listings"] {
    color: #3b82f6;
}
.map-nav-btn[data-layer="legend"].active {
    background-color: #64748B;
    color: white;
}
.map-nav-btn[data-layer="listings"].active {
    background-color: #3b82f6;
    color: white;
}

.map-nav-btn[data-layer="propertyValues"] {
    color: #10b981;
}
.map-nav-btn[data-layer="propertyValues"].active {
    background-color: #10b981;
    color: white;
}

.map-nav-btn[data-layer="safety"] {
    color: #6366f1;
}
.map-nav-btn[data-layer="safety"].active {
    background-color: #6366f1;
    color: white;
}

.map-nav-btn[data-layer="hazards"] {
    color: #ef4444;
}
.map-nav-btn[data-layer="hazards"].active {
    background-color: #ef4444;
    color: white;
}

.map-nav-btn[data-layer="market"] {
    color: #f59e0b;
}
.map-nav-btn[data-layer="market"].active {
    background-color: #f59e0b;
    color: white;
}

.map-nav-btn[data-layer="population"] {
    color: #8b5cf6;
}
.map-nav-btn[data-layer="population"].active {
    background-color: #8b5cf6;
    color: white;
}

.map-nav-btn[data-layer="transportation"] {
    color: #0ea5e9;
}
.map-nav-btn[data-layer="transportation"].active {
    background-color: #0ea5e9;
    color: white;
}

/* Gated map nav (guest): gray + tooltip "Unlock by creating an account" */
.map-nav-btn.map-nav-btn-gated {
    color: #94a3b8 !important;
    opacity: 0.9;
    cursor: pointer;
}
.map-nav-btn.map-nav-btn-gated:hover {
    background-color: #f1f5f9;
    color: #94a3b8 !important;
}
.map-nav-btn.map-nav-btn-gated.active,
.map-nav-btn.map-nav-btn-gated[data-layer="propertyValues"].active,
.map-nav-btn.map-nav-btn-gated[data-layer="safety"].active,
.map-nav-btn.map-nav-btn-gated[data-layer="hazards"].active,
.map-nav-btn.map-nav-btn-gated[data-layer="market"].active,
.map-nav-btn.map-nav-btn-gated[data-layer="population"].active,
.map-nav-btn.map-nav-btn-gated[data-layer="transportation"].active {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Bootstrap tooltip for gated map nav: top placement, high visibility (like new_search_result coming-soon) */
.map-nav-gated-tooltip .tooltip-inner {
    font-size: 0.95em;
    font-weight: 600;
    padding: 10px 14px;
    background-color: #334155;
    color: #fff;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.map-nav-gated-tooltip .tooltip-arrow::before {
    border-top-color: #334155;
}

.map-search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
}

.map-attribution {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
    background-color: rgba(255,255,255,0.7);
    padding: 2px 5px;
    font-size: 10px;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    font-size: 14px;
    z-index: 5;
}

.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 30px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #f8f9fa !important;
    font-family: "Inter", "Helvetica Neue", "Neue Haas Grotesk", Arial, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif !important;
}

.mapboxgl-ctrl-geocoder--input {
    height: 46px !important;
    padding: 10px 15px !important;
    padding-right: 35px !important; /* Add space for the clear button */
    font-size: 14px !important;
    color: #333 !important;
    border-radius: 30px !important;
    border: none !important;
    background-color: transparent !important;
}

.mapboxgl-ctrl-geocoder--input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mapboxgl-ctrl-geocoder--icon-search {
    display: none !important;
}

/* Customize clear button */
.mapboxgl-ctrl-geocoder--button {
    position: absolute !important;
    right: 14PX !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

.mapboxgl-ctrl-geocoder--icon-close {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    fill: #666 !important;
}

.mapboxgl-ctrl-geocoder--icon-close:hover {
    fill: #333 !important;
}

.mapboxgl-ctrl-geocoder--suggestion {
    padding: 8px 15px !important;
    font-size: 14px !important;
}

/* Hide map loading text */
.map-loading {
    display: none !important;
}
/* Pulsating marker styles */
.mapboxgl-marker {
    z-index: 1000;
}

/*==========================================================================
 Map Styles [End]
========================================================================== */

/*==========================================================================
 Listings Column Styles [Begin]
========================================================================== */

.listings-column {
    height: 105%;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    max-height: calc(100vh - 60px);
}

.listings-scroll-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-right: 5px;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.listings-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 26px 20px 15px;
}


.filter-dropdown {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    margin-right: 10px;
    background-color: white;
}

.listings-count {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.sort-container {
    display: flex;
    align-items: center;
}

.sort-btn {
    border: 1px solid #d0d0d0;
    color: #555;
    font-size: 13px;
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.sort-btn i {
    margin-right: 5px;
    font-size: 14px;
}

.sort-btn:hover {
    border-color: #aaa;
    background-color: rgba(0,0,0,0.02);
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background-color: rgba(0,0,0,0.3);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.heart-icon:hover {
    background-color: rgba(255,255,255,0.3);
    color: #ff6b6b;
}

.property-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid white;
}

.property-indicator:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}



.area-search-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}



.load-more-btn {
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin: 25px auto;
    display: block;
    width: auto;
    min-width: 180px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.load-more-btn:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}





/* Add this to ensure the row doesn't overflow */
.listings-scroll-container .row {
    margin-right: 0;
    margin-left: 0;
}

/* Make sure col-md-6 doesn't cause overflow */
.listings-scroll-container .col-md-6 {
    padding-right: 10px;
    padding-left: 10px;
}

/* Add styles for property tags */
.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.property-tag {
    background-color: #f0f4f8;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.property-tag i {
    margin-right: 4px;
    font-size: 10px;
}

/* Up-sell / address report cards (listing details view) */
.up-sell-address-report-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.up-sell-address-report-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 20px;
}

.up-sell-address-report-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.up-sell-address-report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.up-sell-address-report-card.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.up-sell-address-report-card.secondary {
    background: linear-gradient(135deg, #f0f4f8 0%, #e5e7eb 100%);
}

.up-sell-address-report-card.accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.up-sell-address-report-card.large {
    grid-column: span 6;
    grid-row: span 2;
}

.up-sell-address-report-card.medium {
    grid-column: span 4;
    grid-row: span 1;
}

.up-sell-address-report-card.small {
    grid-column: span 3;
    grid-row: span 1;
}

.up-sell-address-report-card.tall {
    grid-column: span 3;
    grid-row: span 2;
}

.up-sell-address-report-card.wide {
    grid-column: span 6;
    grid-row: span 1;
}

.up-sell-address-report-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.2);
    border-radius: 12px;
}

.up-sell-address-report-card.primary .up-sell-address-report-card-icon,
.up-sell-address-report-card.accent .up-sell-address-report-card-icon {
    background-color: rgba(255,255,255,0.2);
}

.up-sell-address-report-card.secondary .up-sell-address-report-card-icon {
    background-color: rgba(59,130,246,0.1);
}

.up-sell-address-report-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.up-sell-address-report-card-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.up-sell-address-report-card-action {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.up-sell-address-report-card-action i {
    margin-left: 6px;
    transition: transform 0.2s;
}

.up-sell-address-report-card:hover .up-sell-address-report-card-action i {
    transform: translateX(4px);
}

.up-sell-address-report-card-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-10deg);
}





/* Listing details footer */

.listing-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-source-logo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.listing-footer-text {
    line-height: 1;
}

.listing-details-footer {
    background-color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
}

.listing-details-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.listing-details-footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.listing-details-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    color: black;
}

.listing-details-footer-links li {
    margin-bottom: 12px;
}

.listing-details-footer-links a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.listing-details-footer-links a:hover {
    color: #3b82f6;
}

.listing-details-footer-brand-container {
    background-color: #525c6b;
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    min-height: 280px;
}

.listing-details-footer-brand {
    color: white;
}

.listing-details-footer-logo {
    height: 30px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.listing-details-footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.listing-details-footer-more-link {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.listing-details-footer-more-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.listing-details-footer-more-link:hover i {
    transform: translateX(3px);
}

.listing-details-footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.listing-details-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.listing-details-footer-legal-link {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.listing-details-footer-legal-link i {
    font-size: 12px;
    margin-left: 3px;
}

.listing-details-footer-company {
    color: #777;
    font-size: 12px;
}

.listing-details-footer-company p {
    margin-bottom: 5px;
}

.listing-details-footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.listing-details-footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s;
}

.listing-details-footer-social-icon:hover {
    background-color: #3b82f6;
    color: white;
}

.listing-details-footer-apps {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.listing-details-footer .app-link img {
    height: 40px;
    border-radius: 6px;
}

/* Listing details footer: responsive 1x4 → 2x2 → list (4 stacked) */

/* Medium (tablet): 2x2 */
@media (min-width: 768px) and (max-width: 991px) {
    .listing-details-footer .listing-details-footer-brand-container {
        min-height: auto;
    }
}

/* Small (list format): 4 stacked */
@media (max-width: 767px) {
    .listing-details-footer {
        padding: 40px 15px 24px;
    }
    .listing-details-footer-content {
        padding: 0;
    }
    .listing-details-footer-row > [class*="col-"]:not(:first-child) {
        border-top: 1px solid #e5e7eb;
        padding-top: 24px;
        margin-top: 4px;
    }
    .listing-details-footer-brand-container {
        min-height: auto;
        padding: 20px;
    }
    .listing-details-footer-bottom {
        margin-top: 32px;
        padding-top: 24px;
    }
    .listing-details-footer-bottom .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .listing-details-footer-bottom .col-lg-8,
    .listing-details-footer-bottom .col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .listing-details-footer-social {
        justify-content: flex-start;
    }
}





/* Pulse animation for skeletons */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Highlighted property card */
.property-card.highlighted {
    box-shadow: 0 0 0 2px #3b82f6, 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    transition: all 0.2s ease;
}



/* Property indicator style */
.property-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid white;
}

.property-indicator:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}



.reset-filters-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #64748B;
    margin-left: auto;
}

.reset-filters-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.reset-filters-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* Add styles for interactive info cards */
.info-card-interactive {
    background: linear-gradient(135deg, #64748b08 0%, #ffffff26 100%);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    cursor: pointer;
    height: 90%;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    margin: 10px 0;
}

.info-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card-interactive:hover::before {
    opacity: 1;
}

.info-card-interactive .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.info-card-interactive:hover .icon-container {
    transform: rotateY(180deg);
}

.info-card-interactive .icon-container i {
    font-size: 32px;
    color: #1a1a1a;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.info-card-interactive .icon-container::after {
    content: '→';
    position: absolute;
    font-size: 32px;
    color: #1a1a1a;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.info-card-interactive .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.info-card-interactive .card-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.info-card-interactive:hover .card-title::after {
    width: 40%;
}

.info-card-interactive .card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
}

.info-card-interactive .card-action {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: auto;
    padding-top: 12px;
}

.info-card-interactive .card-action::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1a1a1a;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.info-card-interactive:hover .card-action::before {
    transform: scaleX(1);
    transform-origin: left;
}

.info-card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.info-card-interactive:hover .card-description {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.info-card-interactive:hover .card-action {
    opacity: 1;
    transform: translateY(0);
}

.info-card-interactive .sparkles {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.info-card-interactive .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    animation: sparkle 1.5s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
}

/* Card variations */
.info-card-interactive.primary {
    background: linear-gradient(135deg, #64748b08  0%, #ffffff26  100%);
}

.info-card-interactive.primary .icon-container {
    background-color: rgba(255, 255, 255, 0.2);
}

.info-card-interactive.primary .icon-container i,
.info-card-interactive.primary .card-title,
.info-card-interactive.primary .card-description {
    color: black;
}

.info-card-interactive.primary .card-action {
    color: black;
}

.info-card-interactive.accent {
    background: linear-gradient(135deg, #64748b08 0%, #ffffff26 100%);
}

.info-card-interactive.accent .icon-container {
    background-color: rgba(255, 255, 255, 0.2);
}

.info-card-interactive.accent .icon-container i,
.info-card-interactive.accent .card-title,
.info-card-interactive.accent .card-description {
    color: black;
}

.info-card-interactive.accent .card-action {
    color: black;
}

/* Hover states and animations */
.info-card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.info-card-interactive:hover .icon-container {
    transform: scale(0.85);
}

.info-card-interactive:hover .card-description {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 16px;
}

.info-card-interactive:hover .card-action {
    opacity: 1;
    transform: translateY(0);
}

/* Expanding card animation */
.info-card-interactive.expanded {
    grid-column: span 2;
    padding: 32px;
}

.info-card-interactive.expanded .card-description {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 24px;
}

.info-card-interactive.expanded .card-action {
    opacity: 1;
    transform: translateY(0);
}

/* Card ripple effect */
.info-card-interactive .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}



.property-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.property-gallery .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}


  
  /* Fix for the nav-tabs-wrapper scrollbar */
  .nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  /* Improve scroll behavior */
  .nav-tabs-wrapper {
    -webkit-overflow-scrolling: touch;
    padding: 0 10px !important;
    margin: 0 -10px !important;
  } 
.property-main-info .property-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.property-main-info .property-address {
    font-size: 16px;
    color: #666;
}

.property-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.property-stats .stat-item i {
    font-size: 18px;
    color: #3b82f6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.feature-item i {
    color: #3b82f6;
}

.property-description {
    line-height: 1.6;
    color: #444;
}

.additional-info-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-item-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-item-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}



/* Add these styles for the property details view */
.property-details-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 984;
    padding: 0 20px 20px 20px;
    height: 100%;
    overflow-y: auto;
}

.property-details-view.active {
    display: block;
}

/* When property details view is active: hide search section and extend listings + map to navbar */
.full-height-section.property-details-active .search-section-container {
    display: none !important;
}

@media (min-width: 992px) {
    /* Match body.has-v2-header padding-top (71px in lp_listings); section margin 0 so content starts at 71px */
    .full-height-section.property-details-active {
        height: calc(100vh - 71px) !important;
    }
    .full-height-section.property-details-active .listings-main-container {
        margin-top: 0 !important;
        height: 100% !important;
    }
    .full-height-section.property-details-active .map-column {
        top: 71px !important;
        height: calc(100vh - 71px) !important;
    }
    /* Remove top gap so listings column content starts flush under navbar */
    .full-height-section.property-details-active .property-details-header {
        margin-top: 16px !important;
    }
    .full-height-section.property-details-active .listings-column {
        padding-top: 0 !important;
    }
    .full-height-section.property-details-active .property-details-view {
        padding-top: 0 !important;
    }
}

/* Small desktop / 1280x720: pull listing details up to remove gap (body padding 71px leaves visible gap) */
@media (min-width: 992px) and (max-height: 800px) {
    .full-height-section.property-details-active {
        margin-top: -8px !important;
        height: calc(100vh - 63px) !important;
    }
    .full-height-section.property-details-active .map-column {
        top: 63px !important;
        height: calc(100vh - 63px) !important;
    }
}

.listings-scroll-container {
    position: relative;
}

.listings-scroll-container .row {
    transition: all 0.3s ease;
}

.listings-scroll-container .row.hidden {
    display: none;
}

/* Add these styles for the property details header */
.property-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 16px;
}

.property-details-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.property-details-breadcrumb i {
    font-size: 16px;
}

.property-details-breadcrumb .separator {
    color: #94a3b8;
    margin: 0 4px;
}

.property-details-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #64748b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-details-close:hover {
    background: #ffffff;
    color: #64748b;
}


.lottie-container {
    width: 140px;
    height: 140px;
    margin: -10px 0 8px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}


.pulsating-marker {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    cursor: pointer;
}

.pulsating-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulsating-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: rgb(59, 130, 246);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Pulsating dot styles */
.pulsating-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(59, 130, 246);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.pulsating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.6);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.33);
        opacity: 0.8;
    }
    80%, 100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}


.financing-calculator {
  font-family: inherit;
  margin: 20px 0;
  border-radius: 8px;
}

.calculator-form {
  padding: 20px;
}

.calculator-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.calculator-field {
  flex: 1;
  min-width: 250px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: #64748b;
  outline: none;
}

.input-with-prefix, .input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 10px;
  color: #666;
}

.input-with-prefix .form-control {
  padding-left: 35px;
}

.input-suffix {
  position: absolute;
  right: 10px;
  color: #666;
}

.input-with-suffix .form-control {
  padding-right: 35px;
}

.slider-container {
  margin-top: 15px;
}

.slider {
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #64748b;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #64748b;
  cursor: pointer;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

.rate-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  background: #f5f5f5;
  transition: all 0.3s;
}

.toggle-option.active {
  background: #64748b;
  color: white;
}

.toggle-option input {
  display: none;
}

.term-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.term-button {
  flex: 1;
  padding: 10px 5px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.term-button.active {
  background: #64748b;
  color: white;
  border-color: #64748b;
}

.calculator-actions {
  text-align: center;
  margin-top: 30px;
}

.calculate-btn {
  background: #64748b;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.calculate-btn:hover {
  background: #444d5a;
}

.personal-info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.financing-results {
  padding: 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h3 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.back-to-form {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.results-content {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item.highlight {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  border: none;
}

.result-label {
  font-weight: 500;
  color: #666;
}

.result-value {
  font-weight: 600;
  color: #333;
}

.highlight .result-value {
  color: #64748b;
  font-size: 18px;
}

.results-cta {
  text-align: center;
  margin-top: 25px;
}

.contact-bank-btn {
  background: #64748b;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-bank-btn:hover {
  background: #d01543;
}


.input-container {
  position: relative;
}

.term-input-container {
  position: relative;
}

.term-controls {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.term-control {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 5px;
  color: #666;
}

.term-control:hover {
  color: #64748b;
}

.term-control-divider {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 5px;
}
.button-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.button-text {
  display: inline-block;
}

.price-analysis {
  font-family: inherit;
  margin: 30px 0;
  color: #333;
}

.price-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 25px 0;
}

/* Price Range Visualization */
.price-range-container {
  margin-bottom: 25px;
  overflow: visible;
}

.rental-price-range-container .range-marker {
  background: #2563eb;
}

.price-range-details {
  padding: 10px 0;
}

.price-position-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.price-percentile-value {
  font-weight: 700;
  font-size: 20px;
  color: #64748b;
}

.range-bar {
  height: 12px;
  background: #e6e6e6;
  border-radius: 6px;
  position: relative;
  margin-bottom: 30px;
  overflow: visible;
}

.range-fill {
  height: 12px;
  background: linear-gradient(169deg, #64748b 0%, #e2ecfa  100%);
  border-radius: 6px;
}

.range-marker {
  width: 22px;
  height: 22px;
  background: #64748b;
  border: 3px solid white;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-indicators {
  position: absolute;
  top: 12px;
  width: 100%;
  height: 30px;
}

.price-indicator {
  position: absolute;
  transform: translateX(-50%);
}

.indicator-line {
  width: 2px;
  height: 10px;
  background: #999;
  margin: 0 auto;
}

.indicator-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.range-min, .range-max {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.property-price {
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.property-price-value {
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
}

/* Stats Grid */
.price-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.stat-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card-value {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.stat-comparison {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.stat-icon {
  font-size: 16px;
  font-weight: bold;
}

.stat-icon.better {
  color: #00B864;
}

.stat-icon.worse {
  color: #64748b;
}

.stat-icon.neutral {
  color: #F9A825;
}

.stat-diff {
  font-weight: 600;
}

.market-summary {
  background: #64748b08;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 15px;
  border-left: 4px solid #64748b;
}

.summary-icon {
  font-size: 24px;
}

.summary-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.summary-content p {
  font-size: 14px;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

/* Competitive Analysis section */
.competitive-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 15px;
  margin-bottom: 25px;
}

.metric-row {
  display: flex;
  gap: 15px;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.metric-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-details {
  flex: 1;
  text-align: left;
}

.metric-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  text-align: left;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  text-align: left;
}

.metric-description {
  font-size: 13px;
  color: #666;
  text-align: left;
}

/* Special styling for assessment card */
.metric-row.assessment-card .metric-value {
  color: #64748b;
}

.comparables-summary {
  margin-bottom: 25px;
}

.comparables-summary h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.comparables-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #64748b;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 10px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f9f9f9;
  font-size: 13px;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}

.table-row:nth-child(odd) {
  background: #f5f5f5;
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  padding: 0 5px;
}

.recommendation-box {
  background: #64748b08;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #64748b;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.recommendation-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.recommendation-content {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.recommendation-content p {
  margin: 0 0 10px 0;
}

.recommendation-content ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.recommendation-content li {
  margin-bottom: 5px;
}


/*==========================================================================
 Neighborhood Safety Styles [BEGIN]
========================================================================== */

.neighborhood-safety-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.neighborhood-safety {
  padding: 20px 0;
}

.safety-summary {
  margin-bottom: 32px;
}

.safety-score-card {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.safety-score-card.overall {
  background-color: #64748b08;
  border-left: 4px solid #64748b;
  margin-bottom: 24px;
}

.safety-score-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #64748b;
  color: white;
  margin-right: 16px;
  box-shadow: 0 4px 8px rgba(0,120,215,0.2);
}

.safety-score-bubble.crime {
  background-color: #46dcaa;
  box-shadow: 0 4px 8px rgba(0,184,100,0.2);
}

.safety-score-bubble.events {
  background-color: #8dbaf9;
  box-shadow: 0 4px 8px rgba(137,84,212,0.2);
}

.safety-score-bubble.police {
  background-color: #ff9169;
  box-shadow: 0 4px 8px rgba(255,123,0,0.2);
}

.safety-score-bubble .score {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.safety-score-bubble .max {
  font-size: 0.75rem;
  opacity: 0.8;
}

.safety-label {
  flex: 1;
}

.safety-label h3 {
  font-size: 1.25rem;
  margin: 0 0 4px 0;
  color: #333;
}

.safety-label h4 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: #333;
}

.safety-label p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.rank-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.safety-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.safety-details .safety-score-card {
  flex: 1;
  min-width: 200px;
}

.safety-comparison {
  margin-bottom: 32px;
  padding: 20px;
  border-radius: 12px;
}

.safety-comparison h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #333;
}

.comparison-chart {
  margin-top: 16px;
}

.neighborhood-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.bar-label {
  width: 120px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
  padding-right: 12px;
}

.bar-container {
  flex: 1;
  height: 24px;
  background-color: #E8E8E8;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, #64748b, #e2ecfa);
  border-radius: 12px;
  position: relative;
}

.bar-score {
  width: 40px;
  padding-left: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}

.safety-insights {
  padding: 20px;
  border-radius: 12px;
  background-color: #64748b08;
  border-left: 4px solid #64748b;
}

.safety-insights h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #333;
}

.insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insights-list li {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.insights-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.insight-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 12px;
  margin-top: 2px;
}

.insight-icon.positive {
  background-color: #46dcaa;
  color: white;
}

.insight-icon.tips {
  background-color: #FF7B00;
  color: white;
}

.insight-text {
  flex: 1;
}

.insight-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/*==========================================================================
 Neighborhood Safety Styles [END]
========================================================================== */






/*==========================================================================
 Comparable Properties Carousel Styles [Begin]
========================================================================== */

.comparable-properties-carousel {
    position: relative;
    margin: 30px 0 60px;
    overflow: visible; /* Changed from hidden to visible */
}

.comparable-properties-carousel-nav {
    position: absolute;
    bottom: 40px; /* Adjusted to be more visible */
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 100; /* Increased z-index */
    background-color: transparent;
}

.comparable-properties-carousel-prev, .comparable-properties-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.comparable-properties-carousel-prev:hover, .comparable-properties-carousel-next:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comparable-properties-carousel-prev {
    margin-left: 0;
}

.comparable-properties-carousel-next {
    margin-right: 0;
}

.comparable-properties-wrapper {
    overflow: hidden;
    padding: 10px 5px;
}

.comparable-properties-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 5px 0;
}

.comparable-property-card {
    min-width: 280px;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.comparable-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Card Header - similar to the reference image */
.comparable-card-header {
    background: #f8fafc;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.comparable-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.comparable-card-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.property-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-badge-inline {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.price-badge-inline.higher {
    background: #ef4444;
}

.price-badge-inline.lower {
    background: #22c55e;
}

.price-badge-inline.equal {
    background: #3b82f6;
}

.comparable-property-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

/* Amenities carousel + cards (view B) - same pattern as comparable-property-card */
.amenities-carousel-wrapper {
    position: relative;
}
.amenities-properties-wrapper {
    overflow: hidden;
    padding: 10px 5px;
}
.amenities-properties-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 5px 0;
}
.amenity-card {
    min-width: 260px;
    max-width: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}
.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.amenity-card-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.amenity-card-body {
    padding: 16px;
}
.amenity-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
}
.amenity-card-description {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.amenity-card-count {
    opacity: 0.9;
}

/* Replace placeholder image with clean gradient */
.comparable-property-image-placeholder {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Simplified compact badges */
.similarity-badge-compact {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-badge-compact {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.price-badge-compact.higher {
    background: #ef4444;
}

.price-badge-compact.lower {
    background: #22c55e;
}

.price-badge-compact.equal {
    background: #3b82f6;
}

.comparable-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comparable-property-card:hover .comparable-property-image img {
    transform: scale(1.05);
}

.comparable-property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.comparable-property-badge.higher {
    background: #007400;
}

.comparable-property-badge.lower {
    background: #ef4444;
}

.comparable-property-badge.equal {
    background: #07347c;
}

/* Old image styles - removed */

/* Sample size indicator */
.sample-size-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 16px;
}

.sample-size-indicator i {
    color: #3b82f6;
}

.sample-size-indicator strong {
    font-weight: 700;
}

.confidence-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 4px;
}

.confidence-badge.confidence-alta {
    background: #dcfce7;
    color: #16a34a;
}

.confidence-badge.confidence-média {
    background: #fef3c7;
    color: #d97706;
}

.confidence-badge.confidence-baixa {
    background: #fee2e2;
    color: #dc2626;
}

/* Quartile markers on price range */
.price-range-container {
    position: relative;
}

.quartile-marker {
    cursor: help;
    user-select: none;
}

.quartile-marker:hover > div:first-child {
    background: #3b82f6;
    width: 3px;
}

.quartile-marker:hover > div:last-child {
    color: #1e40af;
    font-weight: 600;
}

/* Median marker styling - more prominent */
.median-marker > div:first-child {
    width: 2px;
    background: #3b82f6 !important;
}

.median-marker:hover > div:first-child {
    width: 4px;
    background: #2563eb !important;
}

/* Percentile indicator */
.percentile-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.percentile-indicator i {
    color: #3b82f6;
    font-size: 14px;
}

.percentile-indicator strong {
    color: #1e40af;
    font-weight: 600;
}

.property-details {
    padding: 16px;
}

.property-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.property-address {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.property-specs i {
    color: #3b82f6;
    margin-right: 4px;
}

.property-metrics {
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.metric-label {
    color: #64748b;
}

.metric-value {
    font-weight: 600;
}

.metric-value.higher {
    color: #22c55e;
}

.metric-value.lower {
    color: #ef4444;
}

.metric-value.equal {
    color: #3b82f6;
}

/*==========================================================================
 Comparable Properties Carousel Styles [END]
========================================================================== */



/*==========================================================================
 ROI Analysis Styles [Begin]
========================================================================== */

.roi-analysis {
  margin: 20px 0;
  font-family: inherit;
}

.roi-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.roi-summary-card {
  border-radius: 12px;
  padding: 20px;
  width: 330px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.roi-summary-card:hover {
  transform: translateY(-5px);
}

.roi-summary-card.property {
  border-top: 4px solid #64748b;
}

.roi-summary-card.fixed-income {
  border-top: 4px solid #8dbaf9;
}

.roi-card-icon {
  margin-bottom: 10px;
}

.roi-summary-card h3 {
  font-size: 18px;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.roi-date, .roi-value {
  font-size: 14px;
  color: #555;
  margin: 5px 0;
}

.roi-result {
  margin-top: 20px;
}

.roi-percentage {
  font-size: 28px;
  font-weight: 700;
  display: block;
}

.property .roi-percentage {
  color: #64748b;
}

.fixed-income .roi-percentage {
  color: #8dbaf9;
}

.roi-period {
  font-size: 14px;
  color: #777;
}

.roi-vs {
  font-size: 24px;
  font-weight: bold;
  color: #888;
}

.roi-details {
  border-radius: 12px;
  padding: 20px;
}

.roi-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: left;
}

.roi-tab {
  padding: 10px 15px;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.roi-tab.active {
  background: #64748b;
  color: white;
  font-weight: 500;
}

.roi-tab:hover:not(.active) {
  background: #e0e0e0;
}

.roi-comparison-chart {
  margin: 20px 0;
}

.chart-container {
  height: 400px;
  position: relative;
}

.roi-notes {
  margin-top: 60px;
  padding: 15px;
  background: #64748b08;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid #64748b;
}

.roi-notes ul {
  margin: 10px 0;
  padding-left: 20px;
}

.roi-notes li {
  margin-bottom: 5px;
  color: #555;
}

/*==========================================================================
 ROI Analysis Styles [END]
========================================================================== */





.market-analysis {
  font-family: inherit;
  margin: 20px 0;
  border-radius: 8px;
  padding: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
}

.stats-section, .roi-section {
  margin-bottom: 30px;
}

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

/* Tablet: 2 cards in first row, 1 in second */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid .stat-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Mobile: All cards stacked */
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid .stat-card:nth-child(3) {
    grid-column: auto;
  }
}

.stat-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card.highlight {
  border: 1px solid #64748b66;
}

.stat-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.highlight .stat-card-value {
  color: #64748b;
}

.stat-card-label {
  font-size: 14px;
  color: #666;
}

.stats-note {
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

.occupancy-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 77%;
}
.rent-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 11%;
}

/* Add a container for the selectors */
.selectors-container {
  display: flex;
  justify-content: space-between;
  width: 100%; 
  margin-bottom: 20px;
}

.selector-label {
  font-weight: 500;
  margin-right: 15px;
  min-width: 120px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.occupancy-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.occupancy-btn:hover {
  background: #f0f0f0;
}

.occupancy-btn.active {
  background: #64748b;
  color: white;
  border-color: #64748b;
}
.rent-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.rent-btn:hover {
  background: #f0f0f0;
}

.rent-btn.active {
  background: #64748b;
  color: white;
  border-color: #64748b;
}

.roi-overview {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.roi-card {
  flex: 1;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.roi-card.highlight {
  border: 1px solid #64748b66;
}

.roi-card-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.roi-card-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.highlight .roi-card-value {
  color: #64748b;
}

.roi-card-details {
  font-size: 12px;
  color: #666;
}

.chart-container {
  height: 250px;
  margin-top: 10px;
}



.building-transactions {
  margin: 20px 0;
}

.transactions-subtitle {
  color: #666;
  margin-bottom: 20px;
}

.transactions-table {
  overflow-x: auto;
}

.transactions-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.transactions-table th {
  background-color: #64748b;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.transactions-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.transactions-table tr:hover {
  background-color: #f9f9f9;
}

.transactions-note {
  font-size: 12px;
  color: #777;
  font-style: italic;
  margin-top: 10px;
}

.no-transactions, .error-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error-message {
  color: #d32f2f;
}

/*==========================================================================
  Life Controls  [Begin]
========================================================================== */

.life-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    justify-content: space-between;
    margin-bottom: 24px;
}
.search-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  border-radius: 100px;
  padding: 0 8px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

/* Mapbox Geocoder Dropdown styling for Life section */
.search-wrapper .mapboxgl-ctrl-geocoder {
  width: 340px !important;
  max-width: none !important;
}

.search-wrapper .mapboxgl-ctrl-geocoder .suggestions {
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
  position: absolute;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.search-wrapper .mapboxgl-ctrl-geocoder .suggestions > .active > a,
.search-wrapper .mapboxgl-ctrl-geocoder .suggestions > li > a:hover {
  background-color: #EFF6FF;
  color: #3B82F6;
}

.life-search-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    width: 300px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a1a;
}

.life-search-input:focus {
    outline: none;
}

.life-search-input::placeholder {
    color: #94A3B8;
}

.search-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #3B82F6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.search-action-btn:hover {
    background: #EFF6FF;
}
/* Search [end] */
/* Transport Selector [begin]*/
.transport-selector {
    display: flex;
    gap: 8px;
}

.transport-option {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #64748B;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transport-option:hover {
    color: #3B82F6;
    transform: translateY(-2px);
}

.transport-option.selected {
    background: #3B82F6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
/* Transport Selector [end]*/

/* Traffic toggle – Apple-style switch (car only) [begin]*/
.life-traffic-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.life-traffic-label {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

/* Apple-style switch track + thumb */
.apple-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
    cursor: pointer;
}

.apple-switch-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.apple-switch-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 31px;
    background: #e9e9ea;
    transition: background-color 0.25s ease;
    pointer-events: none;
}

.apple-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.apple-switch-input:checked + .apple-switch-track {
    background-color: #ff3b30;
}

.apple-switch-input:checked + .apple-switch-track::after {
    transform: translateX(20px);
}
/* Traffic toggle [end]*/

/* Explainer Card – minimal like safety-score-card [begin]*/
.life-explainer-card {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
}

.explainer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.explainer-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.life-lottie-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Explainer Card [end]*/

/* Life cards – minimal like safety-score-card [begin]*/
.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.life-cards .life-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 0;
    position: relative;
}

.life-card-summary {
    background-color: #64748b08;
    border-left: 4px solid #64748b;
}

.life-time-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #64748b;
    color: #fff;
    margin-right: 16px;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

.life-card-summary .life-time-bubble {
    background-color: #64748b;
}

.life-time-bubble.life-time-route {
    background-color: #3B82F6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.life-time-value {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.life-time-unit {
    font-size: 0.7rem;
    opacity: 0.9;
}

.life-label {
    flex: 1;
    min-width: 0;
}

.life-label-title {
    font-size: 1rem;
    margin: 0 0 2px 0;
    color: #333;
}

.life-label-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.life-label-address {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.life-label-mode {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    color: #64748b;
    font-size: 1rem;
}

.life-label-mode ion-icon {
    font-size: 1.1rem;
}

.life-card-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.life-card-remove:hover {
    background: #FEE2E2;
    color: #dc2626;
}

/* Legacy location-card names (if still used elsewhere) */
.location-card { margin-bottom: 0; }
.location-name { font-size: 1rem; color: #333; }
.location-remove { width: 32px; height: 32px; border: none; background: transparent; color: #94A3B8; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; position: absolute; top: 16px; right: 16px; }
.location-remove:hover { background: #FEE2E2; color: #dc2626; }
.location-details { display: flex; align-items: center; gap: 12px; }
.travel-time { font-size: 1.25rem; font-weight: 600; color: #3B82F6; }
.travel-mode { color: #64748B; font-size: 0.85rem; }
.location-address { font-size: 0.9rem; color: #666; }
.summary-card { background: #64748b08; border-left: 4px solid #64748b; border-radius: 12px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.summary-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.summary-stat { flex: 1; min-width: 120px; }
.stat-label { font-size: 0.85rem; color: #64748b; margin-bottom: 4px; }
.stat-value { font-size: 1.25rem; font-weight: 600; color: #3B82F6; }
/* Life cards [end]*/

/* Clear All Button [begin]*/
.clear-all-wrapper {
    margin-top: 36px;
    text-align: center;
}

.clear-all-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    background: #fff;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.clear-all-btn:hover {
    color: #dc2626;
    background: #FEF2F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}
/* Clear All Button [end]*/
/*==========================================================================
  Life Controls  [End]
========================================================================== */








/*==========================================================================
 traffic Analysis [BEGIN]
========================================================================== */
.traffic-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.traffic-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.traffic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.traffic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.traffic-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.icon {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Grid positioning */
.traffic-quality {
  grid-column: span 5;
}

.time-distribution {
  grid-column: span 8;
}

.top-streets {
  grid-column: span 6;
}

.time-analysis {
  grid-column: span 7;
}

.full-width {
  grid-column: span 12;
}

.quality-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.quality-scale {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.quality-text {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  font-weight: 500;
}

.quality-categories {
  display: flex;
  margin-top: 1.5rem;
  background-color: var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.quality-category {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quality-category.active {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.quality-category.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary);
}

.quality-description {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.time-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  margin-top: 1rem;
}

.time-bar {
  width: 80px;
  background-color: var(--light-blue);
  position: relative;
  border-radius: 8px 8px 0 0;
  transition: height 0.5s ease-in-out;
  cursor: pointer;
}

.time-bar:hover {
  opacity: 0.9;
}

.time-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  border-radius: 8px 8px 0 0;
  transition: height 0.5s;
}

.time-bar.peak .time-bar-fill {
  background-color: var(--secondary);
}

.time-label {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.time-value {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.time-bar:hover .time-value {
  opacity: 1;
}

/* Top Streets traffic-card */
.traffic-street-list {
  margin-top: 1rem;
}

.traffic-street-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray);
}

.traffic-street-item:last-child {
  border-bottom: none;
}

.traffic-street-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.traffic-street-traffic {
  background-color: var(--light-blue);
  height: 8px;
  border-radius: 4px;
  width: 100%;
  margin: 0 1rem;
  position: relative;
}

.traffic-street-traffic-fill {
  background-color: var(--primary);
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s;
}

.traffic-street-value {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}



.time-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.time-period-selector {
  display: flex;
  background-color: var(--gray);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.time-period-btn {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  background: transparent;
}

.time-period-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.time-traffic-metric {
  text-align: center;
  background-color: var(--light-blue);
  border-radius: 10px;
  padding: 1rem;
  flex: 1;
  margin: 0 0.5rem;
  transition: transform 0.2s;
}

.time-traffic-metric:hover {
  transform: translateY(-5px);
}

.traffic-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.traffic-metric-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Summary traffic-card */
.traffic-summary-metrics {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.summary-traffic-metric {
  flex: 1;
  min-width: 200px;
  text-align: center;
  margin: 1rem;
  padding: 1.5rem;
  background-color: var(--light-blue);
  border-radius: 12px;
  transition: transform 0.2s;
}

.summary-traffic-metric:hover {
  transform: translateY(-5px);
}

.summary-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 1rem;
  color: var(--text-light);
}

.summary-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}



/*==========================================================================
 traffic Analysis [END]
========================================================================== */

/*==========================================================================
  AI image analysis  [Begin]
========================================================================== */
.IMAI-dashboard {
  width: 100%;
  max-width: 1200px;
  height: 100%;

  display: flex;
  overflow: hidden;
  position: relative;
}

.IMAI-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.IMAI-left-panel {
  width: 30%;
  height: 100%;
  padding: 25px;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.IMAI-left-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  opacity: 0.6;
}

.IMAI-brand {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.IMAI-brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.IMAI-brand-text h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.IMAI-brand-text p {
  font-size: 12px;
  opacity: 0.7;
}

.IMAI-property-overview {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.IMAI-property-overview h3 {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.IMAI-property-overview h3 svg {
  margin-right: 10px;
}

.IMAI-overview-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.IMAI-overview-item:last-child {
  margin-bottom: 0;
}

.IMAI-overview-label {
  opacity: 0.8;
}

.IMAI-overview-value {
  font-weight: 500;
}

.IMAI-common-features {
  flex-grow: 1;
}

.IMAI-common-features h3 {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.IMAI-common-features h3 svg {
  margin-right: 10px;
}

.IMAI-feature-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 8px 15px;
  margin: 0 8px 8px 0;
  font-size: 12px;
  transition: all 0.3s ease;
}

.IMAI-feature-tag:hover {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.IMAI-right-panel {
  width: 70%;
  height: 100%;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.IMAI-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.IMAI-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #555555;
}

.IMAI-distribution-container {
  display: flex;
  height: 210px;
  margin-bottom: 25px;
}

.IMAI-distribution-box {
  flex: 1;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: auto;
}

.IMAI-distribution-box:first-child {
  margin-right: 15px;
}

.IMAI-distribution-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.IMAI-distribution-box h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2C3E50;
}

.IMAI-distribution-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.IMAI-distribution-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 10px;
}

.IMAI-distribution-label {
  font-size: 14px;
  flex: 1;
}

.IMAI-distribution-bar-container {
  flex: 2;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 15px;
}

.IMAI-distribution-bar {
  height: 100%;
  border-radius: 4px;
}

.IMAI-distribution-percentage {
  font-size: 14px;
  min-width: 40px;
  text-align: right;
  font-weight: 500;
}

.IMAI-materials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.IMAI-material-card {
  flex: 1;
  min-width: 120px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.IMAI-material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.IMAI-material-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.IMAI-material-name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #555555;
}

.IMAI-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.IMAI-lighting-stats {
  flex: 1;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-right: 15px;
}

.IMAI-lighting-stats h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2C3E50;
}

.IMAI-lighting-indicator {
  display: flex;
  align-items: center;
}

.IMAI-indicator-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}

.IMAI-indicator-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.IMAI-indicator-label {
  font-size: 12px;
  color: #666;
}

.IMAI-quality-stats {
  flex: 1;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 15px;
}

.IMAI-quality-stats h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2C3E50;
}

.IMAI-quality-donut {
  display: flex;
  align-items: center;
}

          .IMAI-donut-chart {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
      #A0A0A0 0% 60%,
      #D0D0D0 60% 100%
  );
  position: relative;
  margin-right: 15px;
}

.IMAI-donut-chart::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
}

.IMAI-quality-legend {
  display: flex;
  flex-direction: column;
}

.IMAI-legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.IMAI-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
}

.IMAI-legend-label {
  font-size: 12px;
  color: #666;
}

.IMAI-legend-value {
  font-size: 12px;
  font-weight: 600;
  margin-left: 5px;
  color: #2C3E50;
}

/* Add/Update these styles in listings.css */
@media (max-width: 992px) {
  .IMAI-dashboard {
    flex-direction: column;
    height: auto;
    padding: 16px;
    overflow: visible;
  }
  
  .IMAI-left-panel, .IMAI-right-panel {
    width: 100%;
    height: auto;
    padding: 16px;
    overflow: visible;
  }
  
  .IMAI-distribution-container {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .IMAI-distribution-box {
    min-height: 150px;
    margin-right: 0 !important;
  }

  .IMAI-materials-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .IMAI-material-card {
    min-width: auto;
    width: 100%;
  }

  .IMAI-brand-text h2 {
    font-size: 16px;
  }

  .IMAI-brand-text p {
    font-size: 11px;
  }

  .IMAI-section-title {
    font-size: 16px;
  }

  .IMAI-distribution-label {
    font-size: 12px;
  }
}
/*==========================================================================
  AI image analysis  [END]
========================================================================== */

/*==========================================================================
view listing - comparable listings - button [begin]
========================================================================== */
.view-listing-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.view-listing-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #f8faff;
}

.view-listing-btn:active {
  transform: translateY(1px);
}

.view-listing-btn i {
  font-size: 12px;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .view-listing-btn {
      padding: 10px 16px;
      font-size: 14px;
  }
}

/*==========================================================================
view listing - comparable listings - button [end]
========================================================================== */

/*==========================================================================
 Property Navigation - Sticky Summary Bar [Begin]
========================================================================== */
.property-navigation .property-summary-bar {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 56px;
}

.property-navigation .property-info {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    flex-wrap: nowrap;
}

.property-navigation .property-price {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    flex-shrink: 1;
    overflow: hidden;
}

.property-navigation .property-thumbnail {
    flex-shrink: 0;
}

.property-navigation .property-price .badge {
    flex-shrink: 0;
}

.property-navigation .property-summary-price-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.property-navigation .property-summary-divider {
    flex-shrink: 0;
}

.property-navigation .property-features {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 12px;
    flex-shrink: 0;
    min-width: 140px;
}

.property-navigation .property-features .feature {
    white-space: nowrap;
}

.property-navigation .property-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive: narrower screens - shrink thumbnail, hide divider, reduce gaps */
@media (max-width: 1200px) {
    .property-navigation .property-thumbnail {
        width: 55px !important;
        height: 32px !important;
    }
    .property-navigation .property-summary-price-text {
        font-size: 16px !important;
    }
}

/* Prioritize price: hide features and badge before price ever truncates */
@media (max-width: 992px) {
    .property-navigation .property-summary-divider {
        display: none;
    }
    .property-navigation .property-features {
        display: none !important;
    }
    .property-navigation .property-price .badge {
        display: none !important;
    }
    .property-navigation .property-info {
        gap: 8px;
    }
    .property-navigation .property-summary-bar {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .property-navigation .property-thumbnail {
        width: 45px !important;
        height: 28px !important;
    }
    .property-navigation .property-summary-price-text {
        font-size: 14px !important;
    }
    .property-navigation .property-info {
        gap: 6px;
    }
}

/* Free more space for price: hide thumbnail */
@media (max-width: 640px) {
    .property-navigation .property-thumbnail {
        display: none !important;
    }
}
/*==========================================================================
 Property Navigation - Sticky Summary Bar [End]
========================================================================== */

/*==========================================================================
 Responsive adjustments  [Begin]
========================================================================== */

/* */
@media (max-width: 1024px) {
  .traffic-container {
      grid-template-columns: repeat(6, 1fr);
  }

  .traffic-quality, .time-distribution {
      grid-column: span 6;
  }

  .top-streets, .time-analysis {
      grid-column: span 6;
  }
}

/*==========================================================================
 Dark theme fixes (lp_listings)
========================================================================== */
html[data-theme="dark"] body.has-v2-header.listings-page .property-card {
    background: #0b0b0b;
    border: none;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-card .property-details {
    background: #0b0b0b;
    border-top: 1px solid #262626;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-price,
html[data-theme="dark"] body.has-v2-header.listings-page .property-address,
html[data-theme="dark"] body.has-v2-header.listings-page .property-address strong,
html[data-theme="dark"] body.has-v2-header.listings-page .property-info,
html[data-theme="dark"] body.has-v2-header.listings-page .listing-footer,
html[data-theme="dark"] body.has-v2-header.listings-page .listing-footer .listing-footer-text,
html[data-theme="dark"] body.has-v2-header.listings-page .property-specs,
html[data-theme="dark"] body.has-v2-header.listings-page .metric-label {
    color: #e6e6e6;
}

html[data-theme="dark"] body.has-v2-header.listings-page .small.text-muted,
html[data-theme="dark"] body.has-v2-header.listings-page .property-address,
html[data-theme="dark"] body.has-v2-header.listings-page .property-info span,
html[data-theme="dark"] body.has-v2-header.listings-page .listing-footer {
    color: #a3a3a3 !important;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-tag {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    color: #d4d4d4;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-tag i {
    color: #93c5fd;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .stat-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .market-summary,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .metric-row,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .recommendation-box,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .safety-score-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .safety-comparison,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .safety-insights,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .comparable-property-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .amenity-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .comparable-card-header,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .sample-size-indicator,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .percentile-indicator,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .roi-summary-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .roi-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .roi-details,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .roi-notes,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .life-explainer-card,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .life-card {
    background: #0b0b0b;
    border-color: #262626;
    color: #e6e6e6;
    box-shadow: none;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .table-row,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .table-row:nth-child(odd),
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .transactions-table tr:hover {
    background: #111111;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .table-header {
    background: #121212;
    border-bottom: 1px solid #262626;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .stat-card-label,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .stat-comparison,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .metric-description,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .transactions-subtitle,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .life-label-desc,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .life-label-address,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .amenity-card-description {
    color: #a3a3a3;
}

html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .stat-card-value,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .metric-title,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .metric-value,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .comparable-card-title,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .amenity-card-title,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .explainer-title,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .life-label-title,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .safety-label h3,
html[data-theme="dark"] body.has-v2-header.listings-page .property-details-view .safety-label h4 {
    color: #f5f5f5;
}
