/* ============================================
   RIHET L'BLAD - Pages Établissements Détail
   ============================================ */

/* === DETAIL HERO === */
.detail-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}
.detail-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,36,24,.3) 0%, rgba(44,36,24,.55) 100%);
}
.detail-hero-content {
  position: absolute;
  bottom: 2.5rem; left: 0; right: 0;
  z-index: 2;
}
.detail-hero-content .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.detail-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  background: var(--gold);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: background .3s;
}
.detail-hero-cta:hover { background: var(--gold-hover); color: var(--white); }

/* === FEATURES BAR === */
.features-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.feature-item svg {
  width: 18px; height: 18px;
  color: var(--gold);
}

/* === DISCOVER GALLERY === */
.discover-section {
  padding: 4rem 0 3rem;
  background: var(--bg);
}
.discover-section .section-header { margin-bottom: 2rem; }

.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.discover-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  height: 220px;
}
.discover-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}
.discover-item:hover img {
  transform: scale(1.08);
}
.discover-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .35s;
  pointer-events: none;
}
.discover-item:hover::after {
  background: rgba(0,0,0,.3);
}
.discover-zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px; height: 52px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: transform .35s cubic-bezier(.25,.8,.25,1), opacity .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  pointer-events: none;
}
.discover-zoom-icon svg {
  width: 22px; height: 22px;
  color: var(--primary);
  stroke: var(--primary);
}
.discover-item:hover .discover-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* === VIRTUAL TOUR === */
.tour-section {
  padding: 3rem 0 4rem;
  background: var(--bg);
}
.tour-section .section-header { margin-bottom: 2rem; }

.tour-player {
  position: relative;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 640px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.tour-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === REVIEWS / TESTIMONIALS === */
.reviews-section {
  padding: 4rem 0;
  background: var(--cream);
}
.reviews-section .section-header { margin-bottom: 2.5rem; }

.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
}
.reviews-stars {
  display: flex;
  gap: .15rem;
}
.reviews-stars svg {
  width: 20px; height: 20px;
  color: var(--gold);
  fill: var(--gold);
}
.reviews-score {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}
.reviews-count {
  font-size: .82rem;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  display: flex;
  gap: .1rem;
  margin-bottom: .75rem;
}
.review-stars svg {
  width: 14px; height: 14px;
  color: var(--gold);
  fill: var(--gold);
}
.review-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.review-avatar svg { width: 18px; height: 18px; }
.review-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg);
}
.review-date {
  font-size: .72rem;
  color: var(--muted);
}

/* === FORMULES & PRIX === */
.pricing-section {
  padding: 4rem 0;
  background: var(--bg);
}
.pricing-section .section-header { margin-bottom: 2.5rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
  z-index: 1;
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: .75rem;
  margin-top: .5rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
}
.pricing-unit {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  padding: .35rem 0;
  border-bottom: 1px solid var(--cream);
}
.pricing-features li:last-child { border: none; }
.pricing-features svg {
  width: 16px; height: 16px;
  color: var(--gold);
  min-width: 16px;
  margin-top: 1px;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: .7rem;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  transition: all .3s;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.pricing-cta:hover {
  background: var(--gold);
  color: var(--white);
}
.pricing-card.featured .pricing-cta {
  background: var(--gold);
  color: var(--white);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* === RESERVATION FORM (detail page) === */
.reservation-section {
  padding: 4rem 0;
  background: var(--cream);
}
.reservation-section .section-header { margin-bottom: 2rem; }

.reservation-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.reservation-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.reservation-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reservation-submit {
  margin-top: 1rem;
  width: 100%;
  padding: .85rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.reservation-submit:hover { background: var(--terracotta-hover); }

/* Gold line accent on top of form */
.reservation-form::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px 4px 0 0;
  margin: -2.5rem -2.5rem 2rem;
  width: calc(100% + 5rem);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* === RESPONSIVE DETAIL === */
@media (max-width: 1024px) {
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .features-list { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .detail-hero { height: 55vh; min-height: 360px; }
  .discover-grid { grid-template-columns: 1fr 1fr; }
  .discover-item { height: 170px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .features-list { gap: 1rem; justify-content: flex-start; overflow-x: auto; padding: 0 1rem; }
  .reservation-form .form-row-3 { grid-template-columns: 1fr; }
  .reservation-form .form-row { grid-template-columns: 1fr; }
  .reservation-form { padding: 1.75rem; }
  .reservation-form::before {
    margin: -1.75rem -1.75rem 1.5rem;
    width: calc(100% + 3.5rem);
  }
  .tour-player { height: 450px; }
}

@media (max-width: 480px) {
  .discover-grid { grid-template-columns: 1fr; }
  .discover-item { height: 200px; }
  .tour-player { height: 350px; }
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transform: scale(.85);
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
  object-fit: contain;
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-family: var(--font-body);
}
