/* ===================================== */
/* DETAILS MODAL - DEDICATED STYLES      */
/* ===================================== */

#detailsModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400 !important;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px 24px 32px;
}

#detailsModal.active {
  display: flex;
}

#detailsModal .modal-content {
  width: min(1100px, 100%);
  max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  animation: detailsModalSlide 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

#detailsModal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2a3b;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.modal-close:hover {
  background: #f7f5ee;
}

#detailsModal .modal-header {
  padding: 40px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #ede7dc;
}

#detailsModal .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 24px;
}

#detailsModal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#detailsModal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#detailsModal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(199, 160, 105, 0.7);
  border-radius: 999px;
}

#detailsModal .modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #1b2330;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

#detailsModal .modal-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #7a7f88;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gallery-section {
  display: grid;
  gap: 18px;
  padding: 0 40px 24px;
}

.main-image {
  width: 100%;
  height: 375px;
  object-fit: cover;
  border-radius: 0;
}

.thumbnail-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail {
  width: 110px;
  min-width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  transform: translateY(-2px);
}

.thumbnail.active {
  border-color: #cbae71;
}

.brief-description {
  padding: 20px 24px;
  margin: 0 40px 24px;
  background: #f8f8f8;
  border-radius: 0px;
  color: #32373b;
  font-size: 0.96rem;
  line-height: 1.8;
}

#detailsModal .tabs-container {
  padding: 0 40px 36px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #ede7dc;
  padding-bottom: 20px;
}

.tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 14px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7f88;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #cbae71;
  border-color: #cbae71;
}

.tab-btn:hover {
  color: #1b2330;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.zone-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(203, 174, 113, 0.16);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.05);
}

.zone-card:hover,
.zone-card.selected {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.10);
}

.zone-card.selected {
  border-color: #cbae71;
}

.zone-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.zone-card-content {
  padding: 22px 22px 20px;
}

.zone-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.zone-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1b2330;
  margin-bottom: 6px;
}

.zone-card-capacity {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c1a166;
}

.zone-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.zone-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #5e646b;
  line-height: 1.6;
}

.zone-card-feature i {
  width: 18px;
  margin-top: 2px;
  color: #cbae71;
}

.detail-panel {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  background: #f9f6f0;
  border-radius: 14px;
}

.detail-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1b2330;
}

.detail-description {
  font-size: 0.9rem;
  color: #4f575f;
  line-height: 1.75;
}

.detail-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.detail-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #5e646b;
}

.detail-features li i {
  color: #cbae71;
  min-width: 16px;
}

.empty-detail {
  padding: 32px 0;
  color: #7a7f88;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  #detailsModal {
    padding: 12px 0 0;
  }

  #detailsModal .modal-content {
    max-height: 95vh;
  }

  #detailsModal .modal-header {
    padding: 28px 24px 18px;
  }

  .gallery-section,
  .brief-description,
  .tabs-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main-image {
    height: 300px;
  }

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

@media (max-width: 640px) {
  #detailsModal {
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  #detailsModal .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  #detailsModal .modal-header {
    padding: 22px 18px 16px;
  }

  #detailsModal .modal-close {
    position: fixed;
    top: env(safe-area-inset-top, 14px);
    right: env(safe-area-inset-right, 14px);
    z-index: 1501;
  }

  .gallery-section,
  .brief-description,
  .tabs-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-image {
    height: 260px;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  .modal-subtitle {
    font-size: 0.72rem;
  }

  .thumbnail {
    width: 92px;
    min-width: 92px;
    height: 68px;
  }

  .zone-card-content {
    padding: 14px;
  }

  .tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 12px 14px;
    font-size: 0.72rem;
  }
}
