:root {
  --primary-brand: var(--ds-brand);
  --primary-bg: var(--ds-surface);
  --secondary-bg: var(--ds-surface-2);
  --primary-text: var(--ds-ink);
  --secondary-text: var(--ds-muted);
  --accent-color: var(--ds-rent);
  --brand-dark: var(--ds-brand-800);
}

/* Base Layout - Mobile First */
* {
  box-sizing: border-box;
}

body {
  padding-top: calc(var(--ds-navbar-h) + var(--ds-space-4)) !important;
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  overflow-x: clip;
  width: 100%;
}

html {
  overflow-x: clip;
}

/* Container — use width:100% + max-width with side padding so the
   element never exceeds the visible viewport. The previous
   `calc(100vw - 2rem)` trick didn't account for the vertical scrollbar
   on desktop, leaving a sliver of empty space at the right edge on
   horizontal rubber-band scroll. */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}

/* Breadcrumb Navigation */

/* Modern Zillow-style Header - Hidden since navigation moved to property layout */
.zillow-header {
  display: none;
}

.zillow-header.hidden {
  transform: translateY(-100%);
}

@media (min-width: 769px) {
  .zillow-header {
    top: var(--navbar-height);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 60px;
}

.header-nav {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #64748b;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  min-width: 90px;
}

.header-nav-btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.header-nav-btn.active {
  background: white;
  color: var(--primary-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-width: auto;
}

.header-action-btn i {
  font-size: var(--ds-text-base);
}

.header-action-btn:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background: rgba(0, 166, 147, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 166, 147, 0.15);
  text-decoration: none;
}

.header-action-btn.favorited {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.header-action-btn.favorited:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.header-action-btn.favorited:hover {
  background: #cc0000;
  border-color: #cc0000;
  color: white;
}

.header-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: 240px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #374151;
  font-size: var(--ds-text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary-brand);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: #6b7280;
}

.dropdown-item:hover i {
  color: var(--primary-brand);
}

.dropdown-item:hover {
  background: var(--hover-bg);
  color: var(--primary-brand);
}


/* Modern Zillow-style Sticky Contact Card */
.sticky-contact-card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  z-index: 150;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .sticky-contact-card {
    padding: 0.875rem 1rem;
  }
  
  .contact-card-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-actions {
    width: 100%;
    justify-content: center;
  }
  
  .contact-btn {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .sticky-contact-card {
    padding: 0.75rem;
  }
  
  .contact-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .contact-btn {
    width: 100%;
    min-width: auto;
  }
}

.sticky-contact-card.show {
  transform: translateY(0);
}

.contact-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-brand), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--ds-text-2xl);
}

.agent-details h4 {
  margin: 0 0 0.375rem 0;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.agent-details p {
  margin: 0 0 0.5rem 0;
  font-size: var(--ds-text-base);
  color: #64748b;
  font-weight: 500;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
  color: #f59e0b;
}

.stars i {
  font-size: var(--ds-text-sm);
}

.agent-rating span {
  font-size: var(--ds-text-sm);
  color: #64748b;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: var(--ds-text-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-btn.primary {
  background: linear-gradient(135deg, var(--primary-brand), #059669);
  color: white;
}

.contact-btn.primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 147, 0.3);
  text-decoration: none;
  color: white;
}

.contact-btn.secondary {
  background: white;
  border: 2px solid #e2e8f0;
  color: #475569;
}

.contact-btn.secondary:hover {
  background: #f8fafc;
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 147, 0.15);
  text-decoration: none;
}

/* Modern Mobile Responsive Design */
@media (max-width: 768px) {
  .zillow-header .header-content {
    padding: 0 1rem;
    min-height: 64px;
  }
  
  .header-nav {
    padding: 2px;
  }
  
  .header-nav-btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--ds-text-sm);
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .header-action-btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--ds-text-sm);
    min-width: auto;
  }
  
  .sticky-contact-card {
    padding: 1rem;
  }
  
  .contact-card-content {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .contact-info {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  .agent-avatar {
    width: 64px;
    height: 64px;
  }
  
  .agent-details h4 {
    font-size: var(--ds-text-lg);
  }
  
  .contact-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .contact-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-size: var(--ds-text-sm);
  }
}

@media (max-width: 480px) {
  .header-nav-btn {
    padding: 0.625rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .header-action-btn {
    padding: 0.625rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .dropdown-menu {
    min-width: 200px;
  }
  
  .contact-btn {
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    font-size: var(--ds-text-sm);
  }
}

/* Property Main Section */
.property-main-section {
  background: var(--secondary-bg);
  padding: 0;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding-bottom: 120px; /* Space for sticky contact card */
}

.property-layout {
  display: flex;
  flex-direction: column;
  background: var(--primary-bg);
  width: 100%;
  margin: 0;
}

@media (min-width: 1024px) {
  .property-main-section {
    padding: 0.75rem 0 1.5rem;
  }

  /* Two-column hero — images physically LEFT, info physically RIGHT.
     The template renders images-side first (which in RTL puts it on the
     right by default), so we use `flex-direction: row-reverse` to swap
     the visual order without changing the markup. The whole layout is
     centered with `max-width: 1200px; margin: 0 auto`. */
  .property-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 14px;
    padding: 1rem;
    background: var(--primary-bg);
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.04);
    width: 100%;
    align-items: stretch;
  }

  /* Equal 50/50 split so the gallery and info card carry the same
     visual weight. Info column flexes top-to-bottom and the action
     buttons sink to the bottom edge so the column doesn't look like
     a tall card with dead air below the stats. */
  .property-layout > .property-images-side,
  .property-layout > .property-info-side {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .property-layout > .property-info-side .property-header { margin-top: 0; }
  .property-layout > .property-info-side .quick-stats { margin-bottom: 0; }
  .property-layout > .property-info-side .action-buttons {
    margin-top: auto;
    padding-top: 0.75rem;
  }
}

/* Property Images Section */
.property-images-side {
  width: 100%;
  margin-bottom: 0;
}

/* Image Navigation Tabs */
.image-nav-tabs {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 0.65rem;
}

.image-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.image-nav-tab:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.image-nav-tab.active {
  background: white;
  color: var(--primary-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-nav-tab i {
  font-size: var(--ds-text-sm);
}

@media (max-width: 768px) {
  .image-nav-tab {
    padding: 0.6rem 0.75rem;
    font-size: var(--ds-text-sm);
  }
  
  .image-nav-tab span {
    display: none;
  }
  
  .image-nav-tab i {
    margin-right: 0;
  }
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--secondary-bg);
  border-radius: 10px;
}

@media (min-width: 768px) {
  .main-image-container {
    height: 320px;
    border-radius: 12px;
  }

  .property-images-side {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .property-images-side {
    margin-bottom: 0;
  }
}

.main-display-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  color: var(--primary-text);
}

.image-nav:hover {
  background: var(--primary-brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.image-nav.prev {
  left: 1rem;
}

.image-nav.next {
  right: 1rem;
}

.image-counter {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--ds-text-sm);
  font-weight: 500;
}

.view-all-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary-brand);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

@media (min-width: 768px) {
  .thumbnails-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
  }
}

.thumbnail-item {
  position: relative;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
}

.thumbnail-item:hover {
  border-color: var(--primary-brand);
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: var(--primary-brand);
  transform: scale(1.05);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subtle desat so a strip of bright placeholder JPEGs doesn't shout
     beneath the main hero photo. Tightens to true color on hover. */
  filter: saturate(0.85) brightness(0.96);
  transition: filter 220ms ease;
}
.thumbnail-item:hover img,
.thumbnail-item.active img {
  filter: saturate(1) brightness(1);
}
/* Soft inner shade on the strip cards — keeps the row reading as a
   single component instead of six individual color blocks. */
.thumbnail-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.more-images-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--ds-text-lg);
}

/* Property Info Section */
.property-info-side {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 1024px) {
  .property-info-side {
    padding: 0;
    gap: 0.75rem;
  }
}

.property-header {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.property-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
@media (min-width: 1024px) {
  .property-title {
    font-size: 1.4rem;
  }
}

/* Combined Location and Badges Row */
.location-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-bottom: 0;
}

.location-icon {
  color: var(--primary-brand);
  font-size: 0.95rem;
}

.property-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.property-badge {
  /* Bumped from 0.72rem so the rent/sell signal is immediately readable
     on detail-page hero (was getting lost next to the title). */
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  border: 1px solid transparent;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.property-badge i { font-size: 0.85rem; }

.badge-sell {
  /* Brand-accent orange for sell — high-contrast against teal hero. */
  background-color: var(--ds-accent, #FF8552);
}

.badge-rent {
  /* Distinct blue — clearly different from sell ribbon. */
  background-color: var(--ds-rent, #3B82F6);
}

.badge-type {
  background-color: #6366f1;
}

.badge-status {
  background-color: #10b981;
}

/* Pricing — flat (no card chrome). Sits inline below the title. */
.pricing-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0 0.5rem;
  margin-bottom: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.main-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-brand);
  line-height: 1.1;
}

.price-currency {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary-text);
}

.price-negotiable {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-brand);
  line-height: 1.1;
}

/* Price metadata (per-meter / deposit) — sits inline with the price,
   prefixed by a separator dot to imply hierarchy. */
.price-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--secondary-text);
  font-weight: 500;
  position: relative;
  padding-inline-start: 0.7rem;
}

.price-meta::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--border-color);
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
}

.price-meta i {
  color: var(--primary-brand);
  font-size: 0.78rem;
  margin-inline-end: 0.1rem;
}

/* Quick Stats — Divar-style icon-first pill row. Single inline string
   per pill (icon + value + unit), no value/label stacking. */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: #f5f7fa;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.3;
  transition: background .15s ease, border-color .15s ease;
}

.stat-item:hover {
  background: rgba(0,166,147,.08);
  border-color: rgba(0,166,147,.18);
}

.stat-icon {
  color: var(--primary-brand);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.stat-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-text);
  white-space: nowrap;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .action-buttons {
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
}

.action-btn {
  width: 100%;
  justify-content: center;
  flex: none;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  border-radius: 10px;
  font-weight: 700;
  min-height: 44px;
  transition: all 0.18s ease;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .action-btn {
    width: auto;
    flex: 1;
    min-width: 130px;
    border-radius: 10px;
  }
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.primary {
  order: -1;
  background-color: var(--primary-brand);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 166, 147, 0.3);
}

.action-btn.primary:hover {
  background-color: var(--brand-dark);
  text-decoration: none;
  color: white;
}

.action-btn.secondary {
  background: transparent;
  border: 2px solid var(--primary-brand);
  color: var(--primary-brand);
  font-weight: 700;
}

.action-btn.secondary:hover {
  background: var(--primary-brand);
  color: white;
  text-decoration: none;
}

.action-btn#favoriteBtn {
  background: rgba(0, 166, 147, 0.1);
  color: var(--primary-brand);
}

.action-btn#favoriteBtn:hover {
  background: rgba(0, 166, 147, 0.2);
}

.action-btn#favoriteBtn.favorited {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

.action-btn#favoriteBtn.favorited:hover {
    background: #cc0000;
    border-color: #cc0000;
}

/* Content Container */
.content-container {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0 1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .content-container {
    margin: 1rem 0 0.75rem 0;
    padding: 1rem;
    border-radius: 12px;
  }
}

/* Minimal Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Single-pane variant — used after we deduplicated the property data card.
   Now this row only carries the meta strip (code + date) and the agent
   contact card, so we let the agent card breathe at full content-width
   instead of forcing the previous 1fr 1fr split. */
.hero-section--single {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.property-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ds-surface-2, #F1F5F9);
  border: 1px solid var(--ds-line, #E5E7EB);
  border-radius: 12px;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted, #64748B);
}
.property-meta-strip .property-code { font-family: var(--ds-font-mono, monospace); color: var(--ds-ink, #0F172A); font-weight: 600; }
.hero-section--single .hero-right { width: 100%; }

/* Agent card — make it the prominent CTA after the property hero. */
.hero-section--single .agent-info-card {
  max-width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--ds-brand-50, #E6F7F4) 100%);
  border: 1px solid var(--ds-brand-100, #CCEFE9);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 166, 147, 0.08);
}
.hero-section--single .agent-info-card .agent-header {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.hero-section--single .agent-info-card .agent-avatar-hero {
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 166, 147, 0.18);
  flex-shrink: 0;
}
.hero-section--single .agent-info-card .agent-details-hero { flex: 1; }
.hero-section--single .agent-info-card .agent-details-hero h4 {
  font-size: var(--ds-text-xl, 1.25rem);
  margin-bottom: 0.25rem;
}
.hero-section--single .agent-info-card .agent-actions-hero {
  flex-direction: row;
  gap: 0.6rem;
  margin-top: 1rem;
}
.hero-section--single .agent-info-card .contact-btn-hero { flex: 1; }

/* =========================================================
   Section polish — consistent heading style + breathing room
   for every section under the property layout: features,
   description, map, related properties, etc.
   ========================================================= */
.property-info-section {
  padding: 1.5rem 0 4rem;
}
.property-info-section .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.property-info-section .content-container > * + * {
  margin-top: 2rem;
}
.property-info-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--ds-text-xl, 1.25rem);
  font-weight: 800;
  color: var(--ds-ink, #0F172A);
  margin: 0 0 1rem;
  position: relative;
}
.property-info-section h3 i {
  color: var(--ds-brand, #00A693);
  background: var(--ds-brand-50, #E6F7F4);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-text-base, 1rem);
}
.property-info-section .features-section,
.property-info-section .description-section,
.property-info-section .map-section,
.property-info-section .virtual-tour {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #E5E7EB);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}
.property-info-section .description-section .description-text {
  font-size: var(--ds-text-base, 1rem);
  line-height: 1.95;
  color: var(--ds-ink, #0F172A);
}
.property-info-section .features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.property-info-section .features-section .feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--ds-brand-50, #E6F7F4);
  border-radius: 10px;
  font-size: var(--ds-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--ds-brand-800, #005B5D);
}
.property-info-section .features-section .feature-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  color: var(--ds-brand, #00A693);
  flex-shrink: 0;
}
.property-info-section .map-section #propertyDetailMap {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}
.property-info-section .virtual-tour {
  background: linear-gradient(135deg, var(--ds-brand-800, #005B5D) 0%, var(--ds-brand, #00A693) 100%);
  color: #fff;
  text-align: center;
}
.property-info-section .virtual-tour h3 { color: #fff; justify-content: center; display: flex; }
.property-info-section .virtual-tour h3 i { background: rgba(255,255,255,0.18); color: #fff; }
.property-info-section .virtual-tour p { color: rgba(255,255,255,0.92); margin: 0 0 1rem; }
.property-info-section .virtual-tour .tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ds-brand-800, #005B5D);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-info-section .virtual-tour .tour-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    gap: 1.5rem;
  }
  
  .header-nav-btn {
    padding: 0.625rem 1rem;
    font-size: var(--ds-text-sm);
    min-width: 80px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .agent-info-card,
  .property-data-card {
    padding: 1rem;
  }
  
  .agent-header {
    margin-bottom: 1rem;
  }
  
  .agent-actions-hero {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .contact-btn-hero {
    font-size: var(--ds-text-sm);
    padding: 0.625rem 0.875rem;
  }
  
  .property-title-minimal {
    font-size: var(--ds-text-xl);
  }
  
  .main-price-minimal {
    font-size: var(--ds-text-2xl);
  }
  
  .quick-stats-minimal {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .stat-item-minimal {
    flex: 1;
    min-width: calc(50% - 0.5rem);
  }
  
  .action-buttons-minimal {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .action-btn-minimal {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .content-container {
    margin: 0.5rem 0;
    padding: 0.875rem;
    border-radius: 12px;
  }
  
  .property-title-minimal {
    font-size: var(--ds-text-xl);
    line-height: 1.3;
  }
  
  .main-price-minimal {
    font-size: var(--ds-text-xl);
  }
  
  .quick-stats-minimal {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat-item-minimal {
    min-width: 100%;
  }
  
  .agent-actions-hero {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-btn-hero {
    width: 100%;
  }
  
  .header-nav {
    padding: 2px;
  }
  
  .header-nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--ds-text-sm);
    min-width: 70px;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Agent Info Card (Hero Left) */
.agent-info-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  flex-grow: 1;
}

.agent-avatar-hero {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.agent-avatar-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-hero {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-brand), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--ds-text-2xl);
}

.agent-details-hero h4 {
  margin: 0 0 0.25rem 0;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: #1e293b;
}

.agent-details-hero p {
  margin: 0 0 0.5rem 0;
  font-size: var(--ds-text-sm);
  color: #64748b;
}

.agent-rating-hero {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars-hero {
  display: flex;
  gap: 0.125rem;
  color: #f59e0b;
}

.stars-hero i {
  font-size: var(--ds-text-sm);
}

.agent-rating-hero span {
  font-size: var(--ds-text-sm);
  color: #64748b;
  font-weight: 500;
}

.agent-actions-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--ds-text-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
}

.contact-btn-hero.primary {
  background: linear-gradient(135deg, var(--primary-brand), #059669);
  color: white;
}

.contact-btn-hero.primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.contact-btn-hero.secondary {
  background: white;
  border: 2px solid #e2e8f0;
  color: #475569;
}

.contact-btn-hero.secondary:hover {
  background: #f8fafc;
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  text-decoration: none;
}

/* Property Data Card (Hero Right) */
.property-data-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Property Meta Minimal */
.property-meta-minimal {
  display: flex;
  gap: 1rem;
  font-size: var(--ds-text-sm);
  color: #64748b;
  margin-bottom: 0.5rem;
}

.property-code,
.property-date {
  font-weight: 500;
}

/* Property Title Minimal */
.property-title-minimal {
  font-size: var(--ds-text-xl);
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

/* Property Location Minimal */
.property-location-minimal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: var(--ds-text-base);
}

.property-location-minimal i {
  color: var(--primary-brand);
}

/* Price Info Minimal */
.price-info-minimal {
  margin: 1rem 0;
}

.main-price-minimal {
  font-size: var(--ds-text-2xl);
  font-weight: 800;
  color: var(--primary-brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-per-meter-minimal,
.deposit-minimal {
  font-size: var(--ds-text-sm);
  color: #64748b;
  font-weight: 500;
}

/* Quick Stats Minimal */
.quick-stats-minimal {
  display: flex;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.stat-item-minimal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon-minimal {
  width: 40px;
  height: 40px;
  background: var(--primary-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--ds-text-base);
}

.stat-content-minimal {
  display: flex;
  flex-direction: column;
}

.stat-value-minimal {
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.stat-label-minimal {
  font-size: var(--ds-text-sm);
  color: #64748b;
  font-weight: 500;
}

/* Action Buttons Minimal */
.action-buttons-minimal {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-btn-minimal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action-btn-minimal:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background: rgba(0, 166, 147, 0.05);
}

.action-btn-minimal.favorited {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* Agent Card Minimal */
.agent-card-minimal {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.agent-info-minimal {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.agent-avatar-minimal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.agent-avatar-minimal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-minimal {
  width: 100%;
  height: 100%;
  background: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--ds-text-2xl);
}

.agent-details-minimal h4 {
  margin: 0 0 0.25rem 0;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: #1e293b;
}

.agent-details-minimal p {
  margin: 0 0 0.5rem 0;
  font-size: var(--ds-text-sm);
  color: #64748b;
}

.agent-rating-minimal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars-minimal {
  display: flex;
  gap: 0.125rem;
  color: #f59e0b;
}

.agent-rating-minimal span {
  font-size: var(--ds-text-sm);
  color: #64748b;
  font-weight: 500;
}

.agent-actions-minimal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--ds-text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.contact-btn-minimal.primary {
  background: var(--primary-brand);
  color: white;
}

.contact-btn-minimal.primary:hover {
  background: #059669;
  transform: translateY(-1px);
}

.contact-btn-minimal.secondary {
  background: transparent;
  border: 2px solid var(--primary-brand);
  color: var(--primary-brand);
}

.contact-btn-minimal.secondary:hover {
  background: var(--primary-brand);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .property-title-minimal {
    font-size: var(--ds-text-lg);
  }
  
  .main-price-minimal {
    font-size: var(--ds-text-xl);
  }
  
  .quick-stats-minimal {
    gap: 1rem;
  }
  
  .stat-icon-minimal {
    width: 35px;
    height: 35px;
    font-size: var(--ds-text-sm);
  }
  
  .stat-value-minimal {
    font-size: var(--ds-text-base);
  }
  
  .action-buttons-minimal {
    flex-wrap: wrap;
  }
  
  .action-btn-minimal {
    flex: 1;
    min-width: 120px;
  }
}

.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,166,147,0.1);
}

.property-code,
.property-date {
  font-size: var(--ds-text-sm);
  color: var(--secondary-text);
  font-weight: 500;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
}

.meta-action-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: transparent;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-text-base);
}

.meta-action-btn:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  transform: scale(1.1);
}

.meta-action-btn.favorited {
  background: #ff4444;
  border-color: #ff4444;
  color: white;
}

.meta-action-btn.favorited:hover {
  background: #cc0000;
  border-color: #cc0000;
}

.overview-header h2 {
  font-size: var(--ds-text-3xl);
  font-weight: 800;
  color: var(--primary-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.overview-header .property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: var(--ds-text-lg);
  margin-bottom: 2rem;
}

.overview-header .property-location i {
  color: var(--primary-brand);
}

.overview-price {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,166,147,0.1);
}

.overview-price .main-price {
  font-size: var(--ds-text-3xl);
  font-weight: 800;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.overview-price .price-per-meter,
.overview-price .deposit-info {
  font-size: var(--ds-text-base);
  color: var(--secondary-text);
  font-weight: 500;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--secondary-bg);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,166,147,0.05);
}

.spec-box:hover {
  background: rgba(0,166,147,0.05);
  border-color: rgba(0,166,147,0.15);
  transform: translateY(-2px);
}

.spec-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--ds-text-lg);
  flex-shrink: 0;
}

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-number {
  font-size: var(--ds-text-2xl);
  font-weight: 800;
  color: var(--primary-text);
  line-height: 1;
}

.spec-text {
  font-size: var(--ds-text-sm);
  color: var(--secondary-text);
  font-weight: 500;
}

.key-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0,166,147,0.1);
  border: 1px solid rgba(0,166,147,0.2);
  border-radius: 25px;
  color: var(--primary-brand);
  font-weight: 600;
  font-size: var(--ds-text-sm);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(0,166,147,0.15);
  border-color: rgba(0,166,147,0.3);
  transform: translateY(-2px);
}

.feature-badge i {
  font-size: var(--ds-text-base);
}

/* Mobile Adjustments for Overview */
@media (max-width: 768px) {
  .overview-card {
    padding: 1.5rem;
  }
  
  .overview-header h2 {
    font-size: var(--ds-text-2xl);
  }
  
  .overview-price .main-price {
    font-size: var(--ds-text-3xl);
  }
  
  .spec-box {
    padding: 1rem;
  }
  
  .spec-icon {
    width: 40px;
    height: 40px;
    font-size: var(--ds-text-base);
  }
  
  .spec-number {
    font-size: var(--ds-text-xl);
  }
  
  .spec-text {
    font-size: var(--ds-text-sm);
  }
  
  .feature-badge {
    padding: 0.5rem 1rem;
    font-size: var(--ds-text-sm);
  }
}

/* Property Info Section */
.property-info-section {
  padding: 1.5rem 0;
  width: 100%;
  background: var(--secondary-bg);
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .property-info-section {
    padding: 2rem 0;
  }
}

/* (Legacy .property-header / .property-title / .property-location /
   .property-price / .property-badges / .property-badge duplicates removed
   here — the canonical compact rules live near line 835. Keeping the
   `.badge-*` utility classes below since they're referenced elsewhere.) */

.badge-featured {
  background-color: var(--primary-brand);
  color: white;
}

.badge-type {
  background-color: var(--accent-color);
  color: white;
}

.badge-transaction {
  background-color: #059669;
  color: white;
}

/* Property Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem auto;
  max-width: min(1400px, calc(100vw - 2rem));
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 2rem;
    max-width: min(1400px, calc(100vw - 4rem));
  }
}

@media (min-width: 1200px) {
  .details-grid {
    max-width: 1400px;
    padding: 0;
  }
}

.detail-card {
  background: var(--primary-bg);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
}

.detail-card h3 {
  font-size: var(--ds-text-xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-card h3 i {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.detail-label {
  color: var(--secondary-text);
  font-weight: 500;
}

.detail-value {
  color: var(--primary-text);
  font-weight: 600;
}

/* Features Section */
.features-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--secondary-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,166,147,.05);
}

.feature-item:hover {
  background: rgba(0,166,147,.05);
  border-color: rgba(0,166,147,.15);
  transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-brand), var(--brand-dark));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ds-text-sm);
    flex-shrink: 0;
}

.feature-item span {
  font-weight: 600;
  color: var(--primary-text);
  font-size: var(--ds-text-sm);
}

/* Description Section */
.description-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.description-text {
  color: var(--primary-text);
  line-height: 1.8;
  font-size: var(--ds-text-lg);
}

/* Contact Section */
.contact-section {
  background: var(--primary-brand);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 2rem 0;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
}

.contact-btn:hover {
  background: white;
  color: var(--primary-brand);
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-btn.primary {
  background: white;
  color: var(--primary-brand);
}

.contact-btn.primary:hover {
  background: transparent;
  color: white;
}

/* Map Section */
.map-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.property-map {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

/* Related Properties */
.related-section {
  margin: 3rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-card {
  background: var(--primary-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,166,147,0.15);
  text-decoration: none;
  color: inherit;
}

.related-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-info {
  padding: 1.5rem;
}

.related-title {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.related-price {
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
}

.related-details {
  display: flex;
  gap: 1rem;
  font-size: var(--ds-text-sm);
  color: var(--secondary-text);
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .property-layout {
    gap: 1.5rem;
    padding: 1.25rem;
  }
  
  .main-image-container {
    height: 350px;
    border-radius: 16px;
  }
  
  .property-title {
    font-size: var(--ds-text-2xl);
  }
  
  .price-amount {
    font-size: var(--ds-text-2xl);
  }
}

/* Mobile Responsive Styles */
.thumbnail-item {
  height: 60px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .thumbnail-item {
    height: 80px;
    border-radius: 16px;
  }
}

.image-nav {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-text-lg);
  color: var(--primary-text);
  transition: all 0.3s ease;
  z-index: 10;
}

@media (min-width: 768px) {
  .image-nav {
    width: 50px;
    height: 50px;
    font-size: var(--ds-text-lg);
  }
}

.image-nav:hover {
  background: var(--primary-brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.image-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* (Legacy mobile-tier overrides for .property-title / .price-amount /
   .quick-stats / .stat-* removed — they were re-inflating the compact
   rules. The canonical rules near line 835 already cover desktop and
   mobile via `--ds-text-*` tokens.) */

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .action-buttons {
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
}

.action-btn {
  width: 100%;
  justify-content: center;
  flex: none;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  border-radius: 10px;
  font-weight: 700;
  min-height: 44px;
  transition: all 0.18s ease;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .action-btn {
    width: auto;
    flex: 1;
    min-width: 130px;
    border-radius: 10px;
  }
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.primary {
  order: -1;
  background-color: var(--primary-brand);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 166, 147, 0.3);
}

.action-btn.primary:hover {
  background-color: var(--brand-dark);
  text-decoration: none;
  color: white;
}

.action-btn.secondary {
  background: transparent;
  border: 2px solid var(--primary-brand);
  color: var(--primary-brand);
  font-weight: 700;
}

.action-btn.secondary:hover {
  background: var(--primary-brand);
  color: white;
  text-decoration: none;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .property-info-side {
    padding: 0.65rem 0.85rem 0.85rem;
    gap: 0.5rem;
  }

  .property-title {
    font-size: 1.1rem;
  }

  .price-amount {
    font-size: 1.4rem;
  }
  
  .features-section,
  .description-section,
  .map-section,
  .contact-section {
    margin: 0.5rem auto;
    padding: 1rem;
  }
  
  .details-grid {
    padding: 0 0.75rem;
  }
  
  .related-section {
    padding: 0 0.75rem;
  }
}

/* Enhanced Details Section Styles */
.detail-card {
  background: var(--primary-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,166,147,.06);
  border: 1px solid rgba(0,166,147,.08);
  transition: all 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 8px 30px rgba(0,166,147,.12);
  border-color: rgba(0,166,147,.15);
  transform: translateY(-2px);
}

.detail-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0,166,147,.1);
}

.detail-card h3 i {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
  width: 20px;
  text-align: center;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0,166,147,.06);
  transition: all 0.2s ease;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item:hover {
  background: rgba(0,166,147,.02);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 8px;
}

.detail-label {
  font-weight: 600;
  color: var(--secondary-text);
  font-size: var(--ds-text-base);
}

.detail-value {
  font-weight: 700;
  color: var(--primary-text);
  font-size: var(--ds-text-base);
}

/* Enhanced Features Section */
.features-section {
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(0,166,147,.08);
  border: 1px solid rgba(0,166,147,.1);
}

.features-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1.25rem;
}

.features-section h3 i {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--secondary-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,166,147,.05);
  font-size: var(--ds-text-sm);
}

.feature-item:hover {
  background: rgba(0,166,147,.05);
  border-color: rgba(0,166,147,.15);
  transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-brand), var(--brand-dark));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ds-text-sm);
    flex-shrink: 0;
}

.feature-item span {
  font-weight: 600;
  color: var(--primary-text);
  font-size: var(--ds-text-sm);
}

/* Enhanced Description Section */
.description-section {
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(0,166,147,.08);
  border: 1px solid rgba(0,166,147,.1);
}

.description-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--ds-text-lg);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1.25rem;
}

.description-section h3 i {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
}

.description-text {
  line-height: 1.8;
  color: var(--primary-text);
  font-size: var(--ds-text-base);
  text-align: justify;
}

/* Enhanced Map Section */
.map-section {
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0,166,147,.08);
  border: 1px solid rgba(0,166,147,.1);
}

.map-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--ds-text-xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
}

.map-section h3 i {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
}

.property-map {
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0,166,147,.1);
  margin-top: 1.5rem;
}

/* Contact Section Enhancement */
.contact-section {
  background: var(--primary-brand);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  color: var(--primary-bg);
  box-shadow: 0 12px 40px rgba(0,166,147,.25);
}

.contact-section h3 {
  font-size: var(--ds-text-2xl);
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: var(--ds-text-base);
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  background: var(--primary-bg);
  color: var(--primary-brand);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: var(--ds-text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: 160px;
  justify-content: center;
}

.contact-btn:hover {
  background: var(--secondary-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,255,255,.3);
  text-decoration: none;
  color: var(--primary-brand);
}

/* Mobile Sections */
.features-section,
.description-section,
.map-section,
.contact-section {
  margin: 1rem auto;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--primary-bg);
  box-shadow: 0 6px 20px rgba(0, 166, 147, 0.08);
  border: 1px solid rgba(0,166,147,.1);
  max-width: min(1400px, calc(100vw - 2rem));
  width: calc(100% - 2rem);
}

@media (min-width: 768px) {
  .features-section,
  .description-section,
  .map-section,
  .contact-section {
    margin: 2rem auto;
    padding: 2rem;
    max-width: min(1400px, calc(100vw - 4rem));
    width: calc(100% - 4rem);
  }
}

@media (min-width: 1200px) {
  .features-section,
  .description-section,
  .map-section,
  .contact-section {
    max-width: 1400px;
    width: 100%;
  }
}

.features-section h3,
.description-section h3,
.map-section h3 {
  font-size: var(--ds-text-xl);
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-item {
  padding: 1rem;
  border-radius: 12px;
  background: var(--secondary-bg);
  border: 1px solid rgba(0,166,147,.05);
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-item:active {
  transform: scale(0.98);
  background: rgba(0,166,147,.03);
}

.property-map {
  height: 280px;
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0,166,147,.1);
}

@media (min-width: 768px) {
  .property-map {
    height: 400px;
  }
}

/* Contact Section Mobile */
.contact-section {
  background: var(--primary-brand);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 166, 147, 0.3);
}

.contact-section h3 {
  font-size: var(--ds-text-xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.contact-btn {
  width: 100%;
  max-width: 320px;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-brand);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: var(--ds-text-base);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .contact-btn {
    width: auto;
    max-width: none;
    border-radius: 30px;
  }
}

.contact-btn:active {
  transform: scale(0.98);
}

.contact-btn:hover {
  text-decoration: none;
  color: var(--primary-brand);
  background: var(--secondary-bg);
}

/* Related Properties Mobile */
.related-section {
  max-width: min(1400px, calc(100vw - 2rem));
  margin: 2rem auto;
  padding: 0 1rem;
  width: calc(100% - 2rem);
}

@media (min-width: 768px) {
  .related-section {
    padding: 0 2rem;
    max-width: min(1400px, calc(100vw - 4rem));
    width: calc(100% - 4rem);
  }
}

@media (min-width: 1200px) {
  .related-section {
    padding: 0;
    max-width: 1400px;
    width: 100%;
  }
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.related-nav {
  display: flex;
  gap: 0.5rem;
}

.related-nav-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-text-lg);
}

.related-nav-btn:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background: rgba(0,166,147,0.05);
  transform: scale(1.1);
}

.related-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.related-container {
  overflow: hidden;
  position: relative;
}

  .related-grid {
  display: flex;
    gap: 1.5rem;
  transition: transform 0.3s ease;
  scroll-behavior: smooth;
}

.related-card {
  flex: 0 0 300px;
  background: var(--primary-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .related-card {
    flex: 0 0 280px;
  }
  
  .related-nav-btn {
    width: 40px;
    height: 40px;
    font-size: var(--ds-text-base);
  }
}

@media (max-width: 480px) {
  
  .property-info-side {
    gap: 1rem;
  }
  
  .features-section,
  .description-section,
  .map-section,
  .contact-section {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .detail-card {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .property-map {
    height: 240px;
    margin-bottom: var(--ds-space-6);
  }
  
  .thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 0.5rem;
  }
}

/* Loading States and Animations */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.property-images-side {
  animation: slideInLeft 0.6s ease-out;
}

.property-info-side {
  animation: slideInRight 0.6s ease-out;
}

.detail-card,
.features-section,
.description-section,
.map-section,
.contact-section {
  animation: fadeInUp 0.6s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.detail-card:nth-child(1) { animation-delay: 0.2s; }
.detail-card:nth-child(2) { animation-delay: 0.3s; }
.detail-card:nth-child(3) { animation-delay: 0.4s; }

/* (Removed the .property-layout::after rotating gradient — it pulled
   the eye away from the listing content for no benefit.) */

/* Advanced Image Gallery Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--primary-text);
  font-size: var(--ds-text-2xl);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--primary-brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: -80px;
}

.lightbox-nav.next {
  right: -80px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary-text);
  font-size: var(--ds-text-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: #ff4444;
  color: white;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: var(--ds-text-base);
  font-weight: 500;
}

/* (Legacy .action-buttons / .action-btn duplicates removed — these
   were overriding the compact pill rules near line 1027 with old
   pill-shaped 30px buttons.) */

/* Social Sharing */
.social-sharing {
  background: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--ds-text-sm);
}

.social-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.social-btn.telegram {
  background: #0088cc;
}

.social-btn.whatsapp {
  background: #25d366;
}

.social-btn.twitter {
  background: #1da1f2;
}

.social-btn.copy {
  background: var(--secondary-text);
}

/* Mortgage Calculator */
.calculator-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.calc-input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--ds-text-base);
  transition: border-color 0.3s ease;
}

.calc-input:focus {
  outline: none;
  border-color: var(--primary-brand);
}

.calc-result {
  background: var(--primary-brand);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
}

.calc-result h4 {
  margin: 0 0 0.5rem 0;
  font-size: var(--ds-text-lg);
}

.calc-result .amount {
  font-size: var(--ds-text-3xl);
  font-weight: 800;
  margin: 0;
}

/* Enhanced Contact Section */
.contact-enhanced {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--ds-text-base);
  transition: border-color 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-brand);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-brand);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--ds-text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.submit-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,166,147,0.3);
}

/* Toast Notifications.
   Note: hides via opacity/visibility, NOT translateX, because a 400px
   transform on a position:fixed child extends body.scrollWidth on
   mobile and breaks horizontal overflow guarantees. */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--primary-brand);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,166,147,0.3);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  font-family: 'Vazirmatn', sans-serif;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.toast.error {
  background: #ff4444;
}

.toast.success {
  background: #4CAF50;
}

/* Neighborhood Information */
.neighborhood-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,166,147,0.08);
  border: 1px solid rgba(0,166,147,0.1);
  margin: 2rem 0;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .amenity-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .amenity-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--secondary-bg);
  border-radius: 8px;
  font-size: var(--ds-text-sm);
}

.amenity-icon {
  color: var(--primary-brand);
  font-size: var(--ds-text-lg);
}

/* Virtual Tour Section */
.virtual-tour {
  background: linear-gradient(135deg, var(--primary-brand), #059669);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .virtual-tour {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .virtual-tour {
    padding: 1.25rem;
    margin: 1rem 0;
  }
  
  .virtual-tour h3 {
    font-size: var(--ds-text-xl);
  }
  
  .virtual-tour p {
    font-size: var(--ds-text-sm);
  }
}

.tour-btn {
  background: white;
  color: var(--primary-brand);
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: var(--ds-text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .tour-btn {
    padding: 0.875rem 1.75rem;
    font-size: var(--ds-text-base);
  }
}

@media (max-width: 480px) {
  .tour-btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--ds-text-sm);
  }
}

.tour-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

/* Share Modal Styles */
.share-preview {
  background: var(--ds-surface-2);
  border-radius: var(--ds-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.share-preview__title {
  font-size: var(--ds-text-base);
  font-weight: 700;
  color: var(--ds-ink);
  line-height: 1.45;
}
.share-preview__desc {
  margin-top: 4px;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
  line-height: 1.6;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--ds-radius-md);
  background: var(--secondary-bg);
  color: var(--primary-text);
  cursor: pointer;
  transition: background var(--ds-fast), border-color var(--ds-fast), transform var(--ds-fast);
  font-size: var(--ds-text-sm);
  font-weight: 600;
}

.share-btn:hover {
  border-color: var(--primary-brand);
  background: var(--ds-brand-50);
  transform: translateY(-1px);
}

.share-btn i {
  font-size: var(--ds-text-2xl);
  color: var(--primary-brand);
}

.share-link {
  margin-top: 2rem;
}

.share-link label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-text);
}

.link-container {
  display: flex;
  gap: 0.5rem;
}

.link-container input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--secondary-bg);
  color: var(--primary-text);
  font-size: var(--ds-text-sm);
}

.copy-btn {
  padding: 0.75rem 1rem;
  border: 2px solid var(--primary-brand);
  border-radius: 8px;
  background: var(--primary-brand);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--ds-text-sm);
}

.copy-btn:hover {
  background: var(--brand-dark);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .share-options {
    grid-template-columns: 1fr;
  }

  .share-btn {
    padding: 1rem;
  }

  .share-btn i {
    font-size: var(--ds-text-2xl);
  }

  /* URL preview block was overflowing the modal at 390px because the dev
     URL "http://127.0.0.1:8081/properties/88/" had no break point. */
  .share-preview, .share-preview__desc {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  /* Flex column so .modal-body scrolls while header + footer stay pinned —
     prevents the submit button from being pushed below the fold on tall
     modals (report, share). */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-content .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.modal-content .modal-header,
.modal-content .modal-footer {
  flex: 0 0 auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--ds-text-xl);
  font-weight: 700;
  color: var(--primary-text);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: var(--ds-text-lg);
  color: var(--secondary-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--hover-bg);
  color: var(--primary-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
  color: var(--secondary-text);
  line-height: 1.6;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-item:hover {
  border-color: var(--primary-brand);
  background: rgba(0,166,147,0.05);
}

.radio-item input[type="radio"] {
  margin: 0;
  accent-color: var(--primary-brand);
}

.radio-item input[type="radio"]:checked + .radio-label {
  color: var(--primary-brand);
  font-weight: 600;
}

.radio-label {
  font-size: var(--ds-text-base);
  color: var(--primary-text);
  font-weight: 500;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-text);
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: var(--ds-text-base);
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-brand);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--ds-text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--secondary-text);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--primary-text);
}

.btn-primary {
  background: var(--primary-brand);
  color: white;
}

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

.btn-primary:disabled {
  background: var(--border-color);
  color: var(--secondary-text);
  cursor: not-allowed;
}

/* Fullscreen Gallery Styles */
.fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10001;
  display: none;
  flex-direction: column;
}

@media (max-width: 768px) {
  .gallery-header {
    padding: 0.75rem 1rem;
  }
  
  .gallery-nav {
    gap: 0.5rem;
  }
  
  .gallery-nav-btn {
    padding: 0.75rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .gallery-nav-btn span {
    display: none;
  }
  
  .gallery-nav-btn i {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    padding: 0.5rem 0.75rem;
  }
  
  .gallery-nav-btn {
    padding: 0.625rem 0.75rem;
    font-size: var(--ds-text-sm);
  }
  
  .gallery-close {
    padding: 0.75rem;
    font-size: var(--ds-text-xl);
  }
}

.fullscreen-gallery.show {
  display: flex;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-nav {
  display: flex;
  gap: 1rem;
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  color: rgba(255,255,255,0.7);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover,
.gallery-nav-btn.active {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.1);
}

.gallery-close {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: var(--ds-text-2xl);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.gallery-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.gallery-tab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  flex-direction: column;
}

.gallery-tab.active {
  display: flex;
}

.main-photo-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.main-gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #333;
  font-size: var(--ds-text-2xl);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-arrow.prev {
  left: 2rem;
}

.gallery-nav-arrow.next {
  right: 2rem;
}

.gallery-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--ds-text-sm);
  font-weight: 500;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.9);
  overflow-x: auto;
  justify-content: center;
}

.gallery-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: white;
  transform: scale(1.05);
}

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

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0,166,147,0.1), rgba(0,91,93,0.1));
  border-radius: 20px;
  margin: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.coming-soon i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.5);
}

.coming-soon h3 {
  font-size: var(--ds-text-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.coming-soon p {
  font-size: var(--ds-text-lg);
  line-height: 1.6;
  max-width: 400px;
}

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
  .gallery-header {
    padding: 1rem;
  }
  
  .gallery-nav {
    gap: 0.5rem;
  }
  
  .gallery-nav-btn {
    padding: 0.5rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .gallery-nav-btn span {
    display: none;
  }
  
  .gallery-close {
    width: 48px;
    height: 48px;
    font-size: var(--ds-text-lg);
  }
  
  .gallery-nav-arrow {
    width: 50px;
    height: 50px;
    font-size: var(--ds-text-lg);
  }
  
  .gallery-nav-arrow.prev {
    left: 1rem;
  }
  
  .gallery-nav-arrow.next {
    right: 1rem;
  }
  
  .gallery-thumbnails {
    padding: 0.5rem 1rem;
  }
  
  .gallery-thumbnail {
    width: 64px;
    height: 48px;
    /* Bump active border to 3px so the selected thumbnail reads at a glance
       on small screens. */
  }
  .gallery-thumbnail.active {
    border-width: 3px;
  }
  
  .coming-soon i {
    font-size: 3rem;
  }
  
  .coming-soon h3 {
    font-size: var(--ds-text-2xl);
  }
  
  .coming-soon p {
    font-size: var(--ds-text-base);
  }
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .contact-section,
  .contact-enhanced,
  .gallery-nav,
  .thumbnail-gallery,
  .related-section,
  .action-buttons,
  .social-sharing,
  .calculator-section,
  .virtual-tour,
  .lightbox-overlay,
  .modal-overlay,
  .zillow-header {
    display: none;
  }
  
  .image-gallery {
    height: 300px;
  }
  
  .property-map {
    height: 240px;
    margin-bottom: var(--ds-space-6);
  }
}
/* Google Maps style enhancements for property detail map */
.leaflet-container {
    font-family: 'Vazir', 'Roboto', sans-serif;
    background-color: #f5f5f5;
}

.leaflet-control-container .leaflet-control {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: none;
}

.leaflet-control-zoom a {
    background-color: white;
    color: #666;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 8px;
    margin: 2px;
    transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background-color: #f5f5f5;
    color: #333;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: var(--ds-text-xs);
    color: #666;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 12px;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-tile {
    transition: opacity 0.2s ease-in-out;
}

.property-marker {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.2s ease;
}

.property-marker:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* ─────────────────────────────────────────────────────────────
   Key-value spec table (Divar / Sheypoor / Idealista pattern)
   Sits between the pricing card and the features pill grid.
   ───────────────────────────────────────────────────────────── */
.spec-table {
  background: #fff;
  border: 1px solid var(--ds-line, #E5E7EB);
  border-radius: 12px;
  padding: 1rem 1.25rem 1.1rem;
  margin: 0.75rem 0 1rem;
}
.spec-table__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-ink, #0F172A);
  margin: 0 0 0.85rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ds-line, #E5E7EB);
}
.spec-table__title i { color: var(--ds-brand, #00A693); font-size: 0.95em; }

.spec-table__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}
.spec-table__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}
.spec-table__row:nth-last-child(-n+2) { border-bottom: 0; }
.spec-table__row--span {
  grid-column: 1 / -1;
  border-bottom: 0;
}
.spec-table__row dt {
  color: var(--ds-muted, #64748B);
  font-weight: 500;
  white-space: nowrap;
}
.spec-table__row dd {
  margin: 0;
  color: var(--ds-ink, #0F172A);
  font-weight: 600;
  text-align: left;
}
.spec-table__value-strong { color: var(--ds-brand, #00A693); }
.spec-table__yes { color: #10B981; }
.spec-table__no { color: #94A3B8; opacity: 0.7; }
.spec-table__code {
  font-family: var(--ds-font-mono, monospace);
  letter-spacing: 0.04em;
  color: var(--ds-muted, #64748B);
  font-weight: 500;
}

@media (max-width: 600px) {
  .spec-table { padding: 0.75rem 1rem; }
  .spec-table__grid { grid-template-columns: 1fr; }
  .spec-table__row:nth-last-child(-n+2) { border-bottom: 1px dashed rgba(0, 0, 0, 0.06); }
  .spec-table__row:last-child { border-bottom: 0; }
}

/* Trust strip on detail page header — owner-vs-agency badge + freshness.
   Sits between title and the location/badges row. */
.property-trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ds-muted, #64748B);
  margin: 0.15rem 0 0.5rem 0;
}
.property-trust__poster {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}
.property-trust__poster i { font-size: 0.7em; }
.property-trust__poster--owner {
  background: rgba(0, 166, 147, 0.1);
  color: var(--ds-brand, #00A693);
}
.property-trust__poster--agency {
  background: rgba(99, 102, 241, 0.1);
  color: #6366F1;
}
.property-trust__poster--builder {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.property-trust__time,
.property-trust__updated {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.property-trust__time i { color: var(--ds-brand, #00A693); font-size: 0.85em; }
.property-trust__updated::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  margin-left: 0.35rem;
}

/* ─────────────────────────────────────────────────────────────
   Detail page sticky mobile CTA bar (3-button layout)
   Hidden on desktop. Sits above the bottom-navbar on mobile.
   ───────────────────────────────────────────────────────────── */
.detail-mobile-cta {
  display: none;
  position: fixed;
  /* Stack above the bottom navbar; --ds-bottom-nav-h is the shared canonical
     token defined in design-system.css. Falls back to 70px (the bottom-navbar
     min-height in bottom-navbar.css). Adds safe-area-inset-bottom for
     edge-to-edge iPhones (Home indicator). */
  bottom: calc(var(--ds-bottom-nav-h, 68px) + env(safe-area-inset-bottom, 0px));
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 90;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  flex-direction: row;
  align-items: stretch;
  gap: 0.4rem;
  direction: rtl;
}

@media (max-width: 900px) {
  .detail-mobile-cta { display: flex; }
  /* Match the CTA bottom offset so the next page content scrolls clear of it. */
  body.property-detail-page {
    padding-bottom: calc(var(--ds-bottom-nav-h, 68px) + env(safe-area-inset-bottom, 0px) + 64px);
  }
}

.detail-mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 44px;
  border-radius: 10px;
  font: 700 0.92rem var(--ds-font);
  text-decoration: none;
  transition: background 160ms var(--ds-ease), transform 120ms var(--ds-ease);
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}
.detail-mobile-cta__btn:active { transform: scale(0.97); }

.detail-mobile-cta__btn--save {
  width: 44px;
  flex: 0 0 44px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ds-ink, #0F172A);
  font-size: 1.05rem;
}
.detail-mobile-cta__btn--save.is-favorited {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.detail-mobile-cta__btn--save:hover { background: rgba(0, 0, 0, 0.08); }

.detail-mobile-cta__btn--chat {
  flex: 1 1 auto;
  background: rgba(0, 166, 147, 0.1);
  color: var(--ds-brand, #00A693);
  border: 1px solid rgba(0, 166, 147, 0.25);
}
.detail-mobile-cta__btn--chat:hover {
  background: rgba(0, 166, 147, 0.16);
  text-decoration: none;
  color: var(--ds-brand, #00A693);
}

.detail-mobile-cta__btn--call {
  flex: 1 1 auto;
  background: var(--ds-brand, #00A693);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 166, 147, 0.3);
}
.detail-mobile-cta__btn--call:hover {
  background: var(--ds-brand-700, #007B6E);
  text-decoration: none;
  color: #fff;
}

.detail-mobile-cta__btn i {
  font-size: 0.95em;
  flex-shrink: 0;
}

/* Section headings on detail page were h3 → h2 (a11y outline). Ensure the
   h2 inherits the existing visual style for compatibility with the
   .section-title class we added. */
.features-section h2.section-title,
.description-section h2.section-title,
.map-section h2.section-title,
.virtual-tour h2.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  color: var(--ds-ink, #0F172A);
}
.virtual-tour h2.section-title { color: #fff; justify-content: center; }
