/* ============================================
   LAST STEP - Advanced Components CSS
   Inspired by flatandvilla.com features
   ============================================ */

/* ============================================
   ADVANCED SEARCH BAR
   ============================================ */
.advanced-search {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 10px 10px 10px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}

.search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
  padding: 8px 12px;
  border-left: 1px solid var(--gray-200);
  position: relative;
}

[dir="rtl"] .search-field { border-left: none; border-right: 1px solid var(--gray-200); }
[dir="rtl"] .search-field:last-of-type { border-right: none; }

.search-field:first-child { border-left: none; border-right: none; }

.search-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.search-field select,
.search-field input {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-arabic);
  color: var(--dark);
  background: transparent;
  padding: 0;
  width: 100%;
}

.search-field select option { font-size: 14px; }

.advanced-search .btn {
  border-radius: 100px;
  padding: 16px 32px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Floating Search (Hero version) */
.hero-search-floating {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1100px;
  z-index: 10;
}

/* Full-width filter bar */
.search-filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.search-filter-bar .filters-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-field { display: flex; flex-direction: column; gap: 6px; }

.filter-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-field input,
.filter-field select {
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-arabic);
  color: var(--dark);
  transition: var(--transition);
  background: var(--off-white);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--blue-primary);
  background: var(--white);
  outline: none;
}

/* ============================================
   PROPERTY CARD - Enhanced (flatandvilla style)
   ============================================ */
.property-card {
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.property-card-badges {
  position: absolute;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

[dir="rtl"] .property-card-badges { right: 14px; }
[dir="ltr"] .property-card-badges { left: 14px; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.badge-featured { background: rgba(200,169,126,0.9); color: #fff; }
.badge-new { background: rgba(16,185,129,0.9); color: #fff; }
.badge-exclusive { background: rgba(239,68,68,0.9); color: #fff; }
.badge-3d { background: rgba(30,79,216,0.9); color: #fff; }
.badge-sold { background: rgba(107,114,128,0.9); color: #fff; }

/* Favorite button */
.favorite-btn {
  position: absolute;
  top: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
  backdrop-filter: blur(8px);
}

[dir="rtl"] .favorite-btn { left: 14px; }
[dir="ltr"] .favorite-btn { right: 14px; }

.favorite-btn svg { width: 18px; height: 18px; stroke: var(--gray-500); fill: none; transition: var(--transition); }
.favorite-btn.active svg,
.favorite-btn:hover svg { stroke: #EF4444; fill: #EF4444; }

/* Compare checkbox */
.compare-check {
  position: absolute;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.9);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(8px);
  color: var(--dark);
  transition: var(--transition);
}

[dir="rtl"] .compare-check { left: 14px; }
[dir="ltr"] .compare-check { right: 14px; }

.compare-check input { width: 14px; height: 14px; accent-color: var(--blue-primary); }
.compare-check:hover { background: rgba(255,255,255,1); }

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

.property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--blue-primary);
  font-weight: 600;
}

.property-location svg { width: 13px; height: 13px; }

.property-type-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--beige-dark);
  background: var(--beige-pale);
  padding: 3px 10px;
  border-radius: 100px;
}

.property-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.property-title a:hover { color: var(--blue-primary); }

.property-developer {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-developer svg { width: 14px; height: 14px; }

.property-specs {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.prop-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-700);
}

.prop-spec svg { width: 14px; height: 14px; color: var(--beige); flex-shrink: 0; }

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.property-price-wrap { flex: 1; }

.property-price-label {
  font-size: 11px;
  color: var(--gray-500);
  display: block;
  margin-bottom: 2px;
}

.property-price {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}

.property-cta {
  display: flex;
  gap: 8px;
}

.cta-whatsapp, .cta-call {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta-whatsapp {
  background: #25D366;
  color: white;
}

.cta-whatsapp:hover {
  background: #128C7E;
  transform: scale(1.1);
}

.cta-call {
  background: var(--blue-primary);
  color: white;
}

.cta-call:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

.cta-whatsapp svg, .cta-call svg { width: 18px; height: 18px; fill: white; }

/* ============================================
   EXCLUSIVE OFFERS SECTION
   ============================================ */
.exclusive-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--beige-pale) 0%, #fff 50%, var(--beige-pale) 100%);
  position: relative;
  overflow: hidden;
}

.exclusive-section::before {
  content: 'EXCLUSIVE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  font-weight: 900;
  color: rgba(200,169,126,0.05);
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-display);
}

.exclusive-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.exclusive-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.exclusive-label::before {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

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

.exclusive-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.exclusive-card-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.exclusive-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,36,102,0.9) 0%, rgba(13,36,102,0.1) 60%, transparent 100%);
}

.exclusive-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
}

.exclusive-discount {
  display: inline-block;
  background: #EF4444;
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.exclusive-card-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.exclusive-card:first-child .exclusive-card-title { font-size: 26px; }

.exclusive-original-price {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.exclusive-new-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--beige);
}

.exclusive-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   3D/VR VIRTUAL TOUR BADGE & SECTION
   ============================================ */
.vr-badge {
  position: absolute;
  bottom: 14px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  backdrop-filter: blur(8px);
}

[dir="rtl"] .vr-badge { right: 14px; }
[dir="ltr"] .vr-badge { left: 14px; }

.vr-badge svg { width: 14px; height: 14px; }

.virtual-tour-section {
  padding: 80px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.virtual-tour-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,79,216,0.2), transparent 50%, rgba(200,169,126,0.1));
}

.vt-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vt-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-primary));
  cursor: pointer;
}

.vt-visual-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.vt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  cursor: pointer;
}

.vt-play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%) scale(1.1);
}

.vt-play-btn svg { width: 32px; height: 32px; fill: white; }

.vt-label {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
}

.vt-label-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
.vt-label-sub { font-size: 12px; color: rgba(255,255,255,0.7); }

.vt-features { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }

.vt-feature {
  display: flex;
  gap: 16px;
  align-items: center;
}

.vt-feature-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.vt-feature-icon svg { width: 22px; height: 22px; color: var(--beige); }
.vt-feature-title { font-weight: 700; color: white; margin-bottom: 3px; }
.vt-feature-text { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============================================
   INSTALLMENT CALCULATOR
   ============================================ */
.calculator-section {
  padding: 80px 0;
  background: var(--off-white);
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.calculator-form-side {
  padding: 48px;
}

.calculator-result-side {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-primary));
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calculator-result-side::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(200,169,126,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.calc-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.calc-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }

.calc-range-group { margin-bottom: 24px; }

.calc-range-group label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.calc-range-group label span {
  color: var(--blue-primary);
  font-weight: 700;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,79,216,0.4);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.result-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.result-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--beige);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 4px;
}

.result-period { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
}

.breakdown-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.breakdown-value { font-size: 15px; font-weight: 700; color: white; }

/* ============================================
   PRICE INSIGHTS / MARKET TRENDS
   ============================================ */
.insights-section {
  padding: 80px 0;
  background: var(--white);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.insight-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gray-100);
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.insight-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-icon svg { width: 26px; height: 26px; fill: white; }
.insight-title { font-size: 20px; font-weight: 700; }
.insight-subtitle { font-size: 13px; color: var(--gray-500); }

.price-trend-list { display: flex; flex-direction: column; gap: 14px; }

.price-trend-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trend-location {
  font-size: 14px;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
}

.trend-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.trend-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, var(--blue-primary), var(--blue-light));
  transition: width 1.5s ease;
}

.trend-percent {
  font-size: 13px;
  font-weight: 700;
  color: #10B981;
  width: 50px;
  text-align: end;
}

.trend-percent.down { color: #EF4444; }

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

.roi-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.roi-item:hover { border-color: var(--blue-primary); transform: translateY(-2px); }

.roi-location { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.roi-percent { font-size: 28px; font-weight: 800; color: var(--blue-primary); line-height: 1; }
.roi-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* ============================================
   COMPARE TOOL
   ============================================ */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--blue-primary);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.compare-bar.active { display: flex; }

.compare-bar-items { display: flex; gap: 12px; flex: 1; }

.compare-item-slot {
  width: 140px;
  height: 60px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-500);
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  transition: var(--transition);
}

.compare-item-slot.filled {
  border-style: solid;
  border-color: var(--blue-primary);
  background: rgba(30,79,216,0.05);
}

.compare-item-slot .slot-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.compare-item-slot .slot-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-item-slot .remove-slot {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: rgba(239,68,68,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

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

/* Compare Page Table */
.compare-table-wrap { overflow-x: auto; padding: 40px 0; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table th { font-weight: 700; font-size: 14px; }
.compare-table tr th:first-child,
.compare-table tr td:first-child {
  text-align: start;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--off-white);
}

.compare-table .highlight-col { background: rgba(30,79,216,0.04); }

.compare-table tr:hover { background: var(--off-white); }

/* ============================================
   FAVORITES / WISHLIST
   ============================================ */
.wishlist-section {
  padding: 60px 0;
  min-height: 400px;
}

.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
}

.wishlist-empty svg {
  width: 80px; height: 80px;
  color: var(--gray-300);
  margin: 0 auto 20px;
}

.wishlist-empty h3 { font-size: 24px; color: var(--gray-500); margin-bottom: 12px; }
.wishlist-empty p { font-size: 15px; color: var(--gray-400); margin-bottom: 24px; }

/* ============================================
   PODCAST / AUDIO SECTION
   ============================================ */
.podcast-section {
  padding: 80px 0;
  background: var(--dark-medium);
}

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

.podcast-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.podcast-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.podcast-cover {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-primary), var(--beige));
}

.podcast-info { flex: 1; }
.podcast-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 6px; }
.podcast-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.podcast-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-pause-btn {
  width: 40px; height: 40px;
  background: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
}

.play-pause-btn:hover { background: var(--beige-dark); transform: scale(1.1); }
.play-pause-btn svg { width: 16px; height: 16px; fill: white; }

.podcast-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.podcast-progress-bar {
  height: 100%;
  background: var(--beige);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s;
}

.podcast-duration { font-size: 12px; color: rgba(255,255,255,0.5); white-space: nowrap; }

/* ============================================
   MAP SEARCH SECTION
   ============================================ */
.map-section {
  padding: 80px 0;
  background: var(--off-white);
}

.map-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 600px;
}

.map-sidebar {
  background: var(--white);
  overflow-y: auto;
  max-height: 600px;
  border-left: 1px solid var(--gray-100);
}

[dir="ltr"] .map-sidebar { border-left: none; border-right: 1px solid var(--gray-100); }

.map-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.map-sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.map-sidebar-count { font-size: 13px; color: var(--gray-500); }

.map-property-list { padding: 12px; }

.map-property-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.map-property-item:hover,
.map-property-item.active {
  background: var(--beige-pale);
  border-color: var(--beige-light);
}

.map-property-thumb {
  width: 70px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.map-property-info { flex: 1; min-width: 0; }
.map-property-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-property-location { font-size: 12px; color: var(--gray-500); margin-bottom: 5px; }
.map-property-price { font-size: 14px; font-weight: 700; color: var(--blue-primary); }

.map-embed {
  position: relative;
  background: #e5e3df;
  flex: 1;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ecef 0%, #d5dde5 100%);
  min-height: 400px;
}

.map-placeholder svg { width: 60px; height: 60px; color: var(--gray-400); margin-bottom: 16px; }
.map-placeholder p { color: var(--gray-500); font-size: 15px; }

/* Map pins */
.map-pin {
  background: var(--blue-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--blue-primary);
}

/* ============================================
   QUICK CONTACT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

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

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  width: 36px; height: 36px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 18px;
  color: var(--gray-700);
}

[dir="rtl"] .modal-close { left: 20px; }
[dir="ltr"] .modal-close { right: 20px; }

.modal-close:hover { background: var(--gray-200); }

.modal-property-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 24px;
}

.modal-property-mini-img {
  width: 64px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.modal-property-mini-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.modal-property-mini-price { font-size: 16px; font-weight: 800; color: var(--blue-primary); }

/* ============================================
   STATS COUNTER STRIP
   ============================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deeper));
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.stat-item:first-child { border-left: none; }

[dir="rtl"] .stat-item { border-left: none; border-right: 1px solid rgba(255,255,255,0.12); }
[dir="rtl"] .stat-item:first-child { border-right: none; }

.stat-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--beige);
  font-family: var(--font-display);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat-label { font-size: 15px; color: rgba(255,255,255,0.8); font-weight: 500; }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  padding: 60px 0;
  background: var(--beige-pale);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}

.newsletter-content { flex: 1; }
.newsletter-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.newsletter-desc { font-size: 15px; color: var(--gray-500); }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 460px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  font-family: var(--font-arabic);
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus { border-color: var(--blue-primary); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--gray-200);
  color: var(--dark);
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: white;
}

.pagination .prev, .pagination .next {
  width: auto;
  padding: 0 18px;
  border-radius: 100px;
  gap: 6px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 110px;
  z-index: 9997;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  border: 2px solid var(--gray-100);
}

[dir="rtl"] .back-to-top { left: 32px; }
[dir="ltr"] .back-to-top { right: 32px; }

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  transform: translateY(-3px);
}

.back-to-top svg { width: 20px; height: 20px; color: var(--dark); transition: var(--transition); }
.back-to-top:hover svg { color: white; }

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
  .calculator-card { grid-template-columns: 1fr; }
  .exclusive-grid { grid-template-columns: 1fr 1fr; }
  .exclusive-card:first-child { grid-column: span 2; grid-row: auto; }
  .insights-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { max-height: 300px; }
  .vt-inner { grid-template-columns: 1fr; gap: 40px; }
  .podcast-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .search-filter-bar .filters-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .exclusive-grid { grid-template-columns: 1fr; }
  .exclusive-card:first-child { grid-column: auto; }
  .podcast-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .roi-grid { grid-template-columns: 1fr 1fr; }
  .compare-bar { display: none !important; }
  .search-filter-bar .filters-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .advanced-search { flex-direction: column; padding: 20px; border-radius: var(--radius-md); }
  .search-field { border: none; border-bottom: 1px solid var(--gray-100); padding-bottom: 12px; }
  .search-field:last-of-type { border-bottom: none; }
}
