.booking-calendar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: center;
    gap: 1em;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.calendar-months-clip-box {
    overflow: clip;
    max-width: 350px;
}

.calendar-months-container {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    transform: translateX(0px);
    transition: transform 0.3s ease-in-out;
}

.calendar-months-container.loading {
    opacity: 0.3;
}

.calendar-month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 240px;
}

.calendar-month-select-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-month-select-button:hover {
    color: blue;
}

.calendar-month-select {
    width: 100%;
    padding: 0.5em;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.booking-calendar-title {
    align-self: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    max-width: 350px;
    min-width: 350px;
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 1em;
}

.calendar-day-box {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    max-height: 50px;
    min-height: 50px;
    flex-direction: column;
}

.calendar-day-box:hover {
    background-color: #f0f0f0;

}

.calendar-day-box.blocked {
    text-decoration: line-through;
    color: rgb(103, 103, 103);
    opacity: 0.3;
}

.calendar-day-box.open {
    background-color: #e0ffe0;
    color: #333;
}

.calendar-day-box.onlycheckin {
    background-color: #e0ffe0;
    color: #333;
}

.calendar-day-box.selected.arrival {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.calendar-day-box.selected.departure {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}

.calendar-day-box.in-range {
    background-color: #E3F2FD !important;
    color: #1976D2;
    opacity: 1 !important;
    text-decoration: none;
}

.calendar-day-box.available-departure {
    background-color: #FFF3E0;
    cursor: pointer;
}

.calendar-day-box.available-departure:hover {
    background-color: #FFE0B2;
}

.calendar-day-box .day-price {
    font-size: 8px;
    color: #FF9800;
    font-weight: bold;
    margin-top: 2px;
}

.calendar-day-box.in-range .day-price {
    color: #1976D2;
}

.calendar-day-box.selected .day-price {
    color: white
}

.calendar-day-box.blocked,
.calendar-day-box.empty {
    cursor: not-allowed;
    opacity: 0.3;
}

.booking-calendar-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.key-item {
    display: none;
    flex-direction: row;
    gap: 1em;
}

.key-item.active {
    display: flex;
}

.key-color {
    width: 20px;
    height: 20px;
}

.key-color.arrival {
    background: #e0ffe0;
}

.key-color.departure {
    background: #FFF3E0;
}

.key-color.complete {
    background: #e0ffe0;
}

.booking-calendar-dates {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    ;
}

.dates-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    min-height: 50px;
}

.dates-label {
    font-weight: 700;
}

.dates-value {
    font-weight: 400;
    font-size: 14px;
}

.booking-calendar-guests {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 100%;
    ;
}

.guests-label {
    font-weight: 700;
}

.guests-value {
    width: 100%;
}

.guests-select {
    width: 100%;
    padding: 0.5em;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.booking-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.booking-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Modal Overlay - covers entire viewport */
.booking-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10000;
    /* High z-index to appear above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black overlay */
    backdrop-filter: blur(2px);
    /* Optional: blur background */
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    /* Center horizontally, 5% from top */
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}