/* Dedicated Camp Detail Page Extensions (builds on styles.css) */

.camp-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 3.6rem;
  color: #fff;
  overflow: hidden;
}

.camp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.camp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.camp-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 25, 34, 0.52) 0%,
    rgba(9, 25, 34, 0.42) 40%,
    rgba(9, 25, 34, 0.88) 100%
  );
}

.camp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: #f3d4a2;
}

.camp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.camp-badge-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(197, 91, 52, 0.92);
  color: #fff;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
}

.camp-rating-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: #f6dcb0;
}

.camp-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  margin-bottom: 0.95rem;
}

.camp-hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 64ch;
  margin: 0 0 1.6rem;
}

.camp-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.camp-hero-specs span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

/* Quick Jump Sub-Nav */
.camp-subnav {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: rgba(249, 245, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.camp-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.78rem 0;
}

.subnav-links {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.subnav-links a:hover {
  color: var(--teal);
}

.subnav-switch {
  display: flex;
  gap: 0.45rem;
  white-space: nowrap;
}

.subnav-camp-link {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  transition: all 0.18s ease;
}

.subnav-camp-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.subnav-camp-link.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Gallery Strip */
.camp-gallery-section {
  padding: 2.4rem 0 0;
}

.camp-gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.gallery-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--hairline);
}

.gallery-tile.featured {
  grid-row: 1 / span 2;
}

.gallery-tile.wide-tile {
  grid-column: 2 / span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1.05rem;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 31, 40, 0) 0%, rgba(14, 31, 40, 0.82) 100%);
}

/* 2-Column Main Detail Layout */
.camp-detail-shell {
  padding: 3.2rem 0 5.5rem;
}

.camp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.78fr);
  gap: 2.8rem;
  align-items: start;
}

.detail-block {
  padding-bottom: 3.2rem;
  margin-bottom: 3.2rem;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}

.detail-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-block h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  margin-bottom: 0.85rem;
}

.detail-lead {
  font-size: 1.03rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

/* Ideal For Box */
.ideal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.ideal-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ideal-item::before {
  content: '✓';
  color: var(--terracotta);
  font-weight: 800;
  flex-shrink: 0;
}

/* Expanded Full Itinerary Cards */
.full-itinerary-list {
  display: grid;
  gap: 1.25rem;
}

.itinerary-day-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.itinerary-day-header {
  padding: 1.15rem 1.45rem;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.day-badge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--terracotta);
  flex-shrink: 0;
}

.itinerary-day-header h3 {
  font-size: 1.45rem;
  margin: 0;
}

.itinerary-day-header p {
  width: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.itinerary-day-slots {
  padding: 1.25rem 1.45rem;
  display: grid;
  gap: 0.8rem;
}

.slot-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  font-size: 0.93rem;
}

.slot-time {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.85rem;
}

/* Riad & Food Compact Split */
.riad-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.35rem;
}

.riad-mini-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.riad-mini-card h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--teal);
}

.riad-mini-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
}

/* Sticky Sidebar Widget */
.camp-sidebar {
  position: sticky;
  top: 96px;
}

.camp-sidebar .summary-obsidian {
  padding: 1.55rem;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.camp-sidebar .summary-ledger {
  padding: 0.85rem 0;
  margin-bottom: 0.95rem;
  gap: 0.45rem;
}

.camp-sidebar .deposit-panel {
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
}

.sidebar-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f3d4a2;
  margin: 0.9rem 0 0.42rem;
}

.sidebar-room-stack {
  display: grid;
  gap: 0.65rem;
}

.sidebar-room-btn {
  text-align: left;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.18s ease;
}

.sidebar-room-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-room-btn.selected {
  background: rgba(255, 255, 255, 0.18);
  border-color: #f3d4a2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.sidebar-room-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.sidebar-room-top strong {
  font-size: 0.94rem;
}

.sidebar-room-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f6dcb0;
}

.sidebar-room-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.sidebar-input,
.sidebar-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 32, 42, 0.55);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}

.sidebar-select option {
  background: var(--ink);
  color: #fff;
}

.checkout-calc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 0.4rem;
}

.sidebar-guarantees {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Other Camps Cross-Navigation */
.other-camps-section {
  background: var(--parchment);
  padding: 4.8rem 0;
  border-top: 1px solid var(--hairline);
}

.other-camps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.other-camp-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.other-camp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.other-camp-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.other-camp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other-camp-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.other-camp-body small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--terracotta);
}

.other-camp-body h3 {
  font-size: 1.45rem;
  margin: 0;
}

.other-camp-meta {
  font-size: 0.84rem;
  color: var(--muted);
}

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

.other-camp-footer strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--teal);
}

/* Lightbox Modal */
.lightbox-dialog {
  width: min(920px, 100%);
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.lightbox-dialog img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

.lightbox-caption {
  padding: 1.15rem 1.5rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Responsive */
@media (max-width: 1060px) {
  .camp-detail-grid {
    grid-template-columns: 1fr;
  }
  .camp-sidebar {
    position: static;
  }
  .camp-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 210px;
  }
  .gallery-tile.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .gallery-tile.wide-tile {
    grid-column: auto;
  }
  .other-camps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .camp-gallery-grid,
  .ideal-grid,
  .riad-highlights-grid {
    grid-template-columns: 1fr;
  }
  .camp-gallery-grid {
    grid-template-rows: repeat(4, 210px);
  }
  .slot-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
