/* ==========================================================================
   Salam Africa — single-destination.css
   ========================================================================== */

/* ─── LAYOUT: MAIN + SLIM ASIDE ────────────────────────────────────────────── */
.sdest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 5rem;
  padding: 5rem 0 8rem;
  align-items: start;
}

/* ─── SECTIONS ─────────────────────────────────────────────────────────────── */
.sdest-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.sdest-section:last-child {
  border-bottom: none;
}
.sdest-section h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 1.4rem;
}
.sdest-section p {
  margin-bottom: 1.2rem;
}

/* ─── LEAD TEXT ────────────────────────────────────────────────────────────── */
.sdest-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

/* ─── GALLERY GRID ─────────────────────────────────────────────────────────── */
.sdest-gallery {
  columns: 3;
  column-gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .sdest-gallery {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .sdest-gallery {
    columns: 1;
  }
}

/* ─── SIDEBAR ──────────────────────────────────────────────────────────────── */
.sdest-sidebar {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.sdest-sidebar h4 {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.sdest-sidebar--spaced {
  margin-bottom: 1.25rem;
}
.sdest-sidebar--flush {
  padding: 0;
  overflow: hidden;
}
.sdest-sidebar--top-spaced {
  margin-top: 1.25rem;
}

.sdest-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.sdest-fact:first-of-type {
  margin-top: 0;
}
.sdest-fact .lbl {
  display: flex;
  align-items: center;
}
.sdest-fact .lbl svg {
  opacity: 0.6;
  margin-right: 8px;
}
.sdest-fact .val {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}

/* ─── BEST TIME TABLE ──────────────────────────────────────────────────────── */
.best-time-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.best-time-row:last-child {
  border-bottom: none;
}

.best-time-row > span:first-child {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

/* ─── QUICK FACTS ──────────────────────────────────────────────────────────── */

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sdest-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
}
@media (max-width: 600px) {
  .attractions-grid {
    grid-template-columns: 1fr;
  }
  .sa-accom-card {
    min-width: 85vw;
  }
}

/* Overview Section */
.sdest-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.sdest-title {
  margin-top: 0;
  position: relative;
}
.sa-floating-arrow {
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(-50%);
  width: 5rem;
  opacity: 0.8;
  z-index: 1;
}
@media (max-width: 768px) {
  .sa-floating-arrow {
    display: none; /* Hide floating arrow on small screens to avoid overlap */
  }
}

/* Attractions Grid */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.attractions-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
}
.attractions-item-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-dark);
}
.attractions-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.attractions-item:hover .attractions-item-img img {
  transform: scale(1.05);
}
.attractions-item:hover .sa-card-arrow {
  transform: translateX(5px);
  filter: brightness(1.1) saturate(1.1);
}
.attractions-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}
.attractions-info {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.attractions-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
}
.attractions-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery */
.sdest-gallery a {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: 0;
  overflow: hidden;
}
.sdest-gallery a img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.sdest-gallery a:hover img {
  transform: scale(1.03);
}

/* Accommodations Strip */
.sa-accom-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sa-accom-strip::-webkit-scrollbar {
  height: 6px;
}
.sa-accom-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}
.sa-accom-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.sa-accom-card {
  position: relative;
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  min-height: 380px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 0;
}
.sa-accom-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-dark);
}
.sa-accom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sa-accom-card:hover .sa-accom-img img {
  transform: scale(1.05);
}
.sa-accom-card:hover .sa-card-arrow {
  transform: translateX(5px);
  filter: brightness(1.1) saturate(1.1);
}
.sa-accom-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}
.sa-accom-info {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.sa-accom-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
}
.sa-accom-meta {
  font-size: 0.9rem;
  color: var(--sage-light);
  font-weight: 500;
}

/* Experiences / Sidebar Badges */
.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(44, 76, 59, 0.08);
  border: 1px solid rgba(44, 76, 59, 0.1);
  color: var(--forest, #2c4c3b);
  transition: all 0.2s ease;
  text-decoration: none;
}
.sa-badge:hover {
  background: var(--forest, #2c4c3b);
  color: #fff;
  border-color: var(--forest, #2c4c3b);
}
.sa-badge svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.sa-badge:hover svg {
  opacity: 1;
}
.sp-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Best Time Reason Tooltip Trick */
.bt-reason {
  display: block;
  overflow: hidden;
  font-weight: 500;
  color: var(--gold);
}
