/* ==========================================================================
   Raj Travels Patna - Main Stylesheet
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary-dark: #2c3e50;
    --primary-light: #3498db;
    --accent: #e67e22;
    --bg-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gray);
    overflow-x: hidden;
    color: var(--text-dark);
}

/* --- 2. BUTTONS --- */
.btn-theme {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-theme:hover {
    background: #d35400;
    color: white;
}

/* --- 3. HEADER & NAVIGATION --- */
.main-header {
    background: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.custom-nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.custom-nav-links li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

.custom-nav-links li a:hover {
    color: var(--primary-light);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
    min-width: 200px;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 5px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 5px 10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10002;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-enquire-btn {
    display: none;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- 4. HERO SECTION --- */
.travel-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 120px 5%;
    text-align: center;
    color: white;
}

.travel-hero h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

/* --- 5. CAB CALCULATOR --- */
.cab-calculator-section {
    background: #fff;
    padding: 40px 5%;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
}

.cab-calculator-box {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cab-calculator-box h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cab-form-flex {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.input-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.input-box label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.input-box select {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #fff;
    cursor: pointer;
}

#cab-go-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    height: 46px;
}

.cab-result-card {
    background: #fff;
    border: 2px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none;
    animation: fadeIn 0.4s;
}

.cab-result-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cab-result-details {
    display: flex;
    justify-content: space-around;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.cab-result-details span {
    color: var(--accent);
}

.note-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. TOUR PACKAGES (Cards) --- */
.tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.tour-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.tour-duration {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
}

.tour-price {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- 7. PACKAGE DETAILS PAGE (package.php) --- */
.pkg-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 5%;
}

.pkg-main {
    flex: 2;
    min-width: 300px;
}

.pkg-sidebar {
    flex: 1;
    min-width: 300px;
}

.pkg-image {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    height: auto;
    max-height: 500px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.badge {
    background: var(--primary-light);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.pkg-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 15px 0;
    font-weight: 700;
}

.pkg-highlights {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    flex: 1;
}

.highlight-item span {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    font-weight: 400;
}

.rich-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.rich-text p, .rich-text ul {
    margin-bottom: 15px;
}
.rich-text ul { margin-left: 20px; }

.booking-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.booking-card h3 {
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.booking-card input, .booking-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.booking-card .btn-theme {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 24px;
}

/* --- 8. MOBILE RESPONSIVE (Media Queries) --- */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 15px;
    }

    .desktop-btn {
        display: none !important;
    }

    .logo-link img {
        height: 45px !important;
    }

    .mobile-enquire-btn {
        display: inline-block !important;
        font-size: 0.85rem;
        padding: 8px 12px;
        margin-right: 15px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
    }

    /* Side Sliding Menu for Mobile */
    .custom-nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        left: auto !important;
        width: 260px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 80px 20px 30px 20px !important;
        transition: right 0.4s ease-in-out !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
        z-index: 10001 !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }

    .custom-nav-links.menu-open {
        right: 0 !important;
    }

    .custom-nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .custom-nav-links li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        color: var(--primary-dark);
        border-bottom: 1px solid #f1f2f6;
    }

    .custom-nav-links .dropdown-menu {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        padding-left: 15px;
        background: #f8f9fa;
        border-radius: 4px;
        margin-top: 5px;
    }

    .custom-nav-links .dropdown-menu li a {
        font-size: 0.95rem;
        color: #555;
        border-bottom: none;
        padding: 8px 0;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .cab-form-flex {
        flex-direction: column;
        align-items: stretch;
    }

    #cab-go-btn {
        width: 100%;
        margin-top: 10px;
    }

    .pkg-container {
        flex-direction: column;
    }
    
    .booking-card {
        position: static;
    }
    
    .travel-hero h1 {
        font-size: 2.5rem;
    }
}