/* =============================================
   GLOBAL STYLES - Crown Plains Tanzania
   Primary:   #f8f8f8  ("What Our Guests Say" bg)
   Secondary: #f4ebd9  ("Travel with people..." bg)
   Accent:    #1f4d3a  ("About us" button)
   Gold:      #d4af37  (yellow text - unchanged)
   Header & footer keep their original dark colours.
   ============================================= */
:root {
    --primary: #f8f8f8;
    --secondary: #f4ebd9;
    --accent: #1f4d3a;
    --accent-dark: #143024;
    --gold: #d4af37;
    --ink: #1b1b1b;
    --ink-soft: #555;
}

html {
    scroll-behavior: smooth;
}

/* =============================================
   HEADER LAYOUT + TOP BAR
   ============================================= */
body>nav {
    flex-wrap: wrap;
    z-index: 1000;
}

.topbar {
    flex: 0 0 100%;
    order: -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #ddd;
    background: #0d0d0d;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.topbar a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--gold);
}

.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar-phone i {
    color: var(--gold);
    font-size: 0.8rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-social a {
    font-size: 0.85rem;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    color: #eee;
    font: 600 0.78rem 'Montserrat', sans-serif;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover,
.lang-switch.open .lang-btn {
    border-color: var(--gold);
    color: var(--gold);
}

.lang-btn .fa-chevron-down {
    font-size: 0.62rem;
    transition: transform 0.2s ease;
}

.lang-switch.open .lang-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lang-flag svg {
    width: 20px;
    height: 14px;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.lang-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    min-width: 210px;
    max-height: min(65vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-switch.open .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-list li:last-child {
    border-bottom: none;
}

.lang-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: 0;
    color: #e6e6e6;
    font: 500 0.92rem 'Montserrat', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.lang-list button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.lang-list button.active {
    color: var(--gold);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.06);
}

/* Hide Google Translate's own bar and tooltips */
body>.skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
    display: none !important;
}

body {
    top: 0 !important;
}

font[style*="background-color"] {
    background: none !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none;
}

/* =============================================
   DESTINATIONS MEGA DROPDOWN (desktop)
   ============================================= */
.nav-links li.has-mega {
    position: relative;
    padding: 22px 0;
    margin: -22px 0;
}

.nav-links li.has-mega>a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-caret {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.has-mega:hover .nav-caret,
.has-mega:focus-within .nav-caret {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1001;
    width: min(640px, 92vw);
    padding: 22px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega-heading {
    display: block;
    margin: 0 4px 14px;
    color: var(--gold);
    font: 700 0.7rem 'Montserrat', sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.nav-links .mega-menu a.mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.nav-links .mega-menu a.mega-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.mega-item img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.mega-item strong {
    display: block;
    color: #fff;
    font: 600 1.02rem 'Playfair Display', serif;
    line-height: 1.25;
}

.mega-item small {
    display: block;
    margin-top: 3px;
    color: #9a9a9a;
    font: 400 0.78rem 'Montserrat', sans-serif;
    line-height: 1.4;
}

.mega-item:hover strong {
    color: var(--gold);
}

.nav-links .mega-menu a.mega-all {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.nav-links .mega-menu a.mega-all:hover {
    color: #fff;
}

/* =============================================
   HAMBURGER + MOBILE HEADER + SLIDE-IN DRAWER
   ============================================= */
.mobile-header-controls {
    display: none;
    align-items: center;
    gap: 10px;
    order: 3;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.8px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.8px) rotate(-45deg);
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0b0d0c;
    color: #e8e8e8;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 22px 10px;
}

.mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #141715;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-drawer-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 24px 36px;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
}

.mobile-drawer-links>a {
    display: block;
    width: 100%;
    padding: 17px 2px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    font: 500 0.85rem 'Montserrat', sans-serif;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-drawer-links>a.active,
.mobile-drawer-links>a:hover {
    color: var(--gold);
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.mobile-drawer-tagline {
    color: #8f9491;
    font: 500 0.68rem 'Montserrat', sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
}

.drawer-btn-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.65);
    border-radius: 4px;
    color: var(--gold);
    font: 500 0.8rem 'Montserrat', sans-serif;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.drawer-btn-gold:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0b0d0c;
}

.mobile-drawer-quick {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.mobile-drawer-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #141715;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #e8e8e8;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-drawer-quick a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 980;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.wa-float:hover {
    transform: scale(1.07);
}

/* =============================================
   HERO SLIDER CONTROLS (home page)
   ============================================= */
.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.hero-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.hero-dots {
    display: flex;
    gap: 6px;
}

.hero-dots button {
    width: 20px;
    height: 19px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.4);
    background-clip: content-box;
    border: 0;
    cursor: pointer;
}

.hero-dots button.active {
    background-color: #fff;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.2;
}

.team-feature h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.3;
}

.team-feature p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.explore-text h2 {
    font-size: clamp(2.2rem, 6vw, 4.5rem) !important;
    line-height: 1.05;
}

.explore-text p {
    line-height: 1.8;
}

.team-top h2 {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
}

.reviews-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.page-header h1 {
    font-size: clamp(2.2rem, 6vw, 4rem) !important;
}

/* =============================================
   COLOUR THEME (page sections & buttons)
   ============================================= */
.btn-primary,
.explore-gallery .show-more-btn,
.btn-submit-review,
.submit-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent) !important;
}

.btn-primary:hover,
.explore-gallery .show-more-btn:hover,
.btn-submit-review:hover,
.submit-btn:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
}

.hero-buttons .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.tab-btn {
    color: var(--ink) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

body:has(.hero-slider) {
    background: var(--primary);
}

.popular-tours {
    background: var(--secondary) !important;
}

.popular-tours .section-title {
    color: var(--ink) !important;
}

.slider-nav-buttons button {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--ink) !important;
}

.slider-nav-buttons button:hover {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: #fff !important;
}

.slider-nav-buttons span {
    color: var(--ink-soft) !important;
}

.explore-section {
    background: var(--primary) !important;
}

.explore-text h2 {
    color: var(--ink);
}

.explore-text p {
    color: var(--ink-soft) !important;
}

.travel-team-section {
    background: var(--secondary) !important;
}

.reviews-section {
    background: var(--primary) !important;
}

.see-all-reviews a:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.team-features {
    counter-reset: feature;
    border-top: none !important;
    padding-top: 0 !important;
}

.team-feature {
    counter-increment: feature;
    padding-top: 22px;
    border-top: 2px solid var(--accent);
}

.team-feature::before {
    content: counter(feature, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.team-feature h4 {
    color: var(--ink) !important;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.team-feature p {
    color: var(--ink-soft) !important;
    max-width: 32ch;
}

.site-reviews {
    background: var(--primary) !important;
    color: var(--ink) !important;
    border-top: none !important;
}

.site-reviews-header h2,
.site-reviews .review-author h4 {
    color: var(--ink) !important;
}

.site-reviews-header p,
.site-reviews .review-author span,
.site-reviews .review-list-message {
    color: var(--ink-soft) !important;
}

.site-reviews .review-card {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}

.site-reviews .review-card p {
    color: #444 !important;
}

.site-reviews-actions a:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

body:has(#galleryGrid) {
    background: var(--primary) !important;
}

body:has(.help-section) {
    background: var(--primary) !important;
    color: var(--ink) !important;
}

.help-section {
    background: #fff !important;
    border-color: #e7dfcc !important;
}

.help-section:nth-of-type(even) {
    background: var(--secondary) !important;
}

.help-section h3 {
    color: var(--ink) !important;
}

.help-section p,
.help-section li {
    color: var(--ink-soft) !important;
}

body:has(main .reviews-header h1) {
    background: var(--primary) !important;
}

/* =============================================
   TABLET & PHONE
   ============================================= */
@media (max-width: 900px) {
    .mobile-header-controls {
        display: flex;
    }

    .topbar,
    body>nav .nav-links,
    body>nav .nav-actions,
    body>nav .plan-link,
    .site-header-reviews-mobile {
        display: none !important;
    }

    body>nav {
        position: sticky;
        top: 0;
        min-height: 70px;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 5% !important;
        background: rgba(10, 10, 10, 0.96) !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
    }

    .logo {
        gap: 0 !important;
        min-width: 0;
    }

    .logo-text,
    .logo>span:not(.logo-title) {
        display: none !important;
    }

    .logo-img,
    .logo img {
        width: 48px !important;
        height: 48px !important;
        object-fit: cover;
        border-radius: 50%;
        background: #080808;
        border: 1px solid rgba(212, 175, 55, 0.35);
    }

    .lang-btn {
        padding: 7px 11px;
        font-size: 0.78rem;
    }

    .lang-list {
        top: calc(100% + 12px);
        min-width: 210px;
        max-height: min(65vh, 460px);
    }
}

@media (max-width: 768px) {

    /* ----- Home hero: text sizes like the reference ----- */
    .hero-slider {
        align-items: flex-start !important;
        padding: 120px 6% 0 !important;
    }

    .hero-content .subtitle {
        font-size: 1.35rem !important;
        margin-bottom: 8px !important;
    }

    .hero-content h1 {
        font-size: 2.3rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        margin-bottom: 16px !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 26px !important;
    }

    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center !important;
        gap: 10px !important;
    }

    .hero-buttons a,
    .hero-buttons .btn {
        width: auto !important;
        padding: 12px 20px !important;
        font-size: 0.92rem !important;
        border-radius: 5px;
    }

    .hero-controls {
        margin-top: 26px;
    }

    /* ----- Sub-page heroes ----- */
    .hero h1 {
        font-size: 2.3rem !important;
        line-height: 1.15 !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* ----- Sections ----- */
    .popular-tours,
    .explore-section,
    .travel-team-section,
    .reviews-section {
        padding: 64px 6% !important;
    }

    .section-title {
        margin-bottom: 36px !important;
    }

    .tours-slider {
        gap: 14px !important;
        padding: 20px 6px !important;
        justify-content: flex-start !important;
        scroll-snap-type: x mandatory;
    }

    .tour-card,
    .tour-card.active-card {
        width: 250px !important;
        height: 330px !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        scroll-snap-align: start;
    }

    .explore-section {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .explore-gallery {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .explore-gallery img {
        height: 150px !important;
    }

    .team-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px 20px !important;
    }

    .reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .review-form-container {
        padding: 22px !important;
    }

    /* Top bar: keep it on one line */
    .topbar {
        font-size: 0.75rem;
    }

    .topbar-social {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .topbar-right {
        gap: 10px;
    }

    .topbar-social {
        gap: 10px;
    }

    .topbar-social a {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 46px !important;
    }

    .logo-title {
        font-size: 0.98rem !important;
    }

    .hero-content h1 {
        font-size: 2.15rem !important;
    }

    .team-features {
        grid-template-columns: 1fr !important;
    }

    .tour-card,
    .tour-card.active-card {
        width: 230px !important;
        height: 300px !important;
    }
}

@media (max-width: 360px) {
    .topbar-phone span {
        display: none;
    }
}