/*===================================================================*/
/* 1. BASE CONFIGURATION                                             */
/*===================================================================*/

:root {
    /* --- Font Definitions --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* --- Brand Color Palette --- */
    --color-primary-brand: #38482B;
    --color-accent-cta: #C5B558;
    --color-body-text: #3E3B28;
    --color-background: #F2EFE4;
    --color-secondary-tusk: #E8E2C6;

    /* --- Bootstrap Mapping (Standard Variables) --- */
    --bs-primary: var(--color-primary-brand);
    --bs-secondary: var(--color-secondary-tusk);
    --bs-success: var(--color-accent-cta);
    --bs-body-color: var(--color-body-text);
    --bs-body-bg: var(--color-background);
}

/*===================================================================*/
/* 2. GLOBAL TYPOGRAPHY & BODY                                       */
/*===================================================================*/

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-body-text);
    line-height: 1.6;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700 !important;
}

.logo {
    height: 50px;
}

/*===================================================================*/
/* 3. CUSTOM BOOTSTRAP UTILITIES                                     */
/*===================================================================*/

.bg-primary-brand { background-color: var(--color-primary-brand) !important; }
.text-primary-brand { color: var(--color-primary-brand) !important; }
.bg-accent-cta { background-color: var(--color-accent-cta) !important; }
.text-accent-cta { color: var(--color-accent-cta) !important; }
.bg-secondary-tusk { background-color: var(--color-secondary-tusk) !important; }
.text-background { color: var(--color-background) !important; }
.text-body-color { color: var(--color-body-text) !important; }
.bg-background { background-color: var(--color-background) !important; }


/*===================================================================*/
/* 4. GENERAL LAYOUT & EFFECTS                                       */
/*===================================================================*/

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Buttons */
.round-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


/*===================================================================*/
/* 5. TOUR LIST (Horizontal Scroll Cards)                            */
/*===================================================================*/

/* Scroll Wrapper and Scrollbar Hiding */
#tour-list-wrapper {
    overflow-x: auto;
    padding: 1rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#tour-list-wrapper::-webkit-scrollbar {
    display: none;
}

/* Horizontal Card Container */
#tour-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Individual Card Item - KEY for Equal Height */
.tour-card-item {
    flex: 0 0 320px;
    display: flex; 
    flex-direction: column;
}

/* Bootstrap Card Structure Adjustments */
.card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile Specific Adjustments for Card Size */
@media (max-width: 575.98px) {
    .tour-card-item {
        flex: 0 0 80%;
    }
    #tour-list {
        gap: 1rem;
    }
    #tour-list::after {
        content: '';
        flex: 0 0 1rem;
        display: block;
    }
}

/*===================================================================*/
/* 6. MODAL/DIALOG STYLING (jConfirm) - FIXED TABS                   */
/*===================================================================*/

/* 1. General Dialog Header Adjustments */
.jconfirm-title-c {
    /* Title container, where tabs are appended. Background is controlled by jConfirm/Bootstrap defaults. */
    padding-bottom: 0; 
}

.jconfirm-title {
    line-height: 1.2;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.5rem !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--color-primary-brand) !important; 
}

/* 2. Scrollable Content Area */
.jconfirm-content-pane {
    overflow-y: auto !important;
    padding-top: 0 !important; 
}
/* --- TAB NAVIGATION STYLES (Appended to Header) --- */

:is(.tour-details-modal, .jconfirm-title-c) .sticky-nav-tabs {
    position: relative;
    padding: 0 15px 0px 15px;
    margin-bottom: 0 !important;
}

/* --- BRAND COLOR & SIZE STYLING FOR TABS --- */
:is(.tour-details-modal, .jconfirm-title-c) .nav-pills .nav-link {
    color: var(--color-body-text);
    background-color: var(--color-secondary-tusk);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
    padding: 6px 10px;
}

:is(.tour-details-modal, .jconfirm-title-c) .nav-pills .nav-link.active,
:is(.tour-details-modal, .jconfirm-title-c) .nav-pills .nav-link:hover {
    color: var(--color-primary-brand) !important;
    background-color: var(--color-accent-cta) !important;
    border-radius: 5px;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 576px) {
    :is(.tour-details-modal, .jconfirm-title-c) .sticky-nav-tabs {
       /& padding-left: 5px;
        padding-right: 5px;*/
    }
    :is(.tour-details-modal, .jconfirm-title-c) .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    :is(.tour-details-modal, .jconfirm-title-c) .nav-pills .nav-item {
        flex: 0 0 auto;
    }
    :is(.tour-details-modal, .jconfirm-title-c) .nav-pills .nav-link {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}