/* ============================
   TRAILS PAGE HERO
   ============================ */
.trails-hero {
    position: relative;
    height: 55vh;
    background-image: url("images/ngong-1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 80px;
}
.trails-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.trails-hero-content {
    position: relative;
    z-index: 1;
    color: white;
}
.trails-hero-content h1 {
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 16px;
}
.trails-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
}

/* ============================
   TRAILS SECTION
   ============================ */
.trails-section {
    background: #fafaf7;
}
.trails-list {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================
   TRAIL CARD
   ============================ */
.trail-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    margin-bottom: 0;
}
.trail-card.active {
    display: flex;
}

/* ============================
   PHOTO GRID (Google-style)
   ============================ */
.trail-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 400px;
    gap: 3px;
}
.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;
    height: 400px;
}
.photo-main img,
.photo-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.trail-card:hover .photo-main img,
.trail-card:hover .photo-top img {
    transform: scale(1.04);
}
.photo-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #eaf0ef;
    color: #648381;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: default;
}
.empty-slot i {
    font-size: 1.4rem;
    color: #648381;
}

/* ============================
   TRAIL BODY
   ============================ */
.trail-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.trail-body h3 {
    font-size: 1.5rem;
    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;
}

/* ============================
   STORYTELLER PREVIEW
   ============================ */
.trail-storyteller {
    border-left: 3px solid #648381;
    padding-left: 1rem;
}
.storyteller-excerpt {
    font-size: 0.92rem;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}
.storyteller-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #648381;
    text-decoration: none;
    transition: color 0.2s;
}
.storyteller-link:hover {
    color: #2a3a38;
}

/* ============================
   TRAIL RATINGS
   ============================ */
.trail-ratings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    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 ease, transform 0.15s ease;
}
.star-group i.filled {
    color: #f5a623;
}
.star-group i:hover {
    transform: scale(1.2);
}

/* ============================
   PAGINATION
   ============================ */
.trails-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.trail-arrow {
    background: #648381;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.trail-arrow:hover { background: #4f6b69; }
.trail-arrow:disabled { background: #ccc; cursor: default; }
.trail-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.trail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cdd9d8;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
}
.trail-dot.active {
    background: #648381;
    transform: scale(1.3);
}

/* ============================
   OUR STORYTELLERS
   ============================ */
.storytellers-section { background: #fff; }
.storytellers-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.storytellers-inner h2 {
    font-size: 2.2rem;
    color: #2a3a38;
    margin-bottom: 0.5rem;
}
.storytellers-sub {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.storytellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.storyteller-card {
    background: #f7fafa;
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    border-left: 4px solid #648381;
}
.storyteller-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    margin-bottom: 1rem;
}
.storyteller-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #648381;
}
.storytellers-cta {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #648381;
    text-decoration: none;
    border-bottom: 2px solid #648381;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.storytellers-cta:hover { color: #2a3a38; border-color: #2a3a38; }

/* ============================
   TOP RATED
   ============================ */
.top-rated-section { background: #fafaf7; }
.top-rated-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.top-rated-inner h2 {
    font-size: 2.2rem;
    color: #2a3a38;
    margin-bottom: 0.5rem;
}
.top-rated-sub {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.top-rated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.rated-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-align: left;
}
.rated-card h3 {
    font-size: 1.2rem;
    color: #2a3a38;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.rated-card .rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}
.rated-card .rating-label {
    font-size: 0.85rem;
    color: #666;
    min-width: 70px;
}
.stars { color: #f5a623; font-size: 0.95rem; flex: 1; text-align: center; }
.rating-val { font-size: 0.85rem; font-weight: bold; color: #2a3a38; min-width: 30px; text-align: right; }
.rating-row.overall { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #eee; }
.rating-row.overall .rating-label { font-weight: bold; color: #2a3a38; }
.rating-row.overall .rating-val { color: #648381; }

/* ============================
   CTA BANNER
   ============================ */
.trails-cta-banner {
    background: #648381;
    padding: 80px;
    text-align: center;
    color: white;
}
.trails-cta-inner { max-width: 600px; margin: 0 auto; }
.trails-cta-inner h2 { font-size: 2.2rem; margin-bottom: 16px; line-height: 1.2; }
.trails-cta-inner p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.cta-banner-btn {
    text-decoration: none;
    background: white;
    color: #648381;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.25s;
    display: inline-block;
}
.cta-banner-btn:hover { background: #f0f0eb; }

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================
   TABLET
   ============================ */
@media (max-width: 1024px) {
    .trails-hero { padding: 0 40px; }
    .trails-hero-content h1 { font-size: 3.5rem; }
    .trails-cta-banner { padding: 60px 40px; }
    .storytellers-grid { grid-template-columns: 1fr 1fr; }
    .top-rated-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   MOBILE
   ============================ */
@media (max-width: 767px) {
    .trails-hero { padding: 0 20px; height: 45vh; align-items: flex-end; padding-bottom: 32px; }
    .trails-hero-content h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
    .trail-photo-grid { grid-template-columns: 1fr !important; height: auto !important; }
    .photo-stack { grid-template-columns: 1fr 1fr; grid-template-rows: unset !important; height: 120px; }
    .trails-cta-banner { padding: 50px 20px; }
    .trails-cta-inner h2 { font-size: 1.6rem; }
    .storytellers-grid { grid-template-columns: 1fr; }
    .top-rated-grid { grid-template-columns: 1fr; }
    .trail-body { padding: 1.25rem; }
    .photo-main.empty-slot { display: none !important; }
.trail-photo-grid:has(.photo-main.empty-slot) { grid-template-columns: 1fr !important; }
.photo-main {
    grid-row: span 1 !important;
    height: 220px !important;
}
.photo-stack {
    height: 220px !important;
    grid-template-rows: 1fr 1fr;
}
}


