/* BushValley Safaris Custom CSS - Final Refinement */

:root {
    --bg-dark: #22140c; /* Deep dark brown */
    --bg-cream: #f4f2ee; /* Soft cream background */
    --accent: #a3613d; /* Earthy brown/orange accent */
    --text-dark: #2c2522;
    --text-muted: #6b635e;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    font-size: 14px; /* Increased slightly for readability */
    line-height: 1.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark-brown { background-color: var(--bg-dark) !important; }
.bg-cream { background-color: var(--bg-cream) !important; }
.text-white-50 { color: rgba(255,255,255,0.6) !important; }

/* Font Sizes based on visual */
.hero-title { font-size: 3rem; line-height: 1.2; letter-spacing: 2px; }
.section-title { font-size: 2rem; line-height: 1.3; letter-spacing: 2px; }
.section-subtitle { font-size: 1.6rem; line-height: 1.3; letter-spacing: 1px; }
.heading-sm { font-size: 1rem; letter-spacing: 1px; font-weight: 600; }
.tracking-widest { letter-spacing: 0.2em; }
.small-heading { font-size: 0.65rem; font-family: 'Roboto', sans-serif; font-weight: 600; letter-spacing: 2px; }

/* Spacing */
.section-padding { padding-top: 80px; padding-bottom: 96px; }
.section-padding-sm { padding-top: 40px; padding-bottom: 40px; }

/* Custom Buttons */
.btn-custom {
    font-family: 'Roboto', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 24px;
    border-radius: 0;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-custom-light {
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    background: transparent;
}
.btn-custom-light:hover { background: #fff; color: var(--bg-dark); }
.btn-custom-dark {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    background: transparent;
}
.btn-custom-dark:hover { background: var(--text-dark); color: #fff; }
.btn-custom-accent {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}
.btn-custom-accent:hover {
    background-color: var(--bg-dark) !important;
    border-color: var(--bg-dark) !important;
    color: white !important;
}

/* Floating Label Placeholder Styling */
.form-floating > .form-control:placeholder-shown ~ label,
.form-floating > .form-select ~ label,
select.form-select:invalid,
input[type="date"].form-control:invalid {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

/* Shape Classes (Top-Left & Bottom-Right rounded is the primary design language) */
.shape-tl-br { border-radius: 80px 0 80px 0; overflow: hidden; }
.shape-tl-br-sm { border-radius: 30px 0 30px 0; overflow: hidden; }
.shape-bl { border-radius: 0 0 0 140px; overflow: hidden; }
.shape-tr { border-radius: 0 100px 0 0; overflow: hidden; }

/* Navbar */
.navbar {
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
    padding-top: 18px;
    padding-bottom: 18px;
    left: 0;
    top: 0;
}
.navbar-brand h1 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin: 0;
    font-family: 'Aboreto', serif;
}
.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 0 !important;
    margin-right: 28px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
.nav-link:hover { color: #fff !important; }

/* Hero Section */
.hero-section {
    background-color: var(--bg-dark);
    min-height: 130vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Gold squiggle decorations */
.hero-squiggle-left {
    position: absolute;
    left: -60px;
    top: 15%;
    width: 340px;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-10deg);
}
.hero-squiggle-right {
    position: absolute;
    right: -50px;
    bottom: 5%;
    width: 300px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    transform: rotate(170deg);
}
.hero-dots {
    position: absolute;
    right: 5%;
    top: 6%;
    width: 160px;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

/* Hero main content */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 60px;
    position: relative;
    z-index: 5;
}

/* Hero Top Button */
.hero-top-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--accent);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 35px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    left: 10px;
    top: -1px;
}
.hero-top-btn:hover {
    background-color: #fff;
    color: var(--accent);
}

/* Left text */
.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    letter-spacing: 3px;
    margin-bottom: 28px;
}
/* The subline: accent dash + paragraph side by side */
.hero-subline {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
}
.hero-line {
    flex-shrink: 0;
    margin-top: 9px;
    width: 40px;
    height: 1px;
    background-color: var(--accent);
    display: block;
}
.hero-subtext {
    font-size: 0.85rem; /* Increased for readability */
    line-height: 1.9;
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    max-width: 480px;
}


/* Avatar Group Styles */
.avatar-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 25px;
}
.avatar-group-imgs {
    display: flex;
}
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(34, 20, 12, 0.7);
    object-fit: cover;
    margin-left: -10px;
    position: relative;
}
.avatar-img:first-child {
    margin-left: 0;
    z-index: 3;
}
.avatar-img:nth-child(2) {
    z-index: 2;
}
.avatar-img:nth-child(3) {
    z-index: 1;
}
.avatar-text {
    margin-left: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 0.65rem;
    line-height: 1.2;
}
.avatar-text strong {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Hero Stats Box with Corner Squares */
.hero-stats-box {
    position: absolute;
    top: 100%;
    left: 71px; /* Align perfectly with paragraph (15px padding + 40px line + 16px gap) */
    margin-top: 40px; /* 20px further down */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    background: rgba(34, 20, 12, 0.7);
    backdrop-filter: blur(10px);
    z-index: 20;
}
.hero-stats-box .corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent); /* Botswana brown */
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.7), inset -1px -1px 2px rgba(0,0,0,0.5), 2px 2px 4px rgba(0,0,0,0.4);
}
.hero-stats-box .corner-tl { top: -6px; left: -6px; }
.hero-stats-box .corner-tr { top: -6px; right: -6px; }
.hero-stats-box .corner-bl { bottom: -6px; left: -6px; }
.hero-stats-box .corner-br { bottom: -6px; right: -6px; }
.hero-stats-box .stats-heading {
    color: #fff; /* current website colors */
    font-family: 'Roboto', sans-serif; /* current fonts */
    font-size: 1.15rem; /* Increased font size */
    font-weight: 400;
    margin-right: 30px;
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: 0px;
    text-transform: none;
}

/* Right: image composition */
.hero-images-wrapper {
    position: relative;
    height: 430px;
    /* Push the composition slightly right so text isn't crowded */
    margin-left: 20px;
}

/* MAIN image: Giraffe — large, centered, no extra radius (baked in image) */
.hero-img-main {
    position: absolute;
    top: 20px;
    left: 0;
    width: 46%;
    height: 92%;
    z-index: 3;
    overflow: hidden;
    border-radius: 60px 0 60px 0;
}
.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SMALL image: Jeep — standing rectangle, gap between giraffe */
.hero-img-sec {
    position: absolute;
    top: 100px;
    left: 50%; /* Giraffe ends at 46% + gap 4% = 50% */
    width: 26%;
    height: 60%; /* Roughly the top half beside the giraffe */
    z-index: 4;
    overflow: hidden;
    border-radius: 50px 0 50px 0;
}
.hero-img-sec img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* THIRD image: Smallest, to the right of the jeep */
.hero-img-third {
    position: absolute;
    top: 140px;
    left: 80%;
    width: 20%;
    height: 40%;
    z-index: 5;
    overflow: hidden;
    border-radius: 40px 0 40px 0;
}
.hero-img-third img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.hero-nav-arrows {
    position: absolute;
    bottom: 14px; /* Align with bottom of main image */
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-arrow-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.hero-arrow-btn:hover {
    background-color: #fff;
    color: var(--accent);
}

/* Overview Section */
.overview-main-img {
    height: 454px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.overview-pattern {
    position: absolute;
    width: 250px;
    height: 250px;
    right: -40px;
    bottom: -40px;
    z-index: -1;
    opacity: 1;
}
.overview-divider {
    width: 100px;
    height: 2px;
    background-color: var(--accent); /* Brown accent */
    margin-top: 15px;
    margin-bottom: 25px;
}
.overview-small-img {
    height: 216px;
    width: 180px;
    margin-left: auto;
}

/* Itinerary */
.itinerary-number {
    font-family: 'Aboreto', serif;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-right: 20px;
}
.itinerary-text { font-size: 0.8rem; }
.itinerary-divider {
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

/* Journey */
.journey-main-img {
    height: 450px;
    width: 100%;
}
.journey-pattern-box {
    position: absolute;
    width: 150px;
    height: 200px;
    top: -20px;
    right: -20px;
    z-index: -1;
    opacity: 0.6;
}
.price-tag { font-size: 1.5rem; letter-spacing: 2px; }

/* Destination */
.dest-main-img {
    height: 400px;
    width: 100%;
    z-index: 2;
    position: relative;
}
.dest-pattern-box {
    position: absolute;
    width: 150px;
    height: 250px;
    right: 0;
    bottom: 20px;
    background-color: var(--accent);
    z-index: 1;
}
/* Custom Slider Indicators to match image */
.slider-indicators-custom {
    width: 100%;
}
.slider-indicators-custom .slider-item {
    flex: 1;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-right: 30px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}
.slider-indicators-custom .slider-item:last-child {
    margin-right: 0;
}
.slider-indicators-custom .slider-item.active {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Unique Cards Images */
.unique-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Discover Journey (Overlapping Module) */
.discover-overlap-container {
    position: relative;
    margin-top: 60px;
    margin-bottom: -100px; /* Pull the next section up */
    z-index: 10;
}
.discover-dark-box {
    background-color: #1a1a1a;
    min-height: 300px;
    width: 100%;
    border-radius: 60px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.discover-white-box {
    background-color: #fff;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.discover-box-wrapper {
    position: absolute;
    left: calc(20% + 20px);
    top: 5%;
}
.discover-map-img {
    height: 250px;
    width: 100%;
    object-fit: contain;
    margin-top: 40px;
    transform: scale(0.70);
    transform-origin: top center;
}

/* Choose Adventure */
.adventure-section {
    padding-top: 180px; /* To account for the overlap */
}
.adv-card-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 30px 0 30px 0;
}

/* Best Time Overlap */
.best-time-container {
    margin-top: 80px;
    position: relative;
}
.best-time-box {
    background-color: var(--accent);
    padding: 60px;
    padding-right: 120px;
    border-radius: 60px 0 60px 0;
    position: relative;
    z-index: 2;
}
.best-time-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Unique Destinations */
.unique-card-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Accordion */
.accordion-item-custom {
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.accordion-item-custom h2 { font-size: 1.2rem; margin: 0; color: var(--text-dark); }
.accordion-item-custom i { color: var(--accent); font-size: 1.5rem; }

/* Inquiry */
.inquiry-small-img {
    width: 150px;
    height: 100px;
    margin-top: 40px;
}
.inquiry-large-img {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: 2;
}
.inquiry-pattern {
    position: absolute;
    width: 150px;
    height: 200px;
    right: -20px;
    bottom: -20px;
    z-index: 1;
    opacity: 0.5;
}

/* Footer */
.footer-strip {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.75rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .discover-box-wrapper {
        position: relative;
        left: 0;
        top: 0;
        margin-top: -30px;
        padding: 0 15px;
    }
    .discover-white-box {
        width: 100% !important;
    }
    .hero-images-wrapper { margin-top: 50px; }
    .best-time-box { padding-right: 60px; border-radius: 0; }
    .best-time-img { position: relative; transform: none; top: 0; margin-top: -50px; }
    .discover-overlap-container { margin-bottom: 0; }
    .adventure-section { padding-top: 80px; }
    .inquiry-large-img { margin-top: 50px; }
}

/* Frika Button Spinning Animation */
@keyframes spin-continuous {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

img[alt="Frika Button"] {
    animation: spin-continuous 8s linear infinite;
}

/* Destination Pills */
.btn-dest-pill {
    background-color: rgba(0,0,0,0.06);
    color: #555;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    transition: all 0.2s ease; /* Fast clean transition */
    font-family: 'Roboto', sans-serif;
    box-shadow: none;
}
.btn-dest-pill.active {
    background-color: var(--accent);
    color: #fff;
}
.btn-dest-pill:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
}
.btn-dest-pill:focus, .btn-dest-pill:active, .btn-dest-pill:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 991.98px) {
    .wow {
        animation-name: none !important;
        visibility: visible !important;
    }
}

/* 5-Star Service Delivery Pill */
.hero-tm-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-tm-stars {
    color: #A36545; /* Botswana Brown */
    font-size: 11px;
    letter-spacing: 1.5px;
}

/* Payment Logos in Footer */
.payment-logo {
    background: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-logo img {
    height: 14px;
    width: auto;
}

/* Slide caption shared styles */
.slide-caption h5 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: 'Aboreto', serif;
}
.slide-caption span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ── Embla Coverflow Slider ──────────────────────────────── */
.coverflow-wrap {
    width: 100%;
    padding: 20px 0 40px; /* Restored some padding */
    position: relative;
}

.coverflow-embla {
    overflow: hidden;
    width: 100%;
    height: 500px; /* Restored some height */
    perspective: 1400px;
    cursor: grab;
    -webkit-perspective: 1400px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.coverflow-embla.is-ready {
    opacity: 1;
}

.coverflow-embla:active {
    cursor: grabbing;
}

.coverflow-container {
    display: flex;
    height: 100%;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.cov-slide {
    flex: 0 0 340px; /* Reduced width so it doesn't touch edges */
    height: 440px;
    min-width: 0;
    margin: 0 -20px;
    position: relative;
    will-change: transform, filter, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

.cov-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 30px 0 30px 0;
    overflow: hidden;
    box-shadow: none; /* Removed as requested */
    position: relative;
}

.cov-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1);
    will-change: filter, transform;
}

/* Pagination Dots */
.embla-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.embla-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    outline: none;
}

.embla-dot--selected {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent);
}

/* New Caption Layout */
.cov-caption-new {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.cov-cap-left {
    display: flex;
    flex-direction: column;
}

.cov-cap-left h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cov-cap-left span {
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.cov-btn-view {
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    pointer-events: auto;
}

.cov-btn-view:hover {
    background: white;
    color: #000;
}

@media (max-width: 991px) {
    .coverflow-embla { height: 400px; }
    .cov-slide { flex: 0 0 200px; height: 300px; margin: 0 6px; }
}

@media (max-width: 576px) {
    .coverflow-embla { height: 320px; }
    .cov-slide { flex: 0 0 160px; height: 240px; margin: 0 5px; }
}

/* Global Disable Shiny Focus/Hover Borders */
input:focus, textarea:focus, select:focus, 
.form-control:focus, .form-select:focus, .form-check-input:focus, 
.btn:focus, .btn:hover, a:focus, button:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--accent) !important;
}

.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Ensure text visibility in forms */
.form-control, .form-select, textarea {
    color: var(--text-dark) !important;
}

html { scroll-behavior: smooth; }

html { scroll-behavior: smooth; }

/* =========================================================================
   Mobile Responsiveness (Tablets & Mobile)
   ========================================================================= */

@media (max-width: 991.98px) {
    /* General Typography & Spacing */
    .hero-title { font-size: 2.2rem; margin-bottom: 15px; }
    .section-title { font-size: 1.6rem; }
    .section-padding { padding-top: 60px; padding-bottom: 60px; }

    /* Hero Section */
    .hero-section { min-height: auto; padding-bottom: 60px; }
    .hero-images-wrapper { height: 350px; margin-left: 0; margin-top: 50px; }
    .hero-img-main { width: 50%; height: 100%; }
    .hero-img-sec { left: 52%; width: 48%; height: 80%; top: 10%; }
    .hero-img-third { display: none; }
    .hero-stats-box { position: relative; top: auto; left: auto; margin-top: 20px; width: 100%; justify-content: center; flex-direction: column; text-align: center; }
    .hero-stats-box .stats-heading { margin-right: 0; margin-bottom: 15px; }
    .hero-stats-box .avatar-group { justify-content: center !important; }
    .hero-squiggle-left, .hero-squiggle-right, .hero-dots { opacity: 0.15; width: 200px; }
    /* .hero-tm-kicker-pill rule moved to strict tablet query below */
    
    /* Overview Section */
    .overview-main-img { height: 350px; }
    .overview-small-img { width: 120px; height: 120px; margin-top: 20px; }
    
    /* Journey Section */
    .slider-indicators-custom { width: 100% !important; justify-content: center !important; gap: 1rem; }
}

/* STRICT TABLET ONLY (Prevents bleeding to mobile) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-tm-kicker-pill { 
        position: relative;
        left: 400px; 
        top: 50px; 
        margin-bottom: 20px; 
    }
    .hero-nav-arrows {
        transform: translateY(50px);
    }
}

@media (max-width: 767.98px) {
    /* General Typography */
    p { text-align: justify; }
    .hero-title { font-size: 1.25rem; letter-spacing: 1px; text-align: center; }
    .hero-subline { display: block; width: 100%; }
    .hero-line { display: none; }
    .hero-subtext { font-size: 0.8rem; max-width: 100%; line-height: 1.6; text-align: justify; margin: 0 auto; }
    .section-title { font-size: 1.05rem; letter-spacing: 1px; line-height: 1.4; }
    .section-padding { padding-top: 40px; padding-bottom: 40px; }
    .hero-section { padding-bottom: 15px !important; }

    /* Shift hero column 15px right */
    .hero-content .col-lg-5 { transform: translateX(15px); }

    /* Hero Section Images (Desktop style, reduced) */
    .hero-images-wrapper { display: block; position: relative; height: 180px; margin: 20px auto; padding: 0; width: 92%; max-width: 340px; left: 0; right: 0; }
    .hero-img-main { position: absolute; width: 46%; height: 92%; top: 5%; left: 0; border-radius: 30px 0 30px 0 !important; }
    .hero-img-sec { position: absolute; left: 48%; width: 28%; height: 60%; top: 20%; margin-top: 0; border: none; border-radius: 20px 0 20px 0 !important; z-index: 4; }
    .hero-img-third { display: block !important; position: absolute; left: 78%; width: 22%; height: 40%; top: 30%; border-radius: 15px 0 15px 0 !important; z-index: 5; }
    .hero-nav-arrows { position: absolute !important; bottom: 0 !important; right: 0; margin-top: 0; justify-content: flex-end; width: auto; z-index: 10; transform: scale(0.7); transform-origin: bottom right; }
    .hero-squiggle-left, .hero-squiggle-right, .hero-dots { display: none; }
    .hero-tm-kicker-pill { left: 0; top: 0; margin: 30px auto 20px auto; display: flex; justify-content: center; width: max-content; transform: translateX(-15px) scale(0.80); transform-origin: center top; }

    /* Stats Box */
    .hero-stats-box { flex-direction: row !important; text-align: left; padding: 10px 15px; width: auto; max-width: 95%; margin: 20px auto 0 auto; justify-content: center; }
    .hero-stats-box .stats-heading { font-size: 0.8rem; margin-bottom: 0; margin-right: 15px; white-space: nowrap; }
    .hero-stats-box .avatar-group { margin-top: 0; }
    .hero-stats-box .avatar-img { width: 22px; height: 22px; margin-left: -7px; }
    .hero-stats-box .avatar-text { font-size: 0.65rem; white-space: nowrap; }

    /* Overview Section */
    .overview-main-img { height: 250px; margin-bottom: 20px; }
    .overview-small-img { position: relative; width: 122.5%; margin-left: -22.5%; height: 125px; transform: translateY(-85px) !important; margin-top: -85px !important; border-radius: 30px 0 0 0 !important; }
    .overview-small-img img { object-position: center !important; }
    
    .navbar-brand img { max-height: 60px !important; margin-top: 0 !important; }
    
    /* Journey Section Fixes */
    .discover-white-box ul.list-unstyled { margin-left: -20px; font-size: 0.82rem; }
    .discover-map-img { width: 70%; margin: 0 auto; display: block; }
    .journey-carousel-wrapper, .slider-indicators-custom { width: 95% !important; margin-left: auto; margin-right: auto; }
    .row.align-items-center { transform: none !important; }
    .itinerary-divider .itinerary-number { font-size: 2.5rem; }
    .itinerary-divider .col-md-6 { margin-bottom: 20px !important; }
    
    /* Package Cards */
    .adventure-card img { height: 250px !important; border-radius: 30px 30px 0 0 !important; }
    .adventure-card { flex-direction: column; padding-bottom: 1.5rem !important; overflow: hidden !important; }
    .adventure-card .d-flex.justify-content-between { padding: 0 12px !important; width: 100% !important; box-sizing: border-box !important; flex-wrap: nowrap !important; gap: 10px !important; }
    .adventure-card .d-flex.justify-content-between > div:first-child { min-width: 0; flex: 1 1 auto; }
    .adventure-card .d-flex.justify-content-between > div:last-child { flex: 0 0 auto; max-width: 48%; }
    .adventure-card .text-end .btn { width: 100% !important; white-space: nowrap; font-size: 0.65rem !important; padding: 5px 10px !important; }
    .adventure-card ul { display: inline-block; text-align: left; }
    .adventure-card .col-lg-4, .adventure-card .col-md-6 { padding-left: 15px !important; padding-right: 15px !important; }
    
    /* Shrink adventure card text to fit */
    .adventure-card .heading-sm { font-size: 0.75rem !important; }
    .adventure-card p.text-muted { font-size: 0.7rem !important; }
    .adventure-card .text-accent { font-size: 0.9rem !important; }
    .adventure-card .btn { font-size: 0.65rem !important; padding: 4px 8px !important; }
    
    /* Best Time Box Fixes */
    .best-time-box { width: 95% !important; padding: 1.5rem !important; }
    .best-time-box span { font-size: 0.6rem !important; display: block; margin-bottom: 10px; }
    .best-time-box h3 { font-size: 1.1rem !important; line-height: 1.4 !important; }
    .best-time-box p { font-size: 0.8rem !important; margin-bottom: 15px !important; }
    
    /* Footer */
    .footer-bottom { flex-wrap: wrap !important; justify-content: center; text-align: center; gap: 1rem; }
    .footer-bottom .col-auto, .footer-bottom .col { justify-content: center !important; }
    
}

/* Navbar & Hamburger Menu (Tablet & Mobile) */
@media (max-width: 991.98px) {
    .navbar-toggler { background-color: transparent; border: none; box-shadow: none; padding: 0; }
    .navbar-toggler:focus { box-shadow: none; outline: none; }
    .custom-hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 14px; margin-right: 5px; }
    .custom-hamburger span { display: block; height: 1.5px; width: 100%; background-color: #fff; border-radius: 2px; }
    .navbar-collapse { background-color: var(--bg-dark); padding: 1rem; border-radius: 10px; margin-top: 10px; z-index: 100; position: relative; text-align: center; }
    .nav-link { margin-right: 0; padding: 10px 0 !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .navbar-nav .btn-custom-light { margin-top: 10px; margin-left: 0 !important; display: inline-block; }
}

