/* Airbnb-Inspired Booking Form Styling */

:root {
    --booking-primary: #FF385C;
    --booking-primary-dark: #E31C5F;
    --booking-border: #DDDDDD;
    --booking-text: #222222;
    --booking-text-light: #717171;
    --booking-bg: #FFFFFF;
}

/* Main Booking Card */
.space-modern-book {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.space-modern-book__card {
    background: var(--booking-bg);
    border: 1px solid var(--booking-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.space-modern-book__card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* Price Header */
.space-modern-book__price {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--booking-border);
    margin-bottom: 24px;
    position: relative;
}
.bravo_wrap .bravo_detail_space .bravo_single_book>div{
    padding: 0px;
}
.space-modern-book__body{
    padding: 0.75rem;
}

.space-modern-book__badge {
    position: absolute;
    top: -8px;
    right: 0;
    background: #F7F7F7;
    color: #222;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.space-modern-book__price small {
    display: block;
    font-size: 14px;
    color: var(--booking-text-light);
    margin-bottom: 4px;
}

.space-modern-book__price strong {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--booking-text);
    line-height: 1.2;
}

.space-modern-book__sale {
    text-decoration: line-through;
    color: var(--booking-text-light);
    font-size: 20px;
    margin-right: 8px;
}

.space-modern-book__price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--booking-text);
}

/* Book/Inquiry Tabs */
.nav-enquiry {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #F7F7F7;
    border-radius: 12px;
}

.enquiry-item {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 15px;
    color: var(--booking-text-light);
}

.enquiry-item.active {
    background: #fff;
    color: var(--booking-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.enquiry-item:hover:not(.active) {
    color: var(--booking-text);
}

/* Form Body */
.space-modern-book__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Date Selection */
.space-modern-book__body .start_date {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--booking-text);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.space-modern-book__body .start_date:hover {
    border-color: #222;
}

.space-modern-book__body .start_date:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.08);
}

/* Time Container */
.time_container,
.no_time_container {
    padding: 16px;
    background: #F7F7F7;
    border-radius: 8px;
}

.time_container p,
.no_time_container .alert {
    margin: 0 0 12px 0;
    font-weight: 600;
    font-size: 15px;
}

/* Guest Selection */
.space-modern-book__group {
    padding: 16px;
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.space-modern-book__group:hover {
    border-color: #222;
}

.space-modern-book__group-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-modern-book__group-inner .flex-horizontal-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.space-modern-book__group-inner a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--booking-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--booking-text);
}

.space-modern-book__group-inner a:hover {
    border-color: #222;
    background: #F7F7F7;
}

.space-modern-book__group-inner input {
    width: 40px !important;
    text-align: center;
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 600;
    padding: 0 !important;
}

/* Extra Prices & Fees */
.space-modern-book__fees {
    padding-top: 16px;
    border-top: 1px solid var(--booking-border);
}

.extra-price-wrap {
    padding: 12px 0;
    font-size: 15px;
}

.extra-price-wrap label {
    margin: 0;
    font-weight: 400;
    color: var(--booking-text);
    cursor: pointer;
}

.extra-price-wrap input[type="checkbox"] {
    margin-right: 8px;
}

.extra-price-wrap .render {
    font-size: 13px;
    color: var(--booking-text-light);
}

/* Total Pricing */
.space-modern-book__total {
    list-style: none;
    padding: 20px 0 0 0;
    margin: 20px 0 0 0;
    border-top: 1px solid var(--booking-border);
}

.space-modern-book__total li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.space-modern-book__total li:last-child {
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
    border-top: 1px solid var(--booking-border);
    margin-top: 8px;
}

.space-modern-book__total label {
    margin: 0;
    font-weight: 400;
    color: var(--booking-text);
}

.space-modern-book__total .price {
    font-weight: 600;
    color: var(--booking-text);
}

/* Book Now Button */
.space-modern-book__body .btn-primary {
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    height: 56px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(227, 28, 95, 0.3);
}

.space-modern-book__body .btn-primary:hover {
    background: linear-gradient(to right, #D70466 0%, #E31C5F 50%, #E61E4D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 28, 95, 0.4);
}

.space-modern-book__body .btn-primary:active {
    transform: translateY(0);
}

.space-modern-book__body .btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert-text {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-text.danger {
    background: #FFF1F0;
    color: #C41E3A;
    border: 1px solid #FFD3D8;
}

.alert-text.success {
    background: #F0FFF4;
    color: #067647;
    border: 1px solid #C6F6D5;
}

/* Responsive Design */
@media (max-width: 991px) {
    .space-modern-book {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: #fff;
        border-top: 1px solid var(--booking-border);
        padding: 12px 16px;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .space-modern-book__card {
        padding: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .space-modern-book__price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .space-modern-book__body .btn-primary {
        width: 100%;
    }
}

/* Time Slot Cards */
.time-slots-container {
    margin: 16px 0;
}

.time-slots-header {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--booking-text);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.time-slot-card {
    padding: 12px;
    border: 1.5px solid var(--booking-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot-card:hover:not(.disabled) {
    border-color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.time-slot-card.selected {
    border-color: #222;
    background: #F7F7F7;
    border-width: 2px;
    padding: 11px;
    /* Compensate for thicker border */
}

.time-slot-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F7F7F7;
}

.time-slot-card .time {
    font-weight: 600;
    font-size: 14px;
    color: var(--booking-text);
}

.time-slot-card .duration {
    font-size: 12px;
    color: var(--booking-text-light);
    margin-top: 4px;
}

/* Enhanced Guest Selector */
.guest-selector {
    position: relative;
}

.guest-trigger {
    padding: 12px 16px;
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-trigger:hover {
    border-color: #222;
}

.guest-trigger label {
    font-size: 12px;
    color: var(--booking-text-light);
    margin: 0;
    display: block;
}

.guest-trigger span {
    font-size: 15px;
    font-weight: 600;
    color: var(--booking-text);
}

.guest-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--booking-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EFEFEF;
}

.guest-row:last-of-type {
    border-bottom: none;
}

.guest-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--booking-text);
}

.guest-info small {
    display: block;
    font-size: 13px;
    color: var(--booking-text-light);
    margin-top: 2px;
}

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

.guest-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--booking-border);
    border-radius: 50%;
    background: #fff;
    color: var(--booking-text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-controls button:hover:not(:disabled) {
    border-color: #222;
    background: #F7F7F7;
}

.guest-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.guest-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.guest-limit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #EFEFEF;
    font-size: 13px;
    color: var(--booking-text-light);
    text-align: center;
}

/* Expandable Price Breakdown */
.price-toggle {
    width: 100%;
    padding: 16px 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.price-toggle:hover {
    opacity: 0.8;
}

.price-toggle .main-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--booking-text);
}

.price-toggle .subtitle {
    font-size: 14px;
    color: var(--booking-text-light);
    margin-left: 8px;
}

.price-toggle .chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.price-toggle .chevron.rotated {
    transform: rotate(180deg);
}

.price-details {
    padding-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.price-row.total {
    border-top: 1px solid var(--booking-border);
    padding-top: 16px;
    margin-top: 8px;
    font-size: 17px;
}

.price-row .info-icon {
    margin-left: 4px;
    color: var(--booking-text-light);
    cursor: help;
    font-size: 14px;
}

.price-note {
    margin-top: 12px;
    padding: 12px;
    background: #F7F7F7;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--booking-text-light);
}

@media (max-width: 576px) {
    .space-modern-book__price strong {
        font-size: 22px;
    }

    .space-modern-book__card {
        padding: 16px;
    }
}