/* Mobile Styles for UnboundRV Plugin */

#header-title-mobile {
    display: none !important;
}

.elementor-heading-title {
    margin: 0 !important;
}

/* Calendar container mobile styles */
@media screen and (max-width: 767px) {

    /* SINGLE PRODUCT PAGE CALENDAR */
    .calendar-container {
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .calendar {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    .calendar table {
        width: 100% !important;
        font-size: 16px !important;
    }

    .calendar td, 
    .calendar th {
        padding: 12px 8px !important;
        min-width: 45px !important;
        height: 45px !important;
    }

    .calendar .calendar-day {
        font-size: 16px !important;
        padding: 8px !important;
    }

    .calendar .calendar-day a {
        font-size: 16px !important;
        padding: 8px !important;
        min-width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }

    /* Make the calendar header more touch-friendly */
    .calendar .calendar-header {
        padding: 15px 10px !important;
    }

    .calendar .calendar-header button {
        padding: 10px !important;
        font-size: 18px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    .calendar .calendar-header select {
        padding: 8px 12px !important;
        font-size: 16px !important;
        height: 40px !important;
    }

    /* End of Single Product Page Calendar */

    /* Show header title only on mobile */
    #header-title-mobile {
        display: block !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 20px !important;
        color: #222222 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .home #header-title-mobile {
        display: none !important;
    }

    .home.logged-in .elementor-1752 .elementor-element.elementor-element-66c9f8a .elementor-nav-menu--dropdown a {
        color: #222222 !important;
    }


    /* Mobile Contact Button Styles */
    .urv-contact-button {
        position: fixed !important;
        bottom: 80px !important;
        right: 10px !important;
        z-index: 9990 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
        border-radius: 50% !important;
        width: 70px !important;
        height: 70px !important;
        overflow: hidden !important;
    }
    
    /* Icon-only style by default on mobile */
    #urv-contact-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #FF5500 !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        transition: all 0.3s ease !important;
    }
    
    /* Hide the text completely on mobile */
    .contact-text {
        display: none !important;
    }
    
    /* Show the icon */
    .contact-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 50px !important;
        color: white !important;
        margin: 0 !important;
    }

    /* Logo image */
    .attachment-large.size-large.wp-image-812 {
        width: auto !important;
        height: auto !important;
        max-height: 40px !important;
    }

    /* Header title */
    .elementor-heading-title.elementor-size-default {
        /* text-align: center !important; */
        margin: 0 !important;
        padding: 0 !important;
        /* white-space: nowrap !important; */
        overflow: hidden !important;
        /* text-overflow: ellipsis !important; */
    }

    /* Hamburger menu */
    .elementor-menu-toggle {
        margin: 0 !important;
        padding: 0 !important;
        width: 30px !important;
    }

    .elementor-menu-toggle i {
        font-size: 20px !important;
    }

    .elementor-menu-toggle svg {
        width: 20px !important;
        height: 30px !important;
    }

    /* Ensure menu is visible for non-logged in users */
    body:not(.logged-in) .main-menu.hide-content.show-admin-member {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Fix menu item colors for non-logged in users - excluding buttons */
    body:not(.logged-in) .main-menu.hide-content.show-admin-member .elementor-nav-menu li:not(.button) a {
        color: #222222 !important;
    }

    body:not(.logged-in) .main-menu.hide-content.show-admin-member .elementor-nav-menu li:not(.button) a:hover {
        color: #FF5500 !important;
    }

    .elementor-element-628baae3.footer-logout .elementor-nav-menu {
        display: flex !important;
        flex-direction: column !important;
        /* gap: 12px !important; */
        /* padding-left: 20px !important; */
    }

        /* ===== BOOKING TABLE FIXES ===== */
    /* Fix for the vehicle column in the booking table */
    .urv-vehicle-table th:first-child,
    .urv-vehicle-table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 5 !important; /* Lower z-index than the mobile menu */
        min-width: 120px !important;
        max-width: 120px !important;
        border-right: 2px solid #ddd;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        line-height: 1.2 !important;
    }
    
    /* Ensure vehicle listing table doesn't overlap with mobile menu */
    .urv-booking-calendar-wrapper {
        max-width: 100%;
        position: relative;
        z-index: 1 !important;
        overflow: hidden;
    }
    
    /* Add horizontal scrolling to the booking calendar */
    .urv-booking-calendar-scroll {
        padding-top: 60px !important;
        overflow-x: auto !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make the calendar table properly scrollable */
    .urv-vehicle-table {
        min-width: 800px !important; /* Ensure table is wider than viewport to enable scroll */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Fix for date cells to ensure consistent sizing */
    .urv-vehicle-table th:not(:first-child):not(:last-child),
    .urv-vehicle-table td:not(:first-child):not(:last-child) {
        min-width: 50px !important;
        text-align: center;
    }
    
    /* Make sure the Book column is also sticky on the right */
    .urv-vehicle-table th:last-child,
    .urv-vehicle-table td:last-child {
        position: sticky;
        right: 0;
        background: white;
        z-index: 5 !important;
        min-width: 70px !important;
        border-left: 2px solid #ddd;
    }
    
    /* Ensure the orange button doesn't overlap */
    .login-button, 
    .book-now-button,
    .contact-us-button,
    .orange-button {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Calendar Header Styles */
    .calendar-header {
        display: grid;
        grid-template-columns: 45px 45px minmax(160px, 1fr) 45px 45px;
        align-items: center;
        padding: 10px 15px;
        background: white;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        border-bottom: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        height: 60px;
        gap: 10px;
    }

    .nav-button {
        padding: 0 !important;
        font-size: 18px !important;
        width: 45px !important;
        height: 45px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
        margin: 0 !important;
    }

    .nav-button:hover {
        background: #e9ecef;
    }

    .nav-button:active {
        background: #dde2e6;
    }

    .month-selector {
        grid-column: 3;
        text-align: center;
        position: relative;
        margin: 0 auto;
        width: 100%;
        max-width: 200px;
    }

    #current-month-year {
        font-size: 15px !important;
        font-weight: 500;
        padding: 12px 15px !important;
        display: block !important;
        background: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        width: 100% !important;
        text-align: center;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .month-dropdown {
        top: calc(100% + 5px) !important;
        z-index: 1002 !important;
        width: 100% !important;
        max-width: 200px !important;
    }

    /* Table Header Styles - New Approach */
    .urv-vehicle-table thead th {
        position: static;
        /* top: 60px; */
        background: white;
        z-index: 999;
        border-bottom: 2px solid #ddd;
        height: 45px;
        /* padding: 8px 4px !important;  */
        text-align: center;
        vertical-align: middle; /* Ensure vertical centering */
    }

    /* Reset the body positioning */
    .urv-vehicle-table tbody {
        position: static; /* Remove the relative positioning */
    }

    /* Add spacing between header and first row */
    .urv-vehicle-table tbody tr:first-child td {
        padding-top: 16px !important;
    }

    /* Make sure the first column header stays above other headers */
    .urv-vehicle-table thead th:first-child {
        z-index: 1000;
        background: white;
        border-right: 2px solid #ddd;
    }

    /* Remove the scroll indicator */
    .urv-booking-calendar-wrapper::after {
        display: none; /* Remove the blurry white effect */
    }

    /* Membership description and inclusions mobile styles */
    .urv-membership-description p {
        white-space: normal !important;
        word-break: break-word !important;
        hyphens: auto !important;
        line-height: 1.5 !important;
        text-align: left !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
    
    /* Additional mobile-specific styles for membership content */
    .urv-inclusions-mobile p, 
    .urv-membership-description p {
        padding: 0 10px 10px 0 !important;
        margin-bottom: 10px !important;
    }
    
    .urv-inclusions-mobile p:last-child,
    .urv-membership-description p:last-child {
        border-bottom: none;
    }
    
    /* Ensure elements don't overflow their containers */
    .elementor-widget-container {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Add JavaScript for the close button functionality */
    script {
        display: none;
    }

}

/* Tablet styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .calendar {
        padding-right: 20px;
    }

    .calendar table {
        font-size: 15px;
    }
}

/* Footer Styles */
/* .elementor-element-628baae3.footer-logout {
    background-color: #222222 !important;
    padding: 20px !important;
} */


#logout-btn {
    width: 100% !important;
}



