/**
 * Booking Engine Layout Fix - Booking.com Style
 * For FollowMeToGreece
 */

/* Reset for booking section - Booking.com style */
#booking-section {
    position: relative;
    display: block;
    width: 100%;
    clear: both;
    margin: 20px 0 30px 0;
    padding: 15px 0;
    background-color: #f5faff;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
    border: 1px solid #e7e7e7;
    font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* Increase overall page width and center content */
/* Exclude header elements from the wider container */
.content_wrapper,
.content-fixed-listing,
.col-md-push-3 {
    max-width: 1600px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep header container at standard width */
.master_header .container,
.master_header .container-fluid,
.top_bar_wrapper .container,
.top_bar_wrapper .container-fluid {
    max-width: 1220px !important;
    width: 100% !important;
}

/* Center the entire page content - fixed scrolling */
body {
    overflow-x: hidden; /* Prevent horizontal scrolling only */
}

#all_wrapper {
    float: none !important;
    display: block;
    margin: 0 auto !important;
    width: 100% !important;
}

@media (min-width: 1200px) {
    /* Exclude header elements from the wider container */
    .content_wrapper,
    .content-fixed-listing {
        max-width: 1400px !important;
    }
    
    /* Keep header container at standard width */
    .master_header .container,
    .master_header .container-fluid,
    .top_bar_wrapper .container,
    .top_bar_wrapper .container-fluid {
        max-width: 1220px !important;
    }
}

@media (min-width: 1500px) {
    /* Exclude header elements from the wider container */
    .content_wrapper,
    .content-fixed-listing {
        max-width: 1600px !important;
    }
    
    /* Keep header container at standard width */
    .master_header .container,
    .master_header .container-fluid,
    .top_bar_wrapper .container,
    .top_bar_wrapper .container-fluid {
        max-width: 1220px !important;
    }
}

/* Ensure main content has enough width on larger screens */
@media (min-width: 992px) {
    .col-md-8 {
        width: 68% !important;
    }
    .col-md-4 {
        width: 30% !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container,
    .container-fluid,
    .content_wrapper,
    .content-fixed-listing {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure booking engine is fully responsive */
    #booking-section {
        padding: 10px !important;
    }
    
    .booking-date-range,
    .booking-guest-selector,
    .booking-search-button-container {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Make table scroll horizontally on small screens */
    .room-availability-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .room-availability-table {
        min-width: 600px !important; /* Ensure table can be scrolled */
    }
    
    /* Fix date picker on mobile */
    .ui-datepicker {
        width: 95% !important;
        left: 2.5% !important;
        right: 2.5% !important;
    }
    
    /* Optimize text and interactive elements for mobile */
    #booking-section h3.booking-section-title {
        font-size: 18px !important;
    }
    
    #booking-section p.booking-subtitle {
        font-size: 14px !important;
    }
    
    /* Make buttons more touch-friendly */
    button, .guest-btn, .booking-search-btn, .done-btn, .reserve-room-btn {
        min-height: 44px !important; /* Standard touch target size */
        font-size: 16px !important;
    }
    
    /* Adjust column layout for mobile */
    @media (max-width: 576px) {
        .col-md-8, .col-md-4 {
            width: 100% !important;
            float: none !important;
        }
        
        /* Make sure tables and form elements are readable */
        table, th, td, input, select {
            font-size: 14px !important;
        }
        
        /* Improve spacing on form elements */
        input, select, .guest-selector-button {
            height: 44px !important;
            margin-bottom: 10px !important;
        }
    }
}

/* Container styles */
.booking-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

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

/* Column styles */
#booking-section .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Booking engine container */
.booking-engine-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 25px;
    position: relative;
    border: 1px solid #e7e7e7;
}

/* Raise container stacking to keep inputs interactive */
.booking-engine-container { z-index: 5; }

/* Booking section title */
.booking-section-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Booking subtitle */
.booking-subtitle {
    color: #6b6b6b;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.booking-subtitle::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236b6b6b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="8"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 5px;
}

/* Booking form layout */
.booking-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e7e7e7;
    align-items: center;
    height: 56px;
}

/* Date range selector */
.booking-date-range {
    flex: 1;
    height: 100%;
    position: relative;
    border-right: 1px solid #e7e7e7;
}

.date-input-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    position: relative;
}

.date-input-container i {
    color: #2077ba;
    margin-right: 8px;
}

.date-input-container input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    color: #333;
    width: auto;
    cursor: pointer;
    height: auto;
    outline: none;
}

/* Ensure date inputs are clickable on mobile (above overlays) */
.booking-date-range,
.date-input-container,
#checkin-date,
#checkout-date {
    position: relative;
    z-index: 20;
}

/* DateRangePicker specific styles */
.daterangepicker {
    z-index: 9999 !important;
}

/* jQuery UI Datepicker styles */
.ui-datepicker {
    z-index: 1050 !important; /* Below modals and navigation but above content */
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ensure the date inputs are always clickable */
#checkin-date,
#checkout-date {
    cursor: pointer !important;
    background-color: transparent !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Override any conflicting pointer-events */
.date-input-container,
.date-input-container * {
    pointer-events: auto !important;
}

/* Prevent inputs from being editable when using datepicker */
#checkin-date[readonly],
#checkout-date[readonly] {
    cursor: pointer !important;
    background-color: transparent !important;
}

.date-input-container input:focus {
    outline: none;
    box-shadow: none;
}

.date-separator {
    margin: 0 8px;
    color: #999;
}

/* Guest selector */
.booking-guest-selector {
    height: 100%;
    border-right: 1px solid #e7e7e7;
    position: relative;
}

.guest-selector-button {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    white-space: nowrap;
}

.guest-selector-button i {
    color: #2077ba;
    margin-right: 8px;
}

.guest-selector-button span {
    font-size: 14px;
    color: #333;
}

/* Search button container */
.booking-search-button-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.booking-search-btn {
    background-color: #2077ba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 36px;
}

.booking-search-btn:hover {
    background-color: #2c91ce;
}

/* Booking form groups */
.booking-form-group {
    margin-bottom: 15px;
    flex: 1;
    min-width: 180px;
}

/* Form labels */
.booking-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Booking form inputs */
.booking-form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 44px;
}

/* Ensure any select in booking widget area adopts full width and height */
.booking-engine-container select,
.booking-widget select {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.booking-form-control:focus {
    border-color: #2077ba;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(32, 119, 186, 0.2);
}

/* Date inputs */
input[type="text"].booking-form-control.datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

/* Select inputs */
select.booking-form-control {
    background-image: none !important; /* use native arrows */
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    cursor: pointer;
}

/* Booking button */
.booking-search-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    color: #fff;
    background-color: #2077ba;
    border-color: #2077ba;
    cursor: pointer;
    min-width: 150px;
    height: 44px;
}

.booking-search-btn:hover {
    background-color: #2c91ce;
    border-color: #2c91ce;
}

.booking-search-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.3);
}

/* Room availability table container */
.room-availability-container {
    margin-top: 20px;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Room availability table */
.room-availability-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    min-width: 800px; /* Ensures table doesn't get too compressed */
}

.room-availability-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.room-availability-table th, .room-availability-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #e7e7e7;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
}

/* Column widths for better layout */
.room-availability-table th:nth-child(1),
.room-availability-table td:nth-child(1) {
    width: 35%;
}

.room-availability-table th:nth-child(2),
.room-availability-table td:nth-child(2) {
    width: 20%;
}

.room-availability-table th:nth-child(3),
.room-availability-table td:nth-child(3) {
    width: 20%;
}

.room-availability-table th:nth-child(4),
.room-availability-table td:nth-child(4) {
    width: 5%;
}

.room-availability-table th:nth-child(5),
.room-availability-table td:nth-child(5) {
    width: 10%;
}

.room-availability-table th:nth-child(6),
.room-availability-table td:nth-child(6) {
    width: 17%;
}

.room-availability-table tbody tr:last-child td {
    border-bottom: none;
}

.room-availability-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2077ba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile booking results */
.mobile-booking-results {
    display: none;
}

/* Show mobile card view and hide table on small screens */
@media (max-width: 767px) {
    .room-availability-table {
        display: none !important;
    }
    .mobile-booking-results {
        display: block !important;
    }
    
    /* Enhanced mobile date input styling for smaller screens */
    .date-input-container {
        padding: 10px;
    }
    
    .date-input-container input {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        background-color: #f8f9fa;
    }
    
    #checkin-date::placeholder,
    #checkout-date::placeholder {
        color: #6c757d;
    }
    .mobile-room-card {
        border: 1px solid #e7e7e7;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .mobile-room-card .room-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #333;
    }
    .mobile-room-card .rate-name {
        font-size: 14px;
        color: #555;
    }
    .mobile-room-card .price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 6px;
    }
    .mobile-room-card .price {
        font-size: 18px;
        font-weight: 700;
        color: #003580;
    }
    .mobile-room-card .meal-plan {
        font-size: 12px;
        color: #2f855a;
        background: #ebf7ef;
        border-radius: 4px;
        padding: 2px 6px;
    }
    .mobile-room-card .policy {
        font-size: 12px;
        color: #666;
        margin-top: 6px;
    }
    .mobile-room-card .actions {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }
    .mobile-room-card .actions .btn {
        flex: 1;
        min-height: 40px;
        font-size: 14px;
    }
    
    /* Mobile button color overrides */
    .mobile-room-card .btn-outline-secondary {
        background-color: #2077ba !important;
        border-color: #2077ba !important;
        color: white !important;
    }
    
    .mobile-room-card .btn-outline-secondary:hover,
    .mobile-room-card .btn-outline-secondary:active {
        background-color: #2c91ce !important;
        border-color: #2c91ce !important;
        color: white !important;
    }
    
    .mobile-room-card .btn-success {
        background-color: #2c91ce !important;
        border-color: #2c91ce !important;
        color: white !important;
        font-weight: 600;
    }
    
    .mobile-room-card .btn-success:hover,
    .mobile-room-card .btn-success:active {
        background-color: #2077ba !important;
        border-color: #2077ba !important;
        color: white !important;
    }
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon .guests-dropdown {
    padding-left: 35px;
}

/* Guests dropdown */
.guests-dropdown-wrapper {
    position: relative;
}

.guests-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    transition: transform 0.2s;
}

.guests-dropdown.active .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Guests panel */
.guests-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    padding: 16px;
    margin-top: 5px;
    display: none;
}

.guests-panel.active {
    display: block;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 4px 0;
}

.guest-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.guest-controls {
    display: flex;
    align-items: center;
}

.guest-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #2077ba;
    background-color: white;
    color: #2077ba;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s;
}

.guest-btn:hover {
    background-color: #f5f5f5;
}

.guest-btn.disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.guest-count {
    margin: 0 10px;
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.guest-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    border-top: 1px solid #e7e7e7;
    padding-top: 15px;
}

.done-btn {
    background-color: #2077ba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.done-btn:hover {
    background-color: #00487a;
}

/* Date group */
.date-group {
    flex: 0 0 200px;
}

/* Button group */
.button-group {
    display: flex;
    align-items: flex-end;
}

/* Free cancellation */
.free-cancellation {
    color: #008009;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.free-cancellation i {
    margin-right: 5px;
}

/* Room payment */
.room-payment {
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Room price */
.room-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-includes {
    font-size: 12px;
    color: #6b6b6b;
}

/* Reserve button */
.reserve-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    color: #fff;
    background-color: #2077ba;
    border-color: #2077ba;
    cursor: pointer;
    width: 100%;
}

.reserve-btn:hover {
    background-color: #2c91ce;
    border-color: #2c91ce;
}

/* Booking results container */
.booking-results-container {
    margin-top: 20px;
    overflow-x: auto;
    max-width: 100%;
}

/* Room cards */
.room-card {
    margin-bottom: 20px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background-color: #fff;
}

.room-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Room card header */
.room-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-card-title {
    font-size: 26px;
    font-weight: 700;
    color: #003580;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Room card body */
.room-card-body {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
}

.room-card-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.room-card-details {
    flex: 1;
    min-width: 200px;
}

.room-card-amenities {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.room-card-amenity {
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.room-card-amenity i {
    color: #2077ba;
    margin-right: 5px;
}

/* Room card footer */
.room-card-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.room-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #003580;
}

.room-card-price small {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.room-card-button {
    background-color: #2077ba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.room-card-button:hover {
    background-color: #2c91ce;
}

/* Fix for modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

/* Fix for modal dialog */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

/* Fix for modal content */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

/* Mobile daily rates table styling */
.mobile-daily-rates-table {
    width: 100%;
    font-size: 12px;
    margin-top: 10px;
}

.mobile-daily-rates-table th {
    background-color: #2077ba;
    color: white;
    padding: 8px;
    text-align: left;
}

.mobile-daily-rates-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

/* Style alert messages with brand colors */
.alert-info {
    background-color: #e8f2f9;
    border-color: #2077ba;
    color: #1a5a8a;
}

/* View Rates button styling */
.show-daily-rates-btn,
.btn-outline-primary {
    background-color: #2077ba;
    border: 1px solid #2077ba;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-daily-rates-btn:hover,
.btn-outline-primary:hover {
    background-color: #2c91ce;
    border-color: #2c91ce;
    color: white;
    text-decoration: none;
}

/* Book button styling (Reserve Room) - Override Bootstrap */
.reserve-room-btn,
.btn-success,
.room-availability-table .btn-success,
.mobile-room-card .btn-success {
    background-color: #2c91ce !important;
    border: 1px solid #2c91ce !important;
    color: white !important;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.reserve-room-btn:hover,
.btn-success:hover,
.room-availability-table .btn-success:hover,
.mobile-room-card .btn-success:hover,
.reserve-room-btn:focus,
.btn-success:focus,
.reserve-room-btn:active,
.btn-success:active {
    background-color: #2077ba !important;
    border-color: #2077ba !important;
    color: white !important;
    text-decoration: none;
    box-shadow: none !important;
}

/* Disabled book button */
.reserve-room-btn:disabled,
.btn-success:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Extra specificity to override Bootstrap green */
.room-availability-table td .btn-success,
.booking-engine-container .btn-success,
#booking-section .btn-success {
    background-color: #2c91ce !important;
    background-image: none !important;
    border-color: #2c91ce !important;
    color: white !important;
}

.room-availability-table td .btn-success:hover,
.booking-engine-container .btn-success:hover,
#booking-section .btn-success:hover {
    background-color: #2077ba !important;
    background-image: none !important;
    border-color: #2077ba !important;
    color: white !important;
}

/* B2C price and tax styling */
.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #f9b33b !important; /* Use brand yellow */
    font-weight: 500;
}

/* Media queries */
@media (max-width: 992px) {
    .booking-search-form {
        flex-direction: column;
        height: auto;
        gap: 0;
    }
    
    .booking-date-range,
    .booking-guest-selector {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e7e7e7;
        height: auto;
        min-height: 56px;
    }
    
    /* Stack date inputs vertically on mobile */
    .date-input-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 10px;
    }
    
    .date-input-container i {
        display: none; /* Hide icon on mobile for cleaner look */
    }
    
    .date-input-container input {
        width: 100%;
        padding: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
        text-align: center;
    }
    
    #checkin-date,
    #checkout-date {
        display: block !important;
    }
    
    .date-separator {
        display: none;
    }
    
    .booking-search-button-container {
        width: 100%;
        padding: 10px;
        justify-content: center;
    }
    
    .booking-search-btn {
        width: 100%;
    }
    
    .room-availability-table th,
    .room-availability-table td {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .room-description {
        display: none;
    }
    
    .free-cancellation,
    .room-payment,
    .no-charge-note {
        font-size: 12px;
    }
}

/* Multi-room pricing display */
.price-breakdown {
    text-align: left;
}

.price-breakdown .price {
    font-weight: bold;
    color: #2077ba;
}

.price-breakdown small {
    font-size: 0.8em;
    line-height: 1.2;
    color: #6c757d;
}

/* Mobile multi-room pricing */
.mobile-room-card .price-total {
    font-weight: bold;
    font-size: 1.1em;
    color: #2077ba;
}

.mobile-room-card .price small {
    display: block;
    margin-top: 2px;
    font-size: 0.8em;
    color: #6c757d;
}

/* Hide row-level Qty column in availability table (use top Rooms selector instead) */
.room-availability-table th.qty-column,
.room-availability-table td.qty-column {
	display: none !important;
}
