/* Booking Modal Styles - Airbnb Inspired */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.booking-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal {
    background: #ffffff;
    color: #222222;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.booking-modal-overlay.open .booking-modal {
    transform: translateY(0) scale(1);
}

.booking-view {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s ease forwards;
}
.booking-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
.bm-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.bm-back, .bm-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #222;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background 0.2s;
}
.bm-back:hover, .bm-close:hover {
    background: #f7f7f7;
}

/* Typography */
.bm-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

/* Instruction Text */
.bm-instruction {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #222;
}

/* Input Group */
.bm-inputs-group {
    border: 1px solid #a28b57;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.bm-row {
    display: flex;
    border-bottom: 1px solid #a28b57;
}
.bm-row > div {
    flex: 1;
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}
.bm-row > div:hover, .bm-guests:hover {
    background: #f7f7f7;
}
.bm-row > div:first-child {
    border-right: 1px solid #a28b57;
}

.bm-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 4px;
    display: block;
}

.bm-value {
    font-size: 14px;
    color: #717171;
}
.bm-value.filled {
    color: #222;
}

/* Guests */
.bm-guests {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

/* Text */
.bm-promo-text {
    background: #f7f7f7;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Buttons */
.bm-btn {
    display: block;
    width: 100%;
    background: #a28b57;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}
.bm-btn:hover {
    background: #8e7a4b;
}
.bm-btn:active {
    transform: scale(0.98);
}
.bm-btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}
.bm-info-text {
    text-align: center;
    font-size: 13px;
    color: #717171;
    margin-top: 16px;
}
.bm-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bm-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #a28b57;
    background: transparent;
    color: #a28b57;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bm-counter-btn:not(:disabled):hover {
    background: #f4f0e6;
}
.bm-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.bm-counter-val {
    font-size: 16px;
    color: #222;
    min-width: 16px;
    text-align: center;
}
/* Counter Styles */

/* Native inputs */
.bm-native-date {
    width: 100%;
    padding: 12px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
}
.bm-native-date:focus {
    border-color: #222;
    border-width: 2px;
    padding: 11px;
}

.bm-input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
}
/* Custom Calendar */
.bm-calendar-top {
    border: 1px solid #bba67a;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: #4a4a4a;
    font-size: 16px;
    font-weight: 500;
}
.bm-calendar-top svg {
    color: #a28b57;
}

.bm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.bm-cal-month {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
}
.bm-cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #222;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    transition: background 0.2s;
}
.bm-cal-nav:hover {
    background: #f7f7f7;
}

.bm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.bm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
    margin-bottom: 24px;
}
.bm-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    position: relative;
    border: 1px solid #eaeaea; /* Light border around each cell as in design */
    margin: -0.5px; /* Overlap borders */
}
.bm-cal-price {
    font-size: 9px;
    color: #a28b57;
    margin-top: 2px;
    font-weight: 600;
}
.bm-calendar-day:hover:not(.bm-cal-empty):not(.bm-cal-disabled) {
    background: #f0f0f0;
}
.bm-cal-empty {
    border-color: transparent;
    cursor: default;
}
.bm-cal-disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
    border-color: #eaeaea;
}

/* Selected states */
.bm-cal-selected {
    background: #a28b57;
    color: #fff;
    border-color: #a28b57;
    z-index: 2;
}
.bm-cal-selected .bm-cal-price {
    color: #fff;
}
.bm-cal-selected:hover {
    background: #a28b57 !important;
}
.bm-cal-in-range {
    background: #f4f0e6;
    border-color: #f4f0e6;
    color: #a28b57;
}

/* Actions */
.bm-calendar-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.bm-calendar-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}
.bm-calendar-actions button:hover {
    opacity: 0.9;
}
#bm-cal-clear {
    flex: 0 0 100px;
    background: #f7f7f7;
    border: none;
    color: #4a4a4a;
}
#bm-cal-confirm {
    flex: 1;
    background: #a28b57;
    border: none;
    color: #fff;
}

/* Selection Indicator */
.bm-selected-checkin {
    background: #f4f0e6;
    border: 1px solid #a28b57;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #222;
}
.bm-selected-checkin.active {
    display: flex;
}
.bm-selected-checkin .bm-label {
    margin-bottom: 0;
    font-size: 11px;
}
.bm-selected-checkin span:last-child {
    font-weight: 600;
}
.bm-cal-type-label {
    position: absolute;
    bottom: 2px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}
.bm-cal-selected .bm-cal-type-label {
    display: block;
}
