/* ===== Be Vietnam Font ===== */
@font-face {
    font-family: 'Be Vietnam';
    src: url('../fonts/be-vietnam/BeVietnam-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Be Vietnam';
    src: url('../fonts/be-vietnam/BeVietnam-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Be Vietnam';
    src: url('../fonts/be-vietnam/BeVietnam-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Be Vietnam';
    src: url('../fonts/be-vietnam/BeVietnam-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ===== Variables ===== */
:root {
    --primary-green: #143D19;
    --primary-green-dark: #1a3d1d;
    --secondary-green: #2d5a32;
    --light-green: #E9F5EA;
    --white: #FFFFFF;
    --gray-bg: #F5F5F5;
    --gray-border: #E0E0E0;
    --gray-text: #565656;
    --dark-color: #21272D;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--dark-color);
    line-height: 1.5;
}

/* ===== Header ===== */
.header {
    background: rgba(249, 249, 247, 1);
    border-bottom: 1px solid rgba(211, 211, 211, 1);
    padding-left: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
}

.logo-img {
    width: 24px;
    height: auto;
}

.logo-img-large {
    width: 54px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.btn-login:hover {
    color: var(--primary-green-dark);
}

.btn-login .ph {
    font-size: 18px;
}

.menu-btn {
    width: 56px;
    height: 56px;
    background: var(--primary-green);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--white);
}

/* ===== Mobile Booking Summary ===== */
.mobile-booking-summary {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 12px 16px;
}

.summary-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-dates .arrow {
    color: var(--gray-text);
}

.summary-dates .nights {
    margin-left: auto;
    font-weight: 600;
}

.summary-occupancy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-text);
}

.bed-icon {
    font-size: 14px;
}

.edit-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-text);
}

/* ===== Main Container ===== */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ===== Sidebar (Desktop) ===== */
.sidebar {
    width: 400px;
    min-width: 320px;
    background: var(--white);
    border-right: 1px solid var(--gray-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 32px;
}

.hotel-name {
    font-size: 32px;
    font-weight: 500;
    margin-top: 12px;
    color: var(--dark-color);
}

.booking-widget {
    flex: 1;
}

.date-picker {
    border: 1px solid var(--gray-border);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.date-picker:hover {
    border-color: var(--primary-green);
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-icon {
    font-size: 16px;
    color: var(--gray-text);
}

.date-input .label {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-text);
}

.date-input .value {
    font-size: 16px;
    font-weight: 500;
}

.date-arrow {
    color: var(--gray-text);
    font-size: 14px;
}

.nights-badge {
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
}

.nights-badge-number {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    line-height: 1;
}

.nights-badge-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-text);
}

.room-selector,
.guest-selector {
    margin-bottom: 20px;
}

.room-selector label,
.guest-selector label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.counter {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--gray-border);
    padding: 12px 16px;
    background: var(--white);
    justify-content: space-between;
}

.counter-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--dark-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--dark-color);
    transition: background 0.2s;
}

.counter-btn:hover {
    background: var(--gray-bg);
}

.counter-btn .ph {
    font-size: 16px;
}

.counter-value,
.counter-unit {
    min-width: 24px;
    text-align: center;
    color: var(--dark-color);
}

.guest-input {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--gray-border);
    padding: 12px 16px;
    cursor: pointer;
    background: var(--white);
    text-align: center;
    min-height: 62px;
}

.guest-input:hover {
    border-color: var(--primary-green);
}

.guest-input .guest-value {
    flex: 1;
}

.guest-input i {
    font-size: 24px;
}

.summary-dates[data-open],
.summary-occupancy[data-open] {
    cursor: pointer;
}

.guest-icon {
    font-size: 18px;
}

.guest-value {
    flex: 1;
}

.guest-chevron {
    font-size: 18px;
    color: var(--gray-text);
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
}

a.btn-primary {
    display: block;
    text-align: center;
    text-decoration: none;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-footer-icon {
    font-size: 24px;
    color: var(--primary-green);
    flex-shrink: 0;
}

.sidebar-footer-text {
    font-size: 12px;
    color: var(--dark-color);
}

/* ===== Content Area ===== */
.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.content-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 22px;
}

.view-availability-link {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
}

.view-availability-link:hover {
    text-decoration: underline;
}

.tabs {
    display: flex;
    background: var(--white);
    margin-bottom: 24px;
    border: 1px solid var(--gray-border);
}

.tab {
    flex: 1;
    padding: 10px 24px;
    background: #fff;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}

.tab.active {
    background: rgba(20, 61, 25, 0.1);
    border-bottom: 3px solid var(--primary-green);
    font-weight: 700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Room Grid (Desktop) ===== */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.room-card {
    background: rgba(241, 241, 241, 1);
    overflow: hidden;
}

.room-image {
    width: 100%;
    aspect-ratio: 1 / 0.7;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-info {
    padding: 20px;
}

.room-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amenity-item .ph {
    font-size: 14px;
    color: var(--dark-color);
}

.amenity-sep {
    color: rgba(33, 39, 45, 1);
    font-size: 12px;
}

.free-cancellation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8ebe8;
    color: var(--dark-color);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border-radius: 999px;
}

.free-cancellation-badge .ph {
    font-size: 14px;
    color: var(--primary-green);
}

.badge {
    display: inline-block;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badges .badge,
.badges .free-cancellation-badge {
    margin-bottom: 0;
}

.badge-flash {
    display: inline-block;
    background: rgba(255, 229, 0, 0.2);
    color: rgba(255, 2, 2, 1);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

.promotion-price .badge-flash {
    margin-left: auto;
}

.promotion-price .price-note {
    margin-left: 0;
    margin-top: 4px;
}

.price-original {
    display: block;
    font-size: 14px;
    color: #b8b8b8;
    text-decoration: line-through;
}

.promotion-box {
    background: rgba(145, 193, 151, 0.12);
    border: 1px solid rgba(145, 193, 151, 1);
    padding: 12px 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.1;
    border-radius: 4px;
}

.promotion-box-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, rgba(20, 61, 25, 1), rgba(0, 128, 6, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promotion-box-text {
    color: var(--dark-color);
    font-weight: 400;
    font-size: 12px;
}

.room-price {
    display: flex;
    gap: 4px 10px;
    margin-bottom: 16px;
    align-items: baseline;
}

.room-price.promotion-price {
    align-items: end;
}

.room-price .price-amount {
    font-size: 24px;
    font-weight: 500;
    color: var(--dark-color);
}

.room-price .price-currency {
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-color);
}

.room-price .price-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary-green);
}

.room-price .price-original {
    width: 100%;
}

.room-price .price {
    font-size: 22px;
    font-weight: 700;
    display: block;
}

.btn-book {
    margin-bottom: 12px;
}

.policy-hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 16px 0 12px;
}

.policy-note {
    font-size: 12px;
    color: var(--dark-color);
    text-align: center;
}

.promotion-placeholder {
    background: var(--white);
    border: 1px solid var(--gray-border);
    padding: 60px;
    text-align: center;
    color: var(--gray-text);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1450px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .content-area {
        padding: 16px;
    }

    .tabs {
        margin-bottom: 16px;
    }

    .tab {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Mobile Room Cards - Horizontal layout */
    .room-grid {
        gap: 16px;
    }

    .room-info {
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .room-title {
        font-size: 15px;
        margin-bottom: 0;
        font-weight: 600;
    }

    .amenities {
        display: flex;
        flex-wrap: wrap;
        gap: 0 8px;
        font-size: 11px;
        margin-bottom: 0;
    }

    .amenity-sep {
        display: none;
    }

    .room-card:not(.promotion-card) .badge {
        display: none;
    }

    .room-price {
        margin-bottom: 8px;
    }

    .room-price .price,
    .room-price .price-amount {
        font-size: 18px;
    }

    .room-price .price-note {
        font-size: 12px;
    }

    .btn-book {
        margin-bottom: 8px;
    }

    .policy-note {
        font-size: 11px;
        margin-bottom: 0;
    }
}

/* Mobile: Stack layout for very small screens */
@media (max-width: 480px) {
    .room-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .room-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .room-info {
        grid-row: 2;
    }
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    max-width: 626px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-border);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-text);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-border);
}

/* ===== Guest Modal ===== */
.guest-counters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.guest-counter-item {
    flex: 1;
}

.guest-counter-item label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--gray-text);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--gray-border);
    padding: 7px 10px;
    border-radius: 4px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stepper-btn:hover {
    background: var(--gray-bg);
}

.stepper-value {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.guest-helper {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.children-ages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.age-row label {
    font-size: 13px;
    flex-shrink: 0;
}

.age-select {
    flex: 1;
    max-width: 160px;
    padding: 10px 12px;
    border: 1px solid var(--gray-border);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.guest-modal .modal-header {
    padding: 15px 24px 0px;
    border-bottom: none;
}

.guest-modal .modal-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-color);
}
/* ===== Calendar Modal ===== */
.calendar-modal {
    max-width: 768px;
}

.calendar-modal .modal-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-color);
}

.calendar-months {
    display: flex;
    gap: 24px;
}

.calendar-month-block {
    flex: 1;
    min-width: 0;
}

.calendar-inputs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.calendar-input-group {
    flex: 1;
}

.calendar-input-float {
    position: relative;
}

.calendar-input-float label {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--gray-text);
    background: var(--white);
    padding: 0 6px;
    pointer-events: none;
}

.calendar-input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--gray-border);
    font-size: 16px;
    font-family: inherit;
    color: rgba(58, 53, 65, 0.87);
    background: var(--white);
}

.calendar-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.calendar-month {
    font-size: 14px;
    color: var(--dark-color);
}

.calendar-nav-btn {
    border: none;
    background: var(--white);
    cursor: pointer;
    font-size: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}

.calendar-nav-btn:hover {
    background: var(--gray-bg);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gray-text);
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 0px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    color: var(--dark-color);
}

.calendar-day:hover:not(.disabled):not(.other-month):not(.selected):not(.in-range) {
    background: var(--gray-bg);
}

.calendar-day.other-month {
    color: var(--gray-text);
    opacity: 0.5;
}

.calendar-day.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.calendar-day.selected {
    color: var(--white);
    position: relative;
}

.calendar-day.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-green);
    border-radius: 50%;
    z-index: 1;
}

.calendar-day.selected-start::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 0px;
    background: rgba(0, 128, 6, 0.15);
    z-index: 0;
}

.calendar-day.selected-end::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0px;
    right: 50%;
    background: rgba(0, 128, 6, 0.15);
    z-index: 0;
}

.calendar-day.selected .day-num,
.calendar-day.selected .day-price {
    position: relative;
    z-index: 2;
}

.calendar-day.in-range {
    background: rgba(0, 128, 6, 0.15);
}

.calendar-day.in-range .day-price {
    color: var(--dark-color);
}

.calendar-day .day-price {
    font-size: 9px;
    color: rgba(123, 123, 123, 1);
    display: block;
}

.calendar-day.selected .day-price {
    color: rgba(255, 255, 255, 0.9);
}

.calendar-day.in-range .day-price {
    color: var(--gray-text);
}

.calendar-day.full .day-price {
    color: #c62828;
}

.calendar-day.full.disabled .day-price {
    color: #c62828;
}

/* ===== Auth Modals (Login, Signup, Forgot) ===== */
.auth-modal {
    max-width: 480px;
}

.auth-modal-wide {
    max-width: 560px;
}

.auth-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
}

.auth-fields-2 {
    grid-template-columns: 1fr 1fr;
}

.auth-fields-1 {
    grid-template-columns: 1fr;
}

.auth-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-text);
    margin-bottom: 6px;
}

.auth-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-border);
    font-size: 14px;
}

.auth-links, .auth-switch { font-size: 13px; color: var(--gray-text); margin-bottom: 16px; }
.auth-links a, .auth-switch a { color: var(--primary-green); text-decoration: underline; }

.btn-signin, .btn-signup {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 20px 0;
}

.auth-social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-modal .btn-social {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.auth-modal .btn-facebook { background: #1877f2; color: var(--white); }
.auth-modal .btn-google { background: #db4437; color: var(--white); }

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 16px;
    cursor: pointer;
}

.auth-benefits {
    margin-top: 16px;
    padding: 16px;
    background: #e9e9e9;
    border-radius: 6px;
    font-size: 13px;
}

.auth-benefits strong { color: #c62828; }

.auth-send-row { display: flex; justify-content: flex-end; margin-top: 16px; }

.btn-send {
    padding: 12px 28px;
    background: #f89a2e;
    color: var(--dark-color);
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

.auth-tips h3 { font-size: 14px; font-weight: 600; color: #5d4037; margin-bottom: 10px; }
.auth-tips ul { margin: 0; padding-left: 20px; font-size: 13px; color: var(--gray-text); line-height: 1.6; }

@media (max-width: 500px) {
    .auth-fields-2 { grid-template-columns: 1fr; }
}

/* ===== Availability Calendar Modal ===== */
.availability-modal {
    max-width: 900px;
}

.availability-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.availability-date-range {
    font-size: 14px;
}

.availability-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-text);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-dot.available {
    background: #4caf50;
}

.legend-dot.unavailable {
    background: #f44336;
}

.legend-dot.last-room {
    background: #ff9800;
}

.availability-grid-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
}

.availability-table th {
    background: #333;
    color: var(--white);
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 600;
}

.availability-table th.room-col {
    background: #f5f5f5;
    color: var(--dark-color);
    min-width: 140px;
    text-align: left;
    padding-left: 12px;
}

.availability-table th.nav-col {
    background: #333;
}

.availability-table .date-row th {
    background: #444;
}

.availability-table .date-row th.room-col {
    background: #f5f5f5;
}

.availability-next {
    color: var(--white);
    text-decoration: none;
}

.availability-next:hover {
    text-decoration: underline;
}

.availability-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.availability-table tbody tr:nth-child(odd) {
    background: var(--white);
}

.availability-table tbody td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--gray-border);
}

.availability-table tbody td:first-child {
    text-align: left;
    padding-left: 12px;
    background: #f5f5f5;
    font-size: 13px;
}

.availability-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin: 0 auto;
}

.availability-cell.available {
    background: #4caf50;
}

.availability-cell.unavailable {
    background: #f44336;
}

.availability-cell.last-room {
    background: #ff9800;
}

.availability-search {
    border: 1px solid var(--gray-border);
    padding: 16px;
    background: var(--gray-bg);
}

.availability-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.availability-search .search-field {
    flex: 1;
    min-width: 80px;
}

.availability-search .search-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--gray-text);
}

.availability-search .search-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-border);
    font-size: 13px;
}

.btn-search {
    padding: 10px 20px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-search:hover {
    background: var(--primary-green-dark);
}

@media (max-width: 600px) {
    .calendar-months {
        flex-direction: column;
    }

    .calendar-modal {
        max-height: 85vh;
    }
}
