/* =========================================
   Responsive Grid System (Bootstrap-like)
   ========================================= */

/* Container */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Columns */
.col-12,
.col-sm-12,
.col-md-12,
.col-lg-12,
.col-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-8,
.col-sm-8,
.col-md-8,
.col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Default Mobile (xs) */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Tablet (md >= 768px) */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

/* Desktop (lg >= 992px) */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

/* Utilities */
.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

/* =========================================
   Mobile Navigation
   ========================================= */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Right Side Drawer Styles */
    .main-nav {
        display: block !important;
        /* Always in DOM for transition */
        position: fixed;
        top: 0;
        right: -300px;
        /* Hidden off-screen right */
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        flex-direction: column;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 0;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
        /* Slide in */
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    .mobile-nav-header span {
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li a {
        color: var(--text-dark);
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav li a:hover {
        background: #f8f9fa;
        color: var(--primary-color);
    }

    /* Submenu Fix */
    .main-nav ul.dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        background: #fafafa;
        padding-left: 0;
    }

    .main-nav li.dropdown.active>.dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .main-nav ul.dropdown-menu li a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .main-nav li.dropdown.active>.dropdown-menu {
        display: block;
    }

    /* Search Bar Adjustment */
    .search-bar {
        margin-right: 1rem;
    }

    .top-bar-content {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .utility-links {
        display: none;
        /* Hide top utility links on mobile to save space */
    }
}

/* =========================================
   Specific Component Fixes
   ========================================= */

/* Blog Cards */
.blog-card {
    margin-bottom: 30px;
    /* Force margin since row-gap isn't always supported */
    width: 100%;
}

/* Package Cards */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

/* Header */
/* .main-header {
    position: relative;
} */