/* Living Essaouira Frontend Styles */

/* Common Form Styles */
.le-booking-form,
.le-search-form,
.le-calculator-form,
.le-test-datepicker-container {
    max-width: 560px;
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 28px 28px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
    width: 100%;
}

.le-search-form {
    max-width: 100%;
}

.le-booking-form h3,
.le-search-form h3,
.le-calculator-form h3,
.le-test-datepicker-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#bookingsearchform .le-search-form h3 {
    display: none;
}

.le-booking-form label,
.le-search-form label,
.le-calculator-form label,
.le-test-datepicker-container label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #334155;
}

.le-booking-form label i,
.le-search-form label i,
.le-calculator-form label i,
.le-test-datepicker-container label i {
    color: #f15e75;
    font-size: 1.3rem;
}

.le-booking-form input,
.le-search-form input,
.le-calculator-form input,
.le-test-datepicker-container input,
.le-booking-form select,
.le-search-form select,
.le-calculator-form select,
.le-test-datepicker-container select {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
    /* 16px prevents iOS zoom on focus */
    background-color: #fff;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
    min-height: 46px;
    /* minimum touch target */
}

.le-booking-form input:focus,
.le-search-form input:focus,
.le-calculator-form input:focus,
.le-test-datepicker-container input:focus,
.le-booking-form select:focus,
.le-search-form select:focus,
.le-calculator-form select:focus,
.le-test-datepicker-container select:focus {
    border-color: #006064;
    box-shadow: 0 0 0 3px rgba(0, 96, 100, 0.12);
    outline: none;
}

/* Date Inputs */
#le-booking-checkin,
#le-booking-checkout,
#le-calculator-checkin,
#le-calculator-checkout,
#le-search-checkin,
#le-search-checkout,
#le-test-checkin,
#le-test-checkout {
    width: 100%;
    border: 1px solid #ccc;
}

/* Form Layout */
.le-booking-dates,
.le-search-dates,
.le-calculator-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.le-booking-guests,
.le-search-guests,
.le-calculator-guests {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* Field wrapper — holds label + input together */
.le-booking-dates>div,
.le-search-dates>div,
.le-calculator-dates>div,
.le-booking-guests>div,
.le-search-guests>div,
.le-calculator-guests>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Select arrow indicator */
.le-search-guests>div,
.le-booking-guests>div,
.le-calculator-guests>div {
    position: relative;
}

.le-search-guests>div select,
.le-booking-guests>div select,
.le-calculator-guests>div select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="7" viewBox="0 0 12 7"><path d="M1 1l5 5 5-5" stroke="%23006064" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 7px;
    padding-right: 34px;
}

.le-search-dates>div input,
.le-booking-dates>div input,
.le-calculator-dates>div input {
    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="%23006064" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 38px;
    cursor: pointer;
}

/* Total Price Display */
.le-total {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.le-total-nights,
.le-total-price,
.le-total-deposit,
.le-total-checkin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 15px 17px;
}

.le-total-nights,
.le-total-price,
.le-total-deposit {
    border-right: 1px solid #e0e0e0;
}

.le-total-checkin {
    border-right: none;
}

.le-total-label {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.le-total-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #3b4249;
    line-height: 1.3;
}

/* Responsive: Stack on small screens */
@media (max-width: 400px) {
    .le-total {
        flex-direction: column;
        gap: 0;
    }

    .le-total-nights,
    .le-total-price,
    .le-total-deposit {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .le-total-checkin {
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .le-total {
        flex-wrap: wrap;
    }

    .le-total-nights,
    .le-total-price,
    .le-total-deposit,
    .le-total-checkin {
        flex: 0 0 50%;
        width: 50%;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .le-total-nights:nth-child(odd),
    .le-total-price:nth-child(odd),
    .le-total-deposit:nth-child(odd),
    .le-total-checkin:nth-child(odd) {
        border-right: 1px solid #e0e0e0;
    }

    .le-total-deposit,
    .le-total-checkin {
        border-bottom: none;
    }
}

@media (max-width: 400px) {
    .le-total {
        flex-wrap: wrap;
    }

    .le-total-nights,
    .le-total-price,
    .le-total-deposit,
    .le-total-checkin {
        flex: 0 0 50%;
        width: 100%;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .le-total-nights:nth-child(odd),
    .le-total-price:nth-child(odd),
    .le-total-deposit:nth-child(odd),
    .le-total-checkin:nth-child(odd) {
        border-right: none;
    }

    .le-total-deposit {
        border-bottom: 1px solid #e0e0e0;
    }

    .le-total-checkin {
        border-bottom: none;
    }
}

/* Action Buttons */
.le-whatsapp-btn,
.le-search-button,
.le-book-button {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.le-whatsapp-btn:hover,
.le-search-button:hover,
.le-book-button:hover {
    background: #1da851;
}

/* Search Results */
.le-search-results {
    margin-top: 20px;
}

.le-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.le-result-item {
    flex: 1;
    min-width: 250px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.le-result-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.le-result-item p {
    margin: 5px 0;
    color: #666;
}

.le-result-item .le-book-button {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
    width: auto;
}

/* Detail Containers */
.le-booking-details,
.le-calculator-details {
    background: #ffe6e6;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #735858;
}

.le-booking-details p,
.le-calculator-details p {
    margin: 5px 0;
}

/* Calculator Specific Styles */
.le-calculator-field {
    margin-bottom: 15px;
}

.le-calculator-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.le-calculator-field select,
.le-calculator-field input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.le-calculator-field input[type="number"] {
    -moz-appearance: textfield;
}

.le-calculator-field input[type="number"]::-webkit-outer-spin-button,
.le-calculator-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Calculator Action Buttons (Copy Buttons) */
.le-calculator-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
}

.le-copy-btn {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.le-copy-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.le-copy-btn:active {
    transform: translateY(0);
}

.le-copy-btn.copied {
    background: #e7f5ff;
    color: #228be6;
    border-color: #a5d8ff;
}

/* Test/Debug Components */
.le-test-result {
    margin-top: 20px;
}

.le-success-message {
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
}

.le-error-message {
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
}

/* ===================================================================
   MOBILE-FIRST RESPONSIVE: Search Form & Results
   =================================================================== */

/* --- Tablet (≤ 640px): guest selects go to 2+1 layout --- */
@media (max-width: 640px) {

    .le-booking-form,
    .le-search-form,
    .le-calculator-form {
        padding: 20px 16px 18px;
        border-radius: 10px;
        margin-left: 0;
        margin-right: 0;
        /* On phones use full viewport width */
    }

    .le-booking-guests,
    .le-search-guests,
    .le-calculator-guests {
        /* Adults + Children on first row, Infants full-width on second */
        grid-template-columns: 1fr 1fr;
    }

    /* Last child (Infants) spans full width */
    .le-booking-guests>div:last-child,
    .le-search-guests>div:last-child,
    .le-calculator-guests>div:last-child {
        grid-column: 1 / -1;
    }
}

/* --- Small phone (≤ 420px): full-column layout --- */
@media (max-width: 420px) {

    .le-booking-form,
    .le-search-form,
    .le-calculator-form {
        padding: 16px 14px 14px;
        border-radius: 8px;
    }

    .le-booking-dates,
    .le-search-dates,
    .le-calculator-dates {
        /* Stack dates vertically on very small screens */
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .le-booking-guests,
    .le-search-guests,
    .le-calculator-guests {
        /* Keep 2-col for guests even on small phones */
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .le-booking-form label,
    .le-search-form label,
    .le-calculator-form label {
        font-size: 1.2rem;
    }

    .le-booking-form h3,
    .le-search-form h3,
    .le-calculator-form h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }
}

/* Ensure inputs/selects never zoom on iOS (16px required) */
@media (max-width: 768px) {

    .le-booking-form input,
    .le-search-form input,
    .le-calculator-form input,
    .le-booking-form select,
    .le-search-form select,
    .le-calculator-form select {
        font-size: 16px !important;
    }
}

/* Modal popup styling for input datepicker popup only */
#ui-datepicker-div {
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 15px;
    width: 90%;
    max-width: 340px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: inherit;
    box-sizing: border-box;
}

.ui-datepicker {
    font-family: inherit;
    box-sizing: border-box;
}

/* Inline datepicker inside cards and standalone widgets */
.le-card-cal-inline .ui-datepicker,
.le-standalone-cal-container .ui-datepicker {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure modal positioning applies only to popup input datepicker */
@media (max-width: 767px) {
    #ui-datepicker-div {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
    }
}

/* Hide the default trigger button */
.ui-datepicker-trigger {
    display: none !important;
}

/* Add dropdown arrow to date inputs */
.le-booking-dates>div,
.le-search-dates>div,
.le-calculator-dates>div {
    position: relative;
}

.le-booking-dates input.datepicker,
.le-search-dates input.datepicker,
.le-calculator-dates input.datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0h12L6 6z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 6px;
    padding-right: 30px;
    cursor: pointer;
}

/* Backdrop */
.le-datepicker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
}

.le-datepicker-backdrop.active {
    display: block;
}

/* Reset any conflicting styles */
.ui-datepicker td a.ui-state-default,
.ui-datepicker td span.ui-state-default {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-decoration: none;
    /* Force square width */
    height: 40px !important;
    /* Force square height */
    line-height: 40px;
    margin: 0 auto;
    /* Center in cell */
    border-radius: 50%;
    /* Make round by default */
    box-sizing: border-box;
    color: #333;
    font-weight: 400;
    /* User requested 400 */
    font-size: 14px;
}

.ui-datepicker table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate !important;
    /* Essential for gaps */
    border-spacing: 0 4px !important;
    /* Horizontal 0 to allow connectors to touch, Vertical 4px for row gap */
    margin: 0;
}

.ui-datepicker td {
    padding: 0;
    /* Remove padding to ensure connector touches edges */
    position: relative;
    /* CRITICAL: Anchors the absolute connector */
}

/* Range Middle */
.ui-datepicker td.le-range-mid a.ui-state-default {
    background: #e0f7fa !important;
    /* Very light cyan */
    color: #006064 !important;
    border-radius: 0;
    /* Rectangular for flow */
    position: relative;
    z-index: 1;
    width: 100% !important;
    /* Fill the entire cell to connect with neighbors */
}

/* Connector for Start (Right half colored) */
.ui-datepicker td.le-range-start::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50%;
    height: 40px;
    transform: translateY(-50%);
    background: #e0f7fa;
    z-index: 1;
    /* Ensure it's above the cell background but below the link (z-index: 2) */
    display: block;
    pointer-events: none;
}

/* Connector for End (Left half colored) */
.ui-datepicker td.le-range-end::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    height: 40px;
    transform: translateY(-50%);
    background: #e0f7fa;
    z-index: 1;
    display: block;
    pointer-events: none;
}

/* Case 1: Available dates - solid light green background */
/* Case 1: Available dates - solid light green background */
.ui-datepicker td.le-available a.ui-state-default {
    background: #dcedc8 !important;
    /* Lighter green from image */
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Case 2: Booked dates - solid light red background */
/* Case 2: Booked dates - solid light red background */
/* Case 2: Booked dates - solid light red background */
.ui-datepicker td.le-unavailable a.ui-state-default,
.ui-datepicker td.le-booked a.ui-state-default,
.ui-datepicker td.le-unavailable span.ui-state-default,
.ui-datepicker td.le-booked span.ui-state-default {
    background: #ffcdd2 !important;
    /* Lighter red from image */
    border-color: rgba(0, 0, 0, 0.05) !important;
    color: #555;
    opacity: 1;
}

/* Case 4: Checkin day - Diagonal split (Green Top-Left / Red Bottom-Right) */
/* Wait, logic check: Check-in means you arrive. Day starts free (Green), ends booked (Red). */
/* Visual: Top-Left Green, Bottom-Right Red */
/* Case 4: Checkin day - Diagonal split (Green Top-Left / Red Bottom-Right) */
.ui-datepicker td.le-checkin-day a.ui-state-default {
    background: linear-gradient(135deg, #dcedc8 50%, #ffcdd2 50%) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

/* Case 5: Checkout day - Diagonal split (Red Top-Left / Green Bottom-Right) */
/* Logic: Day starts booked (Red), ends free (Green). */
/* Visual: Top-Left Red, Bottom-Right Green */
/* Case 5: Checkout day - Diagonal split (Red Top-Left / Green Bottom-Right) */
.ui-datepicker td.le-checkout-day a.ui-state-default {
    background: linear-gradient(135deg, #ffcdd2 50%, #dcedc8 50%) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

/* Case 3: Checkout and checkin same day - Diagonal split (Red / Red) -> effectively solid red but let's keep it consistent */
/* Actually, if it's turnover, it's fully booked for the user. */
/* Case 3: Checkout and checkin same day - Diagonal split (Red / Red) with visual separator */
.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default {
    background: linear-gradient(135deg, #ffcdd2 49%, #e57373 49%, #e57373 51%, #ffcdd2 51%) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    color: #555;
    cursor: default !important;
    pointer-events: none;
}

/* Blocked span dates (would span across booked dates) - striped pattern for clear differentiation */
.ui-datepicker td.le-blocked-span a.ui-state-default {
    background: repeating-linear-gradient(45deg,
            #ffebee,
            #ffebee 3px,
            #f8bbd9 3px,
            #f8bbd9 6px) !important;
    color: #c62828 !important;
    border-color: #ffcdd2 !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
}

/* Enhanced diagonal visualization with pseudo-elements for better browser support */
.ui-datepicker td.le-checkin-day a.ui-state-default::before,
.ui-datepicker td.le-checkout-day a.ui-state-default::before,
.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.ui-datepicker td.le-checkin-day a.ui-state-default::before {
    background: transparent;
}

.ui-datepicker td.le-checkout-day a.ui-state-default::before {
    background: transparent;
}

.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default::before {
    background: transparent;
}

/* Ensure text is readable over split backgrounds */
.ui-datepicker td.le-checkin-day a.ui-state-default,
.ui-datepicker td.le-checkout-day a.ui-state-default,
.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default {
    position: relative;
    z-index: 1;
}

/* Day names (Mon, Tue, etc) */
.ui-datepicker th {
    padding: 10px 0;
    color: #555;
    font-weight: 400;
}

/* Disabled days (not selectable) */
.ui-datepicker .ui-state-disabled {
    opacity: 1;
}

/* User requested styles for unselectable - Make them look like booked dates */
.ui-datepicker .ui-datepicker-unselectable {
    opacity: 1;
}

.ui-datepicker .ui-datepicker-unselectable span {
    color: #555;
    background-color: #ffcdd2 !important;
    /* Match booked color */
    border-color: rgba(0, 0, 0, 0.05) !important;

    /* Geometry fixes to match selectable dates */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    box-sizing: border-box;
}

/* Hover States */
.ui-datepicker td.le-available a.ui-state-default:hover {
    background: #e8f5e9 !important;
    cursor: pointer;
}

.ui-datepicker td.le-checkin-day a.ui-state-default:hover,
.ui-datepicker td.le-checkout-day a.ui-state-default:hover,
.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default:hover {
    opacity: 0.9;
}

/* Other Month Grayscale */
.ui-datepicker-other-month .ui-state-default {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
    opacity: 0.3;
}

/* Navigation Arrows */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    position: absolute;
    top: 10px;
    width: 30px;
    height: 30px;
}

.ui-datepicker .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    text-indent: -9999px;
    background: none !important;
    /* Ensure no default icon */
}

.ui-datepicker .ui-datepicker-prev span {
    border-width: 8px 8px 8px 0;
    border-color: transparent #333 transparent transparent;
}

.ui-datepicker .ui-datepicker-next span {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #333;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    background: transparent;
    border: none;
    top: 10px;
}

.ui-datepicker .ui-datepicker-prev-hover span {
    border-color: transparent #000 transparent transparent;
}

.ui-datepicker .ui-datepicker-next-hover span {
    border-color: transparent transparent transparent #000;
}

/* Header Styling */
.ui-datepicker .ui-datepicker-header {
    background: #fff;
    border: none;
    border-bottom: none;
    /* Removed border */
    padding: 15px 0;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* Selected date - Removed to prevent conflict with custom range styles */
/* .ui-datepicker .ui-state-active { background-color: #4caf50 !important; color: white !important; } */

/* Hover state */
.ui-datepicker .ui-state-hover {
    background-color: #e0f7fa !important;
}

/* Today's date - Remove border, just use bold text as defined later */
.ui-datepicker .ui-state-highlight {
    border: none !important;
    font-weight: bold !important;
    color: #006064 !important;
}

/* Calendar cell sizing */
.ui-datepicker td {
    padding: 0;
    /* Remove padding to ensure connector touches edges */
    position: relative;
    /* CRITICAL: Anchors the absolute connector */
}

/* Date links */
.ui-datepicker td a {
    text-align: center;
}

/* Disabled dates */
.ui-datepicker .ui-state-disabled a.ui-state-default {
    background: #f5f5f5 !important;
}

/* Hover effects for special states */
.ui-datepicker td.le-available a.ui-state-default:hover {
    background: #e8f5e9 !important;
}

.ui-datepicker td.le-checkin-day a.ui-state-default:hover,
.ui-datepicker td.le-checkout-day a.ui-state-default:hover,
.ui-datepicker td.le-checkout-checkin-same-day a.ui-state-default:hover {
    opacity: 0.9;
}

/* Other Month Grayscale */
.ui-datepicker-other-month .ui-state-default {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
    opacity: 0.5;
}

/* Navigation Arrows */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    position: absolute;
    top: 2px;
    width: 30px;
    height: 45px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    text-indent: -9999px;
}

.ui-datepicker .ui-datepicker-prev span {
    border-width: 8px 8px 8px 0;
    border-color: transparent #333 transparent transparent;
}

.ui-datepicker .ui-datepicker-next span {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #333;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    background: transparent;
    border: none;
    top: 2px;
}

.ui-datepicker .ui-datepicker-prev-hover span {
    border-color: transparent #000 transparent transparent;
}

.ui-datepicker .ui-datepicker-next-hover span {
    border-color: transparent transparent transparent #000;
}

/* Header Styling */
.ui-datepicker .ui-datepicker-header {
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 10px;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: bold;
    font-size: 16px;
}

/* Date Range Selection */
.ui-datepicker td.le-date-range-selected a.ui-state-default:hover,
.ui-datepicker td.le-date-range-start a.ui-state-default:hover,
.ui-datepicker td.le-date-range-end a.ui-state-default:hover {
    opacity: 0.8;
}

/* --- Unified Datepicker Range Styles (Premium Theme) --- */

/* Reset default jQuery UI states for our range */
.ui-datepicker td a.ui-state-default {
    background: #fff;
    border: none;
    color: #484848;
    font-weight: 600;
    border-radius: 50%;
    /* Circular default */
    width: 40px !important;
    height: 40px !important;
    line-height: 40px;
    margin: 0 auto;
    transition: background 0.2s, color 0.2s;
}

/* Ensure active state doesn't add ugly borders/backgrounds if not handled by our classes */
.ui-datepicker td a.ui-state-active,
.ui-datepicker td.ui-state-active,
.ui-datepicker td.ui-datepicker-current-day {
    background: transparent !important;
    /* Force transparent on container */
    border: none !important;
}

.ui-datepicker td a.ui-state-active {
    background: #fff;
    /* Default to white for the link itself if not a range class */
    color: #484848;
}

/* Hover effect for any selectable date */
.ui-datepicker td:not(.ui-state-disabled) a.ui-state-default:hover {
    background: #e0f7fa;
    /* Light cyan hover */
    border-radius: 50%;
    color: #006064;
}

/* Range Start */
.ui-datepicker td.le-range-start a.ui-state-default {
    background: #006064 !important;
    /* Deep Teal */
    color: #fff !important;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 96, 100, 0.3);
}

/* Range End */
.ui-datepicker td.le-range-end a.ui-state-default {
    background: #006064 !important;
    /* Deep Teal */
    color: #fff !important;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 96, 100, 0.3);
}

/* Range Middle */
.ui-datepicker td.le-range-mid a.ui-state-default {
    background: #e0f7fa !important;
    /* Very light cyan */
    color: #006064 !important;
    border-radius: 0;
    /* Rectangular for flow */
    position: relative;
    z-index: 1;
}

/* Connector for Start (Right half colored) */
.ui-datepicker td.le-range-start::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50%;
    height: 40px;
    transform: translateY(-50%);
    background: #e0f7fa;
    z-index: 1;
    /* Ensure it's above the cell background but below the link (z-index: 2) */
    display: block;
    pointer-events: none;
    /* Only show if we are in a range - handled by JS class or implied by existence of mid/end? 
       CSS-only limitation: We can't see next sibling easily. 
       However, visually, a circle on top of a rectangle works if the rectangle is there.
       For now, we leave the connector off to avoid visual glitches if no range exists.
       The mid-cells provide enough continuity.
    */
}

/* Invalid Min Stay */
.ui-datepicker td.le-min-stay-invalid a.ui-state-default {
    background: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Unavailable / Blocked */
.ui-datepicker td.le-unavailable a.ui-state-default,
.ui-datepicker td.ui-state-disabled a.ui-state-default {
    color: #d8d8d8 !important;
    background: transparent !important;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Today */
.ui-datepicker td.ui-datepicker-today a.ui-state-default {
    font-weight: 800;
    color: #006064;
}

/* --- Datepicker Footer Controls --- */
.le-datepicker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.le-datepicker-btn-clear {
    background: transparent;
    border: none;
    color: #006064;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 20px;
    border-radius: 20px;
}

.le-datepicker-btn-clear:hover {
    color: #333;
    background: #f5f5f5;
    border: none;
    font-weight: 600;
}

.le-datepicker-btn-close {
    background: #006064;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 96, 100, 0.2);
    transition: background 0.2s;
}

.le-datepicker-btn-close:hover {
    background: #004d40;
    border: none;
    font-weight: 600;
}

/* --- Datepicker Header Display (Check-in/Checkout Boxes) --- */
.le-datepicker-header-display {
    display: flex;
    gap: 10px;
    padding: 0 10px 10px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.le-date-box {
    flex: 1;
    border: 1px solid #e0e0e0;
    /* Lighter gray for inactive */
    border-radius: 12px;
    /* More rounded as per modern designs */
    padding: 5px 10px;
    cursor: pointer;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.le-date-box:hover {
    border-color: #b0b0b0;
}

.le-date-box.active {
    border-color: #222;
    /* Solid black/dark gray */
    border-width: 2px;
    padding: 4px 9px;
    /* Compensate for border width */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.le-date-box .le-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.le-date-box .le-value {
    display: block;
    font-size: 12px;
    color: #717171;
    font-weight: 400;
}

.le-date-box.active .le-value {
    color: #222;
    font-weight: 500;
}

/* --- Min Stay Label --- */
.le-min-stay-label {
    position: absolute;
    bottom: 120%;
    /* Move it up a bit more */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    z-index: 100;
    /* High z-index */
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* Mobile safety */
    max-width: 150px;
    text-align: center;
}

/* Ensure the label doesn't get clipped by the datepicker container */
/* We need to allow overflow on the datepicker if possible, or ensure enough space */
.ui-datepicker {
    overflow: visible !important;
    /* Allow label to stick out */
}

/* Arrow for Min Stay Label */
.le-min-stay-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.05));
}

/* --- Search Results Cards & Grid --- */
.le-search-results {
    margin-top: 30px;
}

.le-results-section-title {
    /*font-size: 1.15rem;*/
    font-weight: 700;
    margin: 25px 0 15px;
    color: #006064;
    border-bottom: 2px solid #006064;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.le-results-section-title.le-unavailable-header {
    margin-top: 40px;
    color: #9b2c2c;
    border-bottom-color: #feb2b2;
}

.le-results-grid {
    display: grid;
    /* Single column on small screens, 2-col on wider */
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (min-width: 640px) {
    .le-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 24px;
    }
}

.le-result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.le-result-card:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.le-result-card.le-card-unavailable {
    border-color: #cbd5e0;
    background: #fafafa;
}

.le-result-card.le-card-unavailable .ui-datepicker-calendar {
    pointer-events: none;
}

.le-result-card.le-card-unavailable .ui-datepicker-calendar td span,
.le-result-card .ui-datepicker-calendar td a.ui-state-default {
    border-radius: 0;
}

/* 1920x1280 (3:2) Aspect Ratio Image Container */
.le-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1280;
    background-color: #edf2f7;
    overflow: hidden;
}

.le-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.le-result-card:hover .le-card-image {
    transform: none !important;
}

.le-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #006064;
    font-size: 3rem;
}

.le-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.le-status-badge.le-badge-available {
    background: #22c55e;
    color: #ffffff;
}

.le-status-badge.le-badge-unavailable {
    background: #ef4444;
    color: #ffffff;
}

/* Pet Friendly Image Overlay Badge (Top-Left) */
.le-pet-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #00BCD4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.le-pet-badge i {
    color: #fff;
    font-size: 0.95rem;
    filter: none;
}

.le-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0;
}

.le-card-title {
    /*font-size: 1.1rem;*/
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1e293b;
    line-height: 1.3;
}

/* Box 1: Distance & Location Row */
.le-card-distance-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
}

.le-distance-item,
.le-location-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.le-distance-item i,
.le-location-item i {
    color: #f15e75;
    font-size: 0.95rem;
}

/* Box 2: Accommodation Features Info Bar */
.le-card-info-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
}

.le-info-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.le-info-bar-item i {
    color: #f15e75;
    font-size: 1.3rem;
}

.le-info-bar-item .le-check-icon {
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
    margin-left: -2px;
}

.le-info-bar-item .le-cross-icon {
    color: #444;
    font-size: 13px;
    font-weight: 800;
    margin-left: -2px;
}

.le-available-ctx-box {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.le-suggested-search-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9b2c2c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.le-suggested-ctx-line {
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.le-suggested-ctx-line:last-child {
    margin-bottom: 0;
}

.le-suggested-ctx-line i {
    color: #006064;
    width: 16px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.le-card-meta {
    font-size: 12px;
    color: #475569;
    margin-bottom: 14px;
}

.le-card-meta p {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.le-min-stay-info {
    font-size: 12px;
}

.le-card-price {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le-price-breakdown-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 5px;
}

.le-price-breakdown-label i {
    display: none;
}

.le-price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.le-price-amount i {
    color: #166534;
}

.le-suggested-dates-box {
    background: #fff5f5;
    border: 1px dashed #feb2b2;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0 14px;
}

.le-suggested-dates-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9b2c2c;
    margin: 10px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px dashed #fecaca;
    padding-top: 8px;
}

.le-suggested-date-item {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 8px;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    padding: 10px;
}

.le-suggested-date-item:last-child {
    margin-bottom: 0;
}

.le-suggested-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le-suggested-date-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.le-suggested-date-info i {
    color: #006064;
    width: 16px;
    text-align: center;
}

.le-suggested-price {
    font-size: 14px;
}

.le-suggested-price i {
    color: #15803d;
}

.le-select-suggested-btn {
    background: #25D366;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

.le-select-suggested-btn i {
    display: none;
}

.le-select-suggested-btn:hover,
.le-select-suggested-btn:active {
    background: #1da851;
    color: #ffffff !important;
    transform: none !important;
}

/* Standalone & Inline Availability Calendar */
.le-card-calendar-box {
    margin: 12px 0 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.le-card-calendar-header {
    font-size: 12px;
    font-weight: 700;
    color: #006064;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.le-card-cal-inline {
    width: 100%;
}

.le-card-cal-inline .ui-datepicker {
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.le-standalone-calendar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.le-standalone-calendar-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #006064;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.le-standalone-cal-container {
    overflow-x: auto;
    padding: 10px 0;
}

.le-standalone-cal-container .ui-datepicker {
    margin: 0 auto !important;
}

.le-standalone-cal-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.le-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.le-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.le-legend-available {
    background-color: #dcedc8;
}

.le-legend-booked {
    background-color: #ffcdd2;
}

/* Card Action Buttons (Corporate Identity & Mobile Friendly) */
.le-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.le-book-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.le-book-button:hover,
.le-book-button:active {
    background: #128C7E;
    color: #ffffff !important;
    transform: none !important;
}

.le-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    color: #ffffff !important;
    background-color: #f15e75;
    border: 2px solid #f15e75;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.le-page-link:hover,
.le-page-link:active {
    background: #f58d9d;
    border-color: #f58d9d;
    color: #ffffff !important;
    transform: none !important;
}

.le-loading-text,
.le-error {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 15px;
    text-align: center;
}

.le-loading-text {
    color: #006064;
}

.le-error {
    color: #dc2626;
}

/* ===================================================================
   SEARCH RESULTS — MOBILE RESPONSIVENESS
   =================================================================== */
@media (max-width: 600px) {
    .le-status-badge {
        font-size: 0.85rem;
        padding: 4px 9px;
        top: 10px;
        right: 10px;
    }

    .le-pet-badge {
        font-size: 0.8rem;
        padding: 4px 9px;
        top: 10px;
        left: 10px;
    }

    .le-results-section-title {
        font-size: 1.4rem;
        margin: 18px 0 12px;
    }

    .le-card-body {
        padding: 14px 12px;
    }

    .le-card-title {
        font-size: 1.8rem;
    }

    .le-card-price {
        padding: 9px 11px;
        margin-bottom: 10px;
    }

    .le-price-amount {
        font-size: 1.4rem;
    }

    .le-suggested-dates-box {
        padding: 10px;
        margin: 8px 0 10px;
    }

    .le-suggested-ctx-line {
        font-size: 1.4rem;
    }

    .le-card-meta {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .le-card-actions {
        gap: 8px;
    }

    /* Datepicker dialog stays comfortably centred on small phones */
    #ui-datepicker-div {
        width: 95% !important;
        max-width: 320px;
        padding: 12px;
        font-size: 13px;
    }

    .ui-datepicker td a.ui-state-default,
    .ui-datepicker td span.ui-state-default {
        height: 36px !important;
        line-height: 36px;
        width: 36px !important;
        font-size: 13px;
    }

    .ui-datepicker .ui-datepicker-title {
        font-size: 14px;
    }

    .le-datepicker-header-display {
        gap: 6px;
        padding: 0 6px 8px;
    }

    .le-date-box {
        padding: 4px 8px;
        border-radius: 8px;
    }

    .le-date-box .le-label {
        font-size: 10px;
    }

    .le-date-box .le-value {
        font-size: 11px;
    }

    .le-datepicker-btn-clear,
    .le-datepicker-btn-close {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Search form on phones: remove side border-radius for edge-to-edge feel */
    .le-search-form {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
        /* offset WordPress typical 16px content padding */
        padding: 18px 16px 16px;
    }

    #bookingsearchform .le-search-form {
        border-left: initial;
        border-right: initial;
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .le-min-stay-info {
        font-size: 14px;
    }

    .le-card-distance-box {
        font-size: 1.2rem;
        gap: 12px;
    }

    .le-card-info-bar {
        padding: 8px 10px;
        gap: 14px;
    }

    .le-info-bar-item {
        font-size: 1.2rem;
    }
}

/* ===================================================================
   PROMOTION & DISCOUNT STYLES
   =================================================================== */


.le-widget-price-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.le-price-display-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.le-original-price-dashed {
    color: #6c6c6c;
    font-size: 1.4rem;
    text-decoration: line-through;
    text-decoration-style: dashed;
    text-decoration-color: #6c6c6c;
    font-weight: 500;
}

.le-discounted-price-val {
    color: #0f172a;
    font-weight: 700;
}

.le-promo-badge {
    display: none;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    text-transform: uppercase;
    vertical-align: middle;
    animation: le-pulse-badge 2s infinite;
}

.le-promo-badge.mini {
    display: none;
}

.le-promo-badge i {
    color: #fef08a !important;
    font-size: 0.85em;
}

@keyframes le-pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}