/* ============================
   TRAIL ANCHOR NAV
   ============================ */
.trail-anchor-nav {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    width: 100%;
}

.trail-anchor-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.trail-anchor-nav a:hover {
    color: #fff;
    border-bottom-color: #f5a623;
}

/* ============================
   TRAIL SECTIONS
   ============================ */
.nairobi-trail-section { background: #fafaf7; }
.nairobi-trail-section.alt-bg { background: #fff; }

/* ============================
   TRAIL CARD
   ============================ */
.nairobi-trail-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.alt-bg .nairobi-trail-card {
  background: #f7fafa;
}

/* ============================
   PHOTO GRID
   ============================ */
.trail-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 400px;
  gap: 3px;
}
.photo-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: 400px;
}
.photo-main, .photo-top, .photo-bottom {
  overflow: hidden;
  background: #e8efee;
}
.photo-main { grid-row: span 2; }
.photo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.photo-main img, .photo-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nairobi-trail-card:hover .photo-main img,
.nairobi-trail-card:hover .photo-top img {
  transform: scale(1.04);
}
.empty-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #eaf0ef;
  color: #648381;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.empty-slot i { font-size: 1.4rem; color: #648381; }

/* ============================
   TRAIL BODY
   ============================ */
.nairobi-trail-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nairobi-trail-body h2 {
  font-size: 1.8rem;
  color: #2a3a38;
  margin: 0;
}
.trail-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.trail-meta span {
  font-size: 0.85rem;
  color: #648381;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.trail-desc {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #555;
  margin: 0;
}

/* ============================
   INFO GRID
   ============================ */
.trail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  padding: 1.25rem;
  background: #f0f5f5;
  border-radius: 8px;
}
.trail-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #648381;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.info-val {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

/* ============================
   STAR RATINGS
   ============================ */
.trail-ratings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rating-label {
  font-size: 0.82rem;
  color: #888;
  min-width: 70px;
  font-weight: 600;
}
.star-group {
  display: flex;
  gap: 4px;
}
.star-group i {
  font-size: 1.1rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.star-group i.filled { color: #f5a623; }
.star-group i:hover { transform: scale(1.2); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .trail-info-grid { grid-template-columns: 1fr; }
  .trail-anchor-inner { overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 767px) {
  .trail-photo-grid { height: 200px; }
  .nairobi-trail-body { padding: 1.25rem; }
  .nairobi-trail-body h2 { font-size: 1.4rem; }
}
.photo-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sub-hero--nairobi {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sub-hero--nairobi {
    overflow: visible;
}

.sub-hero--nairobi .ms-anchor-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-hero--nairobi {
    background-image: url('images/ngong-road-1.jpg');
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.sub-hero--nairobi .ms-anchor-bar a {
    white-space: nowrap;
}