/* ─────────────────────────────────────────────────────────────────────
   Shared "modern detail page" design system.
   Reused by activite, hotel, chambre, restaurant, voiture and hopital
   detail pages so they all share one consistent, professional, fully
   responsive layout language.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --brand: #059669;
  --brand-dark: #047857;
  --text-main: #111827;
  --text-muted: #6b7280;
}

.detail-wrapper {
  max-width: 1200px;
  margin: auto;
}

/* Gallery */
.detail-gallery {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: #f3f4f6;
}
.detail-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 640px) {
  .detail-gallery img {
    height: 260px;
  }
}

/* Info / booking card */
.detail-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7f0e8;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.06);
}
@media (max-width: 640px) {
  .detail-card {
    padding: 20px;
  }
}

.detail-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
}
.detail-price-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.detail-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.2s;
  width: 100%;
  border: none;
  cursor: pointer;
}
.detail-reserve-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.detail-unavailable-btn {
  display: block;
  width: 100%;
  background: #f3f4f6;
  color: #9ca3af;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px dashed #d1d5db;
}

.detail-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.detail-info-row svg {
  color: var(--brand);
}

.detail-badge {
  background: #ecfdf5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-badge.is-negative {
  background: #fef2f2;
  color: #b91c1c;
}

.detail-amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #f1f5f9;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}
.detail-amenity svg {
  color: var(--brand);
}

.detail-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.detail-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.detail-fav-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Sticky sidebar card on desktop, full-width stacked on mobile/tablet */
.detail-sticky {
  position: static;
}
@media (min-width: 1024px) {
  .detail-sticky {
    position: sticky;
    top: 6rem;
  }
}

/* Responsive card grids used for chambres / voitures / similar listings */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
