/* =============================================
   AIKYAM REALTY — PROJECT DETAIL PAGE STYLES
   ============================================= */

/* ── DETAIL HERO ── */
.detail-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.5) 40%, rgba(10, 22, 40, 0.3) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
}

.detail-hero .page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  justify-content: flex-start;
}

.detail-hero .page-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-hero .page-breadcrumb a:hover {
  color: var(--gold-light);
}

.detail-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.detail-badge.badge-booking {
  background: rgba(100, 200, 100, 0.18);
  color: #7ed97e;
  border: 1px solid rgba(100, 200, 100, 0.3);
}

.detail-badge.badge-construction {
  background: rgba(255, 180, 60, 0.18);
  color: #ffbf4d;
  border: 1px solid rgba(255, 180, 60, 0.3);
}

.detail-badge.badge-upcoming {
  background: rgba(100, 150, 255, 0.2);
  color: #99b8ff;
  border: 1px solid rgba(100, 150, 255, 0.3);
}

.detail-badge.badge-gold {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--white);
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.detail-location i {
  font-size: 0.85rem;
}

.detail-hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-hero-price .price-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-hero-price .price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.detail-hero-price .price-amount sup {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.detail-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── STATS BAR ── */
.detail-stats-bar {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 0;
}

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

.detail-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid rgba(201, 168, 76, 0.1);
  transition: background 0.3s ease;
}

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

.detail-stat-item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.detail-stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  font-size: 1.1rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.detail-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-stat-value {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── DETAIL SECTIONS ── */
.detail-section {
  padding: 90px 0;
}

.detail-about {
  background: var(--navy-mid);
}

.detail-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.detail-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.detail-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.detail-highlight-item:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.08);
}

.detail-highlight-item i {
  color: var(--gold);
  font-size: 0.9rem;
}

.detail-about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.detail-about-image img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.detail-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  padding: 18px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail-img-badge .badge-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.detail-img-badge .badge-text {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── AMENITIES ── */
.detail-amenities {
  background: var(--navy);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.amenity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 14px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: default;
}

.amenity-card:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
}

.amenity-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.amenity-card:hover .amenity-icon {
  background: var(--gold);
  color: var(--navy);
}

.amenity-card span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.amenity-card:hover span {
  color: var(--white);
}

/* ── CTA BOX ── */
.detail-cta-section {
  background: var(--navy-mid);
}

.detail-cta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.detail-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.detail-cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 14px;
  position: relative;
}

.detail-cta-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  position: relative;
}

.detail-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── ENQUIRY MODAL (same as projects page) ── */
.enquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.enquiry-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.enquiry-modal {
  background: linear-gradient(160deg, #0e1e36 0%, #0c2240 50%, #112952 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 0;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(201, 168, 76, 0.08);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 90vh;
  overflow-y: auto;
}

.enquiry-modal-overlay.active .enquiry-modal {
  transform: translateY(0) scale(1);
}

.enquiry-modal-header {
  padding: 32px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.enquiry-modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
}

.enquiry-modal-header h3 span {
  color: var(--gold);
  display: block;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

.enquiry-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.enquiry-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.enquiry-modal-body {
  padding: 28px 32px 36px;
}

.enquiry-form-group {
  margin-bottom: 18px;
}

.enquiry-form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.enquiry-form-group input,
.enquiry-form-group textarea,
.enquiry-form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.enquiry-form-group input:focus,
.enquiry-form-group textarea:focus,
.enquiry-form-group select:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.enquiry-form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.enquiry-form-group select option {
  background: var(--navy);
  color: var(--white);
}

.enquiry-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.enquiry-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: 6px;
}

.enquiry-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 168, 76, 0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .detail-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-stat-item:nth-child(2) {
    border-right: none;
  }

  .detail-stat-item:nth-child(3),
  .detail-stat-item:nth-child(4) {
    border-top: 1px solid rgba(201, 168, 76, 0.1);
  }

  .detail-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .detail-hero {
    min-height: 60vh;
    padding-bottom: 40px;
  }

  .detail-title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .detail-hero-price .price-amount {
    font-size: 2rem;
  }

  .detail-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-highlights {
    grid-template-columns: 1fr;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-cta-box {
    padding: 36px 24px;
  }

  .enquiry-form-row {
    grid-template-columns: 1fr;
  }

  .enquiry-modal-body {
    padding: 24px 20px 32px;
  }

  .enquiry-modal-header {
    padding: 24px 20px 0;
  }
}

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

  .detail-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

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

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .amenity-card {
    padding: 20px 12px;
  }
}
