/* Booking Page - Полная карточка модели */

.booking-section { position: relative; z-index: 1; }

.booking-back-link {
    display: inline-block;
    color: var(--pink);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.booking-back-link:hover { color: var(--pink-light); }

.booking-model-card-full {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    background: var(--black-lighter);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.booking-model-photo-full {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.booking-model-photo-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.booking-model-details-full {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-model-name-full {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-model-meta-full {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-model-meta-full span {
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.booking-btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: auto;
}

/* Modal бронирования */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.booking-modal-content {
    background: var(--black-lighter);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.booking-modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--pink);
    font-size: 1.2rem;
}

.booking-modal-form .form-group {
    margin-bottom: 1.25rem;
}

.booking-modal-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.booking-modal-form input:not([type="hidden"]),
.booking-modal-form select {
    width: 100%;
    padding: 0.75rem 40px 0.75rem 1rem;
    background-color: rgba(2, 132, 199, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
}

.booking-modal-form input:focus,
.booking-modal-form select:focus {
    outline: none;
    border-color: var(--pink);
}

/* Кастомный select в стиле сайта */
.booking-select-custom {
    position: relative;
}

.booking-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.booking-select-btn:hover {
    border-color: rgba(2, 132, 199, 0.4);
}

.booking-select-btn svg {
    width: 20px;
    height: 20px;
    color: var(--pink);
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.3s;
}

.booking-select-custom.open .booking-select-btn svg {
    transform: rotate(180deg);
}

.booking-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--black-lighter);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.booking-select-custom.open .booking-select-dropdown {
    display: block;
}

.booking-select-dropdown-scroll {
    max-height: 220px;
    overflow-y: auto;
}

.booking-select-option {
    padding: 0.75rem 1rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(2, 132, 199, 0.08);
}

.booking-select-option:last-child {
    border-bottom: none;
}

.booking-select-option:hover {
    background: rgba(2, 132, 199, 0.15);
    color: var(--text-dark);
}

.booking-select-option.selected {
    background: rgba(2, 132, 199, 0.2);
    color: var(--pink);
}

.booking-select-option .price {
    color: var(--pink);
    margin-left: 4px;
}

.booking-date-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.booking-date-btn:hover { border-color: var(--pink); }

.booking-date-btn svg {
    width: 20px;
    height: 20px;
    color: var(--pink);
    transition: transform 0.3s;
}

.form-group.calendar-open .booking-date-btn svg {
    transform: rotate(180deg);
}

/* Календарь в выпадающем окне */
.booking-calendar-dropdown {
    position: relative;
}

.booking-calendar-dropdown .calendar-inner {
    display: none;
    margin-top: 0.75rem;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    padding: 1rem;
}

.booking-calendar-dropdown.active .calendar-inner {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 6px;
    color: var(--pink);
    cursor: pointer;
    font-size: 1rem;
}

.calendar-nav:hover {
    background: rgba(2, 132, 199, 0.3);
}

.calendar-month-year {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calendar-weekdays span {
    font-size: 0.65rem;
    color: var(--gray);
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-day.empty { visibility: hidden; }
.calendar-day.past-date { opacity: 0.4; pointer-events: none; }

.calendar-day:hover:not(.empty):not(.past-date) {
    background: rgba(2, 132, 199, 0.25);
}

.calendar-day.selected {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid var(--pink);
}

.booking-modal-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Result modal */
.booking-modal-text {
    background: rgba(2, 132, 199, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.booking-modal-actions {
    display: flex;
    gap: 1rem;
}

.booking-modal-actions .btn { flex: 1; }

/* Responsive */
@media (max-width: 900px) {
    .booking-model-card-full {
        grid-template-columns: 1fr;
    }

    .booking-model-photo-full {
        min-height: 350px;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .booking-model-photo-full img {
        height: 100%;
    }
}
