/* Components CSS */
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(14, 19, 32, 0.8) 0%, var(--bg-primary) 80%);
}

.hero-bg-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: brightness(0.7) contrast(1.2);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.4) 0%, rgba(7, 10, 16, 0.85) 75%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: var(--gold-primary);
  font-size: 1rem;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Hero Stats Ticker */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  background: rgba(14, 19, 32, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-en-head);
}

body[lang="ar"] .stat-value, [dir="rtl"] .stat-value {
  font-family: var(--font-ar-head);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Showcase Card */
.hero-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-gold);
}

.hero-preview-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card-preview:hover .hero-preview-img {
  transform: scale(1.05);
}

.hero-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3;
}

[dir="rtl"] .hero-card-badge {
  right: auto;
  left: 1.25rem;
}

.hero-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 16, 0.95) 100%);
  z-index: 3;
}

/* Interactive Unit Finder Component */
.unit-controls {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.type-filter-group, .floor-filter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  background: rgba(21, 28, 46, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: #070a10;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-weight: 700;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.unit-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.unit-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.15);
  background: var(--bg-card-hover);
}

.unit-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.unit-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.unit-card:hover .unit-card-img {
  transform: scale(1.08);
}

.unit-status-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[dir="rtl"] .unit-status-tag {
  left: auto;
  right: 1rem;
}

.unit-status-tag.available {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.unit-status-tag.reserved {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.unit-floor-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

[dir="rtl"] .unit-floor-badge {
  right: auto;
  left: 1rem;
}

.unit-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.unit-title {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.unit-type-label {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.unit-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(7, 10, 16, 0.5);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.spec-box {
  display: flex;
  flex-direction: column;
}

.spec-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.unit-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.unit-price-box {
  display: flex;
  flex-direction: column;
}

.price-start-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.unit-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Interactive ROI Calculator */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-val-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1a2336;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  border: 2px solid #070a10;
}

.calc-results-card {
  background: linear-gradient(135deg, rgba(14, 19, 32, 0.9) 0%, rgba(22, 30, 49, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-main-box {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.result-main-val {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-light);
  margin: 0.5rem 0;
  font-family: var(--font-en-head);
}

body[lang="ar"] .result-main-val, [dir="rtl"] .result-main-val {
  font-family: var(--font-ar-head);
}

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

.metric-card {
  padding: 1.25rem;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-accent);
}

/* Mall Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.amenity-card {
  padding: 2.25rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.amenity-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.amenity-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.amenity-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.amenity-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
}
