.booking-page {
    min-height: calc(100vh - 130px);
    padding: 18px;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

.booking-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 22px;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

.booking-card,
.booking-summary-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.booking-card {
    padding: 28px;
}

.booking-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.booking-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.booking-brand-name {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.booking-brand-caption {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.booking-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.booking-subtitle {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.5;
}

.booking-section {
    margin-top: 24px;
}

.booking-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.booking-section-title i {
    color: #2196F3;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.booking-field {
    min-width: 0;
}

.booking-field.full {
    grid-column: 1 / -1;
}

.booking-field label,
.booking-field .ui-outputlabel {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: .78rem;
    font-weight: 900;
}

.booking-help {
    display: block;
    margin: -2px 0 8px;
    color: #94a3b8;
    font-size: .74rem;
    line-height: 1.35;
}

.booking-field .ui-inputfield,
.booking-field .ui-selectonemenu,
.booking-field .ui-calendar {
    width: 100% !important;
    box-sizing: border-box;
}

.booking-field .ui-inputfield,
.booking-field .ui-selectonemenu {
    min-height: 44px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: none;
}

.booking-field .ui-selectonemenu {
    display: block;
    max-width: 100%;
    overflow: hidden;
}

.booking-field textarea.ui-inputfield {
    min-height: 88px;
    padding-top: 12px;
}

.booking-field .ui-selectonemenu-label {
    width: 100% !important;
    max-width: 100%;
    min-height: 42px;
    line-height: 42px;
    padding-right: 50px !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-field .ui-selectonemenu-trigger {
    width: 42px !important;
    border-radius: 0 12px 12px 0;
}

.booking-field .ui-calendar input {
    width: 100% !important;
    box-sizing: border-box;
}

.booking-field .ui-state-disabled {
    opacity: .75;
}

.booking-submit.ui-button {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    background: #2196F3 !important;
    border-color: #2196F3 !important;
    border-radius: 14px;
    color: #ffffff !important;
    font-size: .98rem;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(45, 99, 255, .2);
}

.booking-submit.ui-button:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.booking-note {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: .78rem;
    text-align: center;
}

.booking-summary-card {
    position: sticky;
    top: 86px;
    overflow: hidden;
    max-width: 380px;
}

body .booking-select-panel {
    max-width: min(520px, calc(100vw - 32px)) !important;
    box-sizing: border-box;
}

body .booking-select-panel .ui-selectonemenu-items-wrapper,
body .booking-select-panel .ui-selectonemenu-list {
    max-width: 100% !important;
}

body .booking-select-panel .ui-selectonemenu-item {
    white-space: normal;
    line-height: 1.35;
}

.booking-summary-hero {
    padding: 28px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #e5eaf3;
}

.booking-summary-hero h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
}

.booking-summary-hero span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.45;
}

.booking-summary-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.booking-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
}

.booking-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #2196F3;
    background: #eff6ff;
    border-radius: 12px;
}

.booking-summary-label {
    display: block;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.booking-summary-value {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.3;
}

.booking-summary-footer {
    margin: 0 20px 20px;
    padding: 14px;
    color: #2196F3;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .booking-shell {
        grid-template-columns: 1fr;
    }

    .booking-summary-card {
        position: static;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .booking-page {
        padding: 10px;
    }

    .booking-card {
        padding: 18px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }

    .booking-title {
        font-size: 2rem;
    }
}

/* Los selectores con opciones largas no deben ensanchar la tarjeta. */
.booking-card .ui-selectonemenu {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.booking-card .ui-selectonemenu .ui-selectonemenu-label {
    width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}
