/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Global Mobile Responsive Styles */
@media (max-width: 767.98px) {
    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Typography adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Tables - Make scrollable on mobile */
    .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        -ms-overflow-style: -ms-autohiding-scrollbar !important;
        touch-action: pan-x !important;
        overscroll-behavior-x: contain !important;
        /* Force hardware acceleration for smooth scrolling */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: scroll-position;
    }
    
    /* Ensure table-responsive works even if parent has overflow hidden */
    .card-body .table-responsive,
    .container .table-responsive {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all table-responsive containers are scrollable */
    .table-responsive.mobile-table-scroll,
    .table-responsive {
        cursor: grab !important;
    }
    
    .table-responsive:active {
        cursor: grabbing !important;
    }
    
    /* Add scrollbar indicator */
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .table-responsive.scrollable::after {
        opacity: 1;
    }

    .table-responsive table {
        width: 100% !important;
        margin-bottom: 0 !important;
        font-size: 0.85rem;
        min-width: 800px !important;
        border-collapse: collapse !important;
    }

    .table-responsive table th,
    .table-responsive table td {
        padding: 0.75rem 0.5rem !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }
    
    .table-responsive table th {
        background-color: #f8f9fa !important;
        font-weight: 600 !important;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Ensure table cells don't break */
    .table-responsive table td {
        min-width: 80px;
    }
    
    /* Specific column widths for better mobile display */
    .table-responsive table th:first-child,
    .table-responsive table td:first-child {
        min-width: 60px;
        position: sticky;
        left: 0;
        background-color: #fff;
        z-index: 5;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    }
    
    .table-responsive table thead th:first-child {
        background-color: #f8f9fa;
        z-index: 15;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    /* Navigation */
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    /* Dropdown menus */
    .dropdown-menu {
        width: 100%;
        text-align: center;
    }

    /* Admin Dashboard Sidebar */
    .admin-sidebar {
        margin-bottom: 2rem;
    }

    .list-group-item {
        padding: 0.75rem 1rem;
    }

    /* Footer */
    .ftco-footer {
        padding: 2rem 0;
    }

    .ftco-footer-widget {
        margin-bottom: 2rem;
    }

    /* Hero sections */
    .hero-slider {
        height: 50vh !important;
        min-height: 300px;
    }

    .hero-slide-content {
        padding: 1rem;
    }

    .hero-slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
    }

    /* Package cards */
    .package-card {
        margin-bottom: 1.5rem;
    }

    /* Package grid */
    .row [class*="col-"] {
        margin-bottom: 1rem;
    }

    /* Booking forms */
    .booking-form {
        padding: 1rem;
    }

    /* Blog cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    /* Utilities */
    .text-center-mobile {
        text-align: center !important;
    }

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

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

    /* Spacing adjustments */
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }

    .mt-mobile-3 {
        margin-top: 1rem !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 100%;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }

    table {
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 575.98px) {
    /* Even smaller text */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    /* Smaller buttons */
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Smaller cards */
    .card-body {
        padding: 0.75rem;
    }

    /* Footer */
    .ftco-footer-widget h2 {
        font-size: 1rem;
    }

    /* Navigation brand */
    .navbar-brand {
        font-size: 1rem;
    }

    /* Tables - even more compact */
    .table-responsive table {
        font-size: 0.75rem !important;
        min-width: 700px !important;
    }

    .table-responsive table th,
    .table-responsive table td {
        padding: 0.5rem 0.4rem !important;
    }
}

/* Admin Dashboard Mobile Responsive */
@media (max-width: 767.98px) {
    /* Main content area */
    main.py-4 {
        margin-top: 60px !important;
        padding: 1rem 0 !important;
    }

    /* Sidebar becomes full width on mobile */
    .col-md-4 {
        margin-bottom: 2rem;
    }

    /* Admin list groups */
    .list-group {
        margin-bottom: 1rem;
    }

    /* Dashboard cards */
    .dashboard-card {
        margin-bottom: 1rem;
    }

    /* Stats cards */
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Navigation Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
    }

    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Dropdown toggle arrow */
    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.5rem;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
        border: none !important;
        border-radius: 4px !important;
        padding: 0.5rem 0 !important;
        box-shadow: none !important;
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.75rem 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap;
    }
    
    .dropdown-item i {
        margin-right: 0.5rem;
        width: 20px;
        text-align: center;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:active {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    .dropdown-divider {
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        margin: 0.5rem 0 !important;
    }
    
    .dropdown-header {
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.85rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
    }
    
    /* Ensure dropdown toggle is clickable */
    .dropdown-toggle {
        cursor: pointer !important;
        user-select: none !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        touch-action: manipulation !important;
    }
    
    /* Prevent dropdown from closing too quickly */
    .dropdown-menu.show {
        pointer-events: auto !important;
        touch-action: pan-y !important;
        z-index: 1000 !important;
        /* Remove max-height restriction - let parent handle scrolling */
        max-height: none !important;
        overflow: visible !important;
        scroll-behavior: smooth !important;
    }
    
    /* Specific fix for navbar dropdowns */
    .navbar-collapse .dropdown-menu.show,
    #ftco-nav .dropdown-menu.show {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Make dropdown items more touch-friendly */
    .dropdown-item {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure dropdown stays visible */
    .dropdown-menu {
        will-change: transform, opacity;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    .dropdown-menu.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Ensure navbar-collapse can scroll - specifically for #ftco-nav */
    .navbar-collapse,
    #ftco-nav {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: calc(100vh - 70px) !important;
        overscroll-behavior: contain !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background-color: #212529 !important;
        padding: 1rem !important;
    }
    
    /* Ensure dropdown menu doesn't restrict scrolling */
    .navbar-collapse .dropdown-menu,
    #ftco-nav .dropdown-menu {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Make sure dropdown items are fully visible and scrollable */
    .navbar-collapse .dropdown-menu.show,
    #ftco-nav .dropdown-menu.show {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }
    
    /* Ensure navbar-nav can scroll with parent */
    .navbar-nav {
        overflow: visible !important;
    }
}

/* Form Mobile Responsive */
@media (max-width: 767.98px) {
    .form-row {
        margin-left: 0;
        margin-right: 0;
    }

    .form-row > .col,
    .form-row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    /* File upload buttons */
    .custom-file-label {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    /* Textareas */
    textarea.form-control {
        min-height: 120px;
    }
}

/* Package Cards Mobile */
@media (max-width: 767.98px) {
    .package-item {
        margin-bottom: 2rem;
    }

    .package-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .package-details {
        padding: 1rem;
    }
}

/* Booking Cards Mobile */
@media (max-width: 767.98px) {
    .booking-card {
        margin-bottom: 1.5rem;
    }

    .booking-details {
        padding: 1rem;
    }

    .booking-status-badge {
        display: block;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Blog Cards Mobile */
@media (max-width: 767.98px) {
    .blog-post {
        margin-bottom: 2rem;
    }

    .blog-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .blog-content {
        padding: 1rem;
    }
}

/* Footer Mobile Responsive */
@media (max-width: 767.98px) {
    .ftco-footer {
        padding: 2rem 0 1rem;
    }

    .ftco-footer-widget {
        margin-bottom: 2rem;
        text-align: center;
    }

    .ftco-footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .block-23 ul {
        text-align: center;
    }

    .block-23 li {
        margin-bottom: 0.75rem;
    }
}

/* Hero Slider Mobile */
@media (max-width: 767.98px) {
    .hero-slider-wrapper {
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px;
    }
    
    .hero-slide-overlay {
        padding: 1.5rem 1rem;
    }

    .hero-slide-content {
        padding: 1rem;
    }

    .hero-slide-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-slide-content .caps {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem;
    }

    .hero-slide-content p,
    .hero-slide-content .lead {
        font-size: 1rem !important;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-slide-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-slider-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1rem !important;
        background: rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(5px);
    }
    
    .hero-slider-prev {
        left: 5px !important;
    }
    
    .hero-slider-next {
        right: 5px !important;
    }
    
    .hero-slider-indicators {
        bottom: 15px !important;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px !important;
        height: 10px !important;
        border-width: 1.5px;
    }
    
    /* Hide any scrollax debug elements */
    [data-scrollax]::before,
    [data-scrollax]::after {
        display: none !important;
        content: none !important;
    }
    
    .scrollax-output {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Carousel Mobile */
@media (max-width: 767.98px) {
    .owl-carousel .owl-item {
        padding: 0 0.5rem;
    }

    .owl-nav {
        display: none;
    }

    .owl-dots {
        margin-top: 1rem;
    }
}

/* Pagination Mobile */
@media (max-width: 767.98px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Alert Messages Mobile */
@media (max-width: 767.98px) {
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Badge Mobile */
@media (max-width: 767.98px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Utility Classes */
@media (max-width: 767.98px) {
    .w-100-mobile {
        width: 100% !important;
    }

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

    .mb-mobile-2 {
        margin-bottom: 0.5rem !important;
    }

    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }

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

    .mt-mobile-2 {
        margin-top: 0.5rem !important;
    }

    .mt-mobile-3 {
        margin-top: 1rem !important;
    }

    .px-mobile-2 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .py-mobile-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Fix for iOS Safari input zoom */
@media screen and (max-width: 767.98px) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px !important;
    }
}

/* Login Page Mobile Fixes */
@media (max-width: 991.98px) {
    .login-container {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    
    .login-card {
        margin-top: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: none;
    }
    
    .login-card .card-header {
        padding: 1rem;
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    .login-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    /* Ensure form inputs are properly spaced */
    .login-card .form-group {
        margin-bottom: 1.25rem;
    }
    
    .login-card .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .login-card .btn {
        margin-top: 0.5rem;
    }
    
    /* Fix remember me checkbox alignment */
    .login-card .form-check {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .login-card .form-check-label {
        margin-left: 0.5rem;
        font-size: 0.95rem;
    }
}

/* iPad Pro and Tablet Specific Fixes */
@media (min-width: 768px) and (max-width: 1366px) {
    .login-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .login-card {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        border: none;
    }
    
    .login-card .card-header {
        padding: 1.5rem;
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
        background-color: #f8f9fa;
        border-bottom: 2px solid #e9ecef;
    }
    
    .login-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .login-card .form-group {
        margin-bottom: 1.5rem;
    }
    
    .login-card .form-group label {
        font-size: 1rem;
        font-weight: 500;
        padding-top: 0.75rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: normal !important;
        min-width: auto !important;
    }
    
    /* Ensure label column has enough width but is compact */
    .login-card .form-group .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding-right: 1rem;
    }
    
    /* Ensure input column takes most of the space */
    .login-card .form-group .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
        padding-left: 0;
    }
    
    .login-card .form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.375rem;
        border: 1px solid #ced4da;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        width: 100%;
        min-height: 50px;
    }
    
    .login-card .form-control:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }
    
    .login-card .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 0.375rem;
        min-width: 120px;
    }
    
    .login-card .form-check {
        margin-top: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .login-card .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.25rem;
    }
    
    .login-card .form-check-label {
        margin-left: 0.75rem;
        font-size: 1rem;
        cursor: pointer;
    }
    
    .login-card .btn-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        margin-top: 1rem;
    }
    
    /* Better spacing for form rows */
    .login-card .form-group.row {
        align-items: center;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure proper alignment on tablets */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .login-card .form-group label {
            text-align: right;
            padding-right: 1rem;
        }
    }
    
    /* Make inputs even larger on larger tablets/iPad Pro */
    @media (min-width: 992px) and (max-width: 1366px) {
        .login-card .form-control {
            padding: 1.125rem 1.5rem;
            font-size: 1.1rem;
            min-height: 55px;
        }
        
        .login-card .card-body {
            padding: 2.5rem 2rem;
        }
    }
    
    /* Landscape orientation adjustments */
    @media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
        .login-container {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        
        .login-card .card-body {
            padding: 1.5rem;
        }
    }
}

/* Card Header Mobile Fixes */
@media (max-width: 767.98px) {
    .card-header {
        padding: 1rem !important;
    }
    
    .card-header.d-flex {
        flex-wrap: wrap;
    }
    
    .card-header h3,
    .card-header h4,
    .card-header h5 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card-header .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Fix button groups in tables */
    .table td .btn-group-vertical {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .table td .btn-group-vertical .btn,
    .table td .btn-group-vertical form,
    .table td .btn-group-vertical a {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .table td .btn-group-vertical .btn:last-child,
    .table td .btn-group-vertical form:last-child {
        margin-bottom: 0;
    }
    
    /* Fix inline buttons in tables */
    .table td form[style*="display: inline"],
    .table td a[style*="display: inline"] {
        display: block !important;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .table td .btn-sm {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Global table scroll fix - ensure ALL tables are scrollable */
@media (max-width: 767.98px) {
    /* Override any parent overflow restrictions */
    .card-body,
    .container {
        overflow-x: visible !important;
    }
    
    /* Force table-responsive to work */
    .table-responsive {
        -webkit-overflow-scrolling: touch !important;
        overflow-x: scroll !important;
        overflow-y: visible !important;
        scrollbar-width: thin !important;
    }
    
    /* Ensure tables inside cards can scroll */
    .card .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }
    
    /* Fix card-body overflow issues */
    .card-body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    /* Ensure container doesn't restrict scrolling */
    .container {
        overflow-x: visible !important;
    }
    
    /* Force scrolling on all table containers */
    table {
        display: table !important;
    }
    
    .table-responsive table {
        width: max-content !important;
        min-width: 100% !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .ftco-footer,
    .btn,
    .no-print {
        display: none !important;
    }
}

/* ============================================================
   PUBLIC FRONTEND — MOBILE RESPONSIVE ADDITIONS
   ============================================================ */

/* ── Hero (detail / inner pages) ── */
@media (max-width: 767.98px) {
    .hero-wrap.hero-wrap-2 .bread { font-size: 1.6rem !important; line-height: 1.25; }
    .hero-wrap.hero-wrap-2 .breadcrumbs { font-size: 0.78rem; }
    .hero-wrap.hero-wrap-2 .breadcrumbs span { display: inline; }
}

/* ── Package listing page – cards ── */
@media (max-width: 767.98px) {
    .package-image-container .package-image { height: 200px !important; }
    .package-duration { font-size: 0.78rem; }
    .dest-chip { font-size: 0.68rem; padding: 2px 7px; }
    .package-card .card-body { padding: 0.85rem; }
    .package-title { font-size: 1rem !important; }
    .package-description { font-size: 0.85rem; -webkit-line-clamp: 3; }
    .package-feature { font-size: 0.8rem; }
}

/* ── Package detail page ── */
@media (max-width: 991.98px) {
    /* Sidebar drops below main content – remove sticky */
    .package-sidebar { position: static !important; top: auto !important; }
    /* Collapse the "On this page" nav on tablet too */
    .on-this-page { display: none !important; }
}

@media (max-width: 767.98px) {
    /* Gallery */
    .main-image { height: 240px !important; }
    .thumbnail-image { height: 68px !important; }

    /* Section titles */
    .section-title { font-size: 1.2rem !important; }

    /* Timeline – stack image under text */
    .timeline { padding-left: 24px; }
    .timeline::before { left: 10px; }
    .timeline-marker { left: -18px; width: 26px; height: 26px; font-size: 0.75rem; }
    .timeline-content { padding: 1rem; }
    .timeline-title { font-size: 1rem; }
    .timeline-body-row { flex-direction: column !important; gap: 0.75rem; }
    .timeline-image-wrap { width: 100% !important; height: 180px !important; }
    .timeline-destination-tag { font-size: 0.76rem; padding: 4px 10px; }

    /* Route map */
    .route-map-container { min-height: 260px !important; }

    /* Inclusions / Exclusions */
    .inclusions-content, .exclusions-content { font-size: 0.88rem; }
    .inclusions-content li, .exclusions-content li { margin-bottom: 0.4rem; }

    /* Sidebar destination mini-cards – 2 columns on mobile */
    .dest-mini-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Booking / action buttons */
    .package-details-card .btn { font-size: 0.88rem; padding: 0.6rem 0.75rem; }

    /* Contact card */
    .contact-card-header { padding: 14px 16px; }
    .contact-row { padding: 11px 14px; }
    .contact-row-value { font-size: 0.82rem; }

    /* Related packages – 1 column */
    .related-packages .col-md-4 { max-width: 100%; flex: 0 0 100%; }
}

/* ── Destinations listing page ── */
@media (max-width: 767.98px) {
    .destination-card-modern { border-radius: 14px !important; }
    .destination-card-modern .destination-image { height: 200px !important; }
}

/* ── Blog listing & detail ── */
@media (max-width: 767.98px) {
    .blog-card .blog-image-wrap img { height: 200px; object-fit: cover; }
    .blog-detail-body { font-size: 0.95rem; }
}

/* ── Custom Tour / contact forms ── */
@media (max-width: 767.98px) {
    .custom-tour-section .form-control { font-size: 16px !important; }
}

/* ── Global touch target minimum ── */
@media (max-width: 991.98px) {
    .btn, a.btn, button { min-height: 44px; }
    .nav-link { min-height: 44px; display: flex; align-items: center; }
}

/* ── Prevent horizontal scroll globally ── */
body { overflow-x: hidden; }
@media (max-width: 767.98px) {
    .container { max-width: 100%; }
    /* Fix Bootstrap columns that force overflow */
    .row { margin-left: -10px; margin-right: -10px; }
    .row > [class*="col"] { padding-left: 10px; padding-right: 10px; }
}

