/* ─── Booking App Frontend Widget ─────────────────────────────────────── */

.ba-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
    color: #333;
    line-height: 1.5;
}

.ba-widget * { box-sizing: border-box; }

/* ── Step Indicator ───────────────────────────────────────────────────── */

.ba-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 16px;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.ba-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity .3s;
}

.ba-step-active { opacity: 1; }
.ba-step-done { opacity: 0.8; }

.ba-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.ba-step-active .ba-step-num {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37,99,235,.2);
}

.ba-step-done .ba-step-num {
    background: #eff6ff;
    color: #2563eb;
}

.ba-step-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ba-step-active .ba-step-label { color: #0f172a; }

.ba-step-line {
    flex: 1;
    height: 2px;
    background: #f1f5f9;
    margin: 0 12px;
    margin-bottom: 18px;
}

/* ── Panels ───────────────────────────────────────────────────────────── */

.ba-panel { display: none; }
.ba-panel-active { display: block; }

.ba-panel-head {
    padding: 20px 24px 4px;
}

.ba-panel-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.ba-panel-head .ba-panel-sub {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.ba-panel-nav {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
}

/* ── Calendar ─────────────────────────────────────────────────────────── */

.ba-calendar-wrap {
    padding: 8px 20px 16px;
}

.ba-cal-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ba-cal-month-label {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.ba-cal-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all .15s;
}

.ba-cal-arrow:hover { background: #f5f5f5; border-color: #bbb; }

.ba-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.ba-cal-weekdays span { padding: 4px 0; }

.ba-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    min-height: 260px;
}

.ba-cal-loading, .ba-cal-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 14px;
}
.ba-cal-error { color: #c62828; }

.ba-cal-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
}
.ba-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #717171;
    font-weight: 500;
}
.ba-cal-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}
.ba-legend-available {
    background: #f0fdf4;
    border: 1px solid #86efac;
}
.ba-legend-unavailable {
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 2px, #f1f5f9 2px, #f1f5f9 4px);
    border: 1px solid #e2e8f0;
}
.ba-legend-selected {
    background: #2563eb;
    border: 1px solid #1d4ed8;
}

/* ── Day Cell ─────────────────────────────────────────────────────────── */

.ba-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    min-height: 56px;
    border-radius: 8px;
    transition: all .15s;
    position: relative;
    user-select: none;
}

.ba-day-empty { background: transparent; }
.ba-day-past { opacity: .28; pointer-events: none; }

.ba-day-available {
    cursor: pointer;
    background: #f0fdf4;
    border: 1px solid transparent;
}
.ba-day-available:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: scale(1.05);
}

.ba-day-unavailable {
    background: repeating-linear-gradient(
        -45deg,
        #f8fafc,
        #f8fafc 3px,
        #f1f5f9 3px,
        #f1f5f9 6px
    );
    cursor: not-allowed;
    opacity: .6;
}

.ba-day-num {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1;
}
.ba-day-unavailable .ba-day-num {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ba-day-price {
    font-size: 10px;
    font-weight: 700;
    color: #166534;
    margin-top: 4px;
    line-height: 1;
}
.ba-day-unavailable .ba-day-price { display: none; }

/* Selected / range */
.ba-day-checkin, .ba-day-checkout {
    background: #2563eb !important;
    border-radius: 8px;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    border-color: transparent !important;
}
.ba-day-checkin .ba-day-num,
.ba-day-checkout .ba-day-num { color: #ffffff; text-decoration: none; }
.ba-day-checkin .ba-day-price,
.ba-day-checkout .ba-day-price { color: rgba(255,255,255,.9); display: block; }

.ba-day-range {
    background: #eff6ff !important;
    border-radius: 0;
    border-color: transparent !important;
}
.ba-day-range .ba-day-num { color: #1e3a8a; }
.ba-day-range .ba-day-price { color: #2563eb; display: block; }

/* ── Date Summary ─────────────────────────────────────────────────────── */

.ba-date-summary {
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.ba-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}
.ba-date-col { text-align: center; }
.ba-date-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    letter-spacing: .5px;
}
.ba-date-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
}
.ba-date-arrow {
    font-size: 18px;
    color: #ccc;
    margin-top: 12px;
}
.ba-date-nights { min-width: 48px; }

/* ── Guest Inputs (Step 2) ────────────────────────────────────────────── */

.ba-guest-inputs {
    padding: 4px 24px 12px;
}

.ba-field {
    margin-bottom: 12px;
}
.ba-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.ba-field input, .ba-field select, .ba-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
    background: #ffffff;
}
.ba-field input:focus, .ba-field select:focus, .ba-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.ba-field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Review (Step 3) ──────────────────────────────────────────────────── */

.ba-review {
    padding: 4px 24px 12px;
}

.ba-review-loading, .ba-review-error {
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}
.ba-review-loading { color: #999; }
.ba-review-error { color: #c62828; background: #ffebee; border-radius: 8px; padding: 16px; }

.ba-review-card {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
}

.ba-review-section {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.ba-review-label { color: #888; }
.ba-review-val { font-weight: 600; color: #333; }

.ba-review-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.ba-review-breakdown .ba-review-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    display: block;
    margin-bottom: 4px;
}
.ba-bd-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 2px 0;
}

.ba-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}
.ba-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1d2327;
}

.ba-review-deposit, .ba-review-balance {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    color: #666;
}
.ba-review-deposit { margin-top: 4px; }

/* ── Payment (Step 4) ─────────────────────────────────────────────────── */

.ba-payment-section {
    padding: 4px 24px 20px;
}

.ba-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.ba-payment-opt {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    width: 100%;
    margin-bottom: 2px;
}

.ba-pm-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    flex: 1;
    justify-content: center;
    background: #ffffff;
}
.ba-pm-choice:hover { border-color: #3b82f6; background: #f8fafc; }
.ba-pm-choice.ba-pm-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 0 0 1px #2563eb;
}
.ba-pm-choice input { display: none; }

.ba-stripe-section { margin-bottom: 14px; }

.ba-stripe-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    min-height: 42px;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ba-stripe-input.StripeElement--focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.ba-stripe-input.StripeElement--invalid {
    border-color: #c62828;
}

.ba-stripe-error {
    color: #c62828;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.ba-offline-section { margin-bottom: 14px; }
.ba-offline-msg {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
}
.ba-offline-msg p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.ba-charge-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
}
.ba-charge-summary strong {
    font-size: 18px;
    color: #1d2327;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.ba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.ba-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(37,99,235,.2);
}
.ba-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
    transform: translateY(-1px);
}
.ba-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.ba-btn-outline {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.ba-btn-outline:hover { background: #f8fafc; color: #0f172a; border-color: #94a3b8; }

.ba-btn-full { width: 100%; }

.ba-btn-pay {
    font-size: 16px;
    padding: 14px 24px;
    letter-spacing: .3px;
}

/* ── Success ──────────────────────────────────────────────────────────── */

.ba-success {
    padding: 48px 24px;
    text-align: center;
}

.ba-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(76,175,80,.3);
}

.ba-success h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #1d2327;
    font-weight: 700;
}

.ba-success p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ba-success-ref {
    margin-top: 16px !important;
    font-size: 13px !important;
    color: #888 !important;
}

/* ── Error ────────────────────────────────────────────────────────────── */

.ba-error {
    text-align: center;
    padding: 20px;
    color: #c62828;
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 500px) {
    .ba-widget {
        border-radius: 12px;
        margin: 0 8px;
        max-width: 100%;
    }
    .ba-steps { padding: 16px 16px 12px; }
    .ba-step-label { font-size: 9px; }
    .ba-step-num { width: 24px; height: 24px; font-size: 11px; }
    .ba-step-line { margin: 0 4px; }

    .ba-calendar-wrap { padding: 8px 14px 12px; }
    .ba-day { min-height: 50px; padding: 4px 1px; }
    .ba-day-num { font-size: 12px; }
    .ba-day-price { font-size: 9px; }

    .ba-panel-head { padding: 16px 18px 4px; }
    .ba-panel-nav { padding: 12px 18px 16px; }
    .ba-guest-inputs { padding: 4px 18px 12px; }
    .ba-review { padding: 4px 18px 12px; }
    .ba-payment-section { padding: 4px 18px 16px; }

    .ba-total-amount { font-size: 18px; }
    .ba-field-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Properties Listing Shortcode
   ══════════════════════════════════════════════════════════════════════ */

.ba-properties-listing.ba-listing-grid {
    display: grid;
    grid-template-columns: repeat(var(--ba-cols, 3), 1fr);
    gap: 24px;
}
.ba-properties-listing.ba-listing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ba-properties-listing.ba-listing-list .ba-prop-listing-card {
    display: grid;
    grid-template-columns: 300px 1fr;
}
.ba-properties-listing.ba-listing-list .ba-plc-photo {
    border-radius: 12px 0 0 12px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .ba-properties-listing.ba-listing-grid { grid-template-columns: 1fr; }
    .ba-properties-listing.ba-listing-list .ba-prop-listing-card { grid-template-columns: 1fr; }
    .ba-properties-listing.ba-listing-list .ba-plc-photo { border-radius: 12px 12px 0 0; min-height: 200px; }
}

.ba-prop-listing-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow .25s ease, transform .2s ease;
}
.ba-prop-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.05), 0 4px 6px -2px rgba(0,0,0,.025);
}
.ba-plc-photo {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    position: relative;
}
.ba-plc-no-photo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}
.ba-plc-type {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(15,23,42,.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ba-plc-price {
    position: absolute;
    bottom: 12px; right: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.ba-plc-price small { font-weight: 500; font-size: 12px; color: #64748b; }
.ba-plc-body { padding: 20px; }
.ba-plc-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: #0f172a; line-height: 1.35; }
.ba-plc-title a { color: inherit; text-decoration: none; }
.ba-plc-title a:hover { color: #2563eb; }
.ba-plc-address { margin: 0 0 12px; font-size: 13px; color: #64748b; }
.ba-plc-desc { margin: 0 0 16px; font-size: 14px; color: #475569; line-height: 1.5; }
.ba-plc-specs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.ba-plc-specs span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}
.ba-plc-footer {
    display: flex;
    justify-content: flex-end;
}
.ba-btn-sm {
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.ba-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    border: 1px dashed #d1d5db !important;
    box-shadow: none !important;
}
a.ba-btn-disabled { pointer-events: none; }
.ba-no-properties {
    text-align: center;
    color: #717171;
    padding: 60px 20px;
    font-size: 16px;
}

/* ══════════════════════════════════════════════════════════════════════
   Single Property — Airbnb/Booking.com Inspired
   ══════════════════════════════════════════════════════════════════════ */

.ba-single-property {
    max-width: 1120px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    line-height: 1.5;
}

/* ── Photo Gallery Grid (Airbnb-style) ─────────────────────────────── */

.ba-sp-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    max-height: 420px;
}
.ba-sp-gallery-hero {
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    min-height: 420px;
    cursor: pointer;
    transition: opacity .2s;
}
.ba-sp-gallery-hero:hover { opacity: .92; }

.ba-sp-gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ba-sp-gallery-thumb {
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: opacity .2s;
}
.ba-sp-gallery-thumb:hover { opacity: .85; }

.ba-sp-gallery-more {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    color: #222;
}
.ba-sp-gallery-more:hover {
    background: #f7f7f7;
}

@media (max-width: 768px) {
    .ba-sp-gallery-grid {
        grid-template-columns: 1fr;
        max-height: 280px;
    }
    .ba-sp-gallery-hero { min-height: 280px; }
    .ba-sp-gallery-side { display: none; }
}

/* ── Lightbox ──────────────────────────────────────────────────────── */

.ba-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 4px 8px;
}
.ba-lb-close:hover { color: #ccc; }

.ba-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.ba-lb-arrow:hover { background: rgba(255,255,255,.3); }
.ba-lb-prev { left: 20px; }
.ba-lb-next { right: 20px; }

.ba-lb-img-wrap {
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}
.ba-lb-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.ba-lb-counter {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    margin-top: 12px;
}

/* ── Content Layout ────────────────────────────────────────────────── */

.ba-sp-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .ba-sp-content { grid-template-columns: 1fr; gap: 24px; }
}
.ba-sp-main { min-width: 0; }

/* ── Header ────────────────────────────────────────────────────────── */

.ba-sp-header { margin-bottom: 20px; }
.ba-sp-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ba-sp-type {
    display: inline-block;
    background: #f0f4ff;
    color: #1565c0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .3px;
}
.ba-sp-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
}
.ba-sp-address {
    margin: 0;
    font-size: 14px;
    color: #717171;
}

/* ── Key Facts Strip ───────────────────────────────────────────────── */

.ba-sp-keyfacts {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 18px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}
.ba-sp-kf {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 14px;
    color: #484848;
    font-weight: 500;
}
.ba-sp-kf svg { color: #717171; flex-shrink: 0; }
.ba-sp-kf + .ba-sp-kf { border-left: 1px solid #ebebeb; }

@media (max-width: 600px) {
    .ba-sp-keyfacts { gap: 0; }
    .ba-sp-kf { padding: 6px 10px; font-size: 13px; }
}

/* ── Sections ──────────────────────────────────────────────────────── */

.ba-sp-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #ebebeb;
}
.ba-sp-section:last-child { border-bottom: none; }
.ba-sp-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}
.ba-sp-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 16px 0 10px;
}
.ba-sp-short-desc {
    font-size: 16px;
    color: #484848;
    line-height: 1.65;
    margin: 0 0 10px;
}
.ba-sp-desc {
    font-size: 15px;
    color: #484848;
    line-height: 1.7;
}

/* ── Amenities Grid ────────────────────────────────────────────────── */

.ba-sp-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.ba-sp-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #484848;
    border-bottom: 1px solid #f5f5f5;
}
.ba-sp-amenity-item svg { flex-shrink: 0; }

@media (max-width: 600px) {
    .ba-sp-amenities-grid { grid-template-columns: 1fr; }
}

/* ── Rules Grid ────────────────────────────────────────────────────── */

.ba-sp-rules-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ba-sp-rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #484848;
    border-bottom: 1px solid #f5f5f5;
}
.ba-sp-rule-item svg { flex-shrink: 0; }

/* ── Check Times ───────────────────────────────────────────────────── */

.ba-sp-checktimes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ba-sp-checktime {
    background: #f7f7f7;
    padding: 16px 20px;
    border-radius: 12px;
}
.ba-sp-ct-label {
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.ba-sp-ct-value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.ba-sp-instructions {
    font-size: 14px;
    color: #717171;
    line-height: 1.6;
    margin: 8px 0 0;
}

/* ── Extras ────────────────────────────────────────────────────────── */

.ba-sp-extras {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ba-sp-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #484848;
}
.ba-sp-extra:last-child { border-bottom: none; }
.ba-sp-extra-price {
    font-weight: 700;
    color: #222;
    font-size: 15px;
}

/* ── Sidebar: Booking Card ─────────────────────────────────────────── */

.ba-sp-sidebar {
    position: sticky;
    top: 24px;
}
.ba-sp-booking-box {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    overflow: hidden;
}
.ba-sp-price-banner {
    padding: 20px 24px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.ba-sp-price-from {
    font-size: 13px;
    color: #717171;
}
.ba-sp-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
.ba-sp-price-night {
    font-size: 14px;
    color: #717171;
}
.ba-sp-booking-box .ba-widget {
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════
   Booking Details Page
   ══════════════════════════════════════════════════════════════════════ */

.ba-bd-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    line-height: 1.5;
}

.ba-bd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.ba-bd-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ba-bd-title { margin: 0; font-size: 28px; font-weight: 700; color: #0f172a; }
.ba-bd-id { font-size: 16px; color: #64748b; font-weight: 500; }

.ba-bd-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ba-bd-status-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.ba-bd-status-confirmed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ba-bd-status-completed { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ba-bd-status-cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ba-bd-status-no_show { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.ba-bd-property-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.ba-bd-property-photo {
    width: 180px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    flex-shrink: 0;
}
.ba-bd-property-info { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.ba-bd-property-info h2 { margin: 0 0 4px; font-size: 20px; color: #0f172a; font-weight: 600; }
.ba-bd-property-address { margin: 0 0 4px; font-size: 14px; color: #64748b; }
.ba-bd-property-unit { margin: 0; font-size: 13px; color: #94a3b8; }

@media (max-width: 600px) {
    .ba-bd-property-card { flex-direction: column; }
    .ba-bd-property-photo { width: 100%; min-height: 160px; }
}

.ba-bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 600px) { .ba-bd-grid { grid-template-columns: 1fr; } }

.ba-bd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}
.ba-bd-card h3 { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #0f172a; }
.ba-bd-card-full { margin-bottom: 24px; }

.ba-bd-dates { display: flex; align-items: center; gap: 20px; }
.ba-bd-date-col { flex: 1; }
.ba-bd-date-label { display: block; font-size: 12px; text-transform: uppercase; font-weight: 600; color: #64748b; letter-spacing: 0.5px; }
.ba-bd-date-value { display: block; font-size: 16px; font-weight: 600; color: #0f172a; margin: 4px 0; }
.ba-bd-date-time { display: block; font-size: 13px; color: #64748b; }
.ba-bd-date-arrow { font-size: 24px; color: #94a3b8; margin-top: 10px; }
.ba-bd-nights { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; font-size: 15px; font-weight: 600; color: #475569; }

.ba-bd-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.ba-bd-row:last-of-type { border-bottom: none; }
.ba-bd-row span:first-child { color: #64748b; }
.ba-bd-row span:last-child { font-weight: 600; color: #0f172a; }
.ba-bd-amount { font-size: 20px !important; font-weight: 700 !important; }

.ba-bd-payment-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 16px;
}
.ba-bd-pay-unpaid { background: #fef2f2; color: #b91c1c; }
.ba-bd-pay-deposit_paid { background: #fffbeb; color: #b45309; }
.ba-bd-pay-partially_paid { background: #fffbeb; color: #b45309; }
.ba-bd-pay-paid { background: #f0fdf4; color: #15803d; }
.ba-bd-pay-refunded { background: #eff6ff; color: #1d4ed8; }

/* Timeline */
.ba-bd-timeline { position: relative; padding-left: 28px; }
.ba-bd-timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: #e2e8f0; }
.ba-bd-timeline-item { position: relative; padding-bottom: 20px; }
.ba-bd-timeline-item:last-child { padding-bottom: 0; }
.ba-bd-tl-dot { position: absolute; left: -24px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #3b82f6; border: 3px solid #ffffff; box-shadow: 0 0 0 2px #3b82f6; }
.ba-bd-tl-timeline .ba-bd-tl-dot { background: #3b82f6; box-shadow: 0 0 0 2px #3b82f6; }
.ba-bd-tl-note .ba-bd-tl-dot { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.ba-bd-tl-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ba-bd-tl-msg { font-size: 15px; color: #0f172a; font-weight: 500; }
.ba-bd-tl-time { font-size: 13px; color: #94a3b8; }

/* Cancel */
.ba-bd-cancel-section { border: 1px solid #fde68a; background: #fffbeb; }
.ba-bd-cancel-section h3 { color: #92400e; }
.ba-bd-cancel-section p { color: #92400e; margin: 0 0 16px; font-size: 14px; }
.ba-bd-cancel-disabled { background: #f8fafc; border-color: #e2e8f0; }
.ba-btn-cancel { background: #dc2626; color: #ffffff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ba-btn-cancel:hover { background: #b91c1c; }

/* Account prompt */
.ba-bd-account-prompt { background: #f8fafc; border: 1px solid #e2e8f0; }
.ba-bd-account-prompt h3 { margin-bottom: 8px; }
.ba-bd-account-prompt p { color: #64748b; margin: 0 0 16px; font-size: 14px; }
.ba-bd-reg-form { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.ba-bd-reg-form input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
.ba-bd-reg-form input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Access / Auth page */
.ba-bd-access-panel {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ba-bd-access-icon { font-size: 48px; margin-bottom: 16px; }
.ba-bd-access-panel h2 { margin: 0 0 8px; font-size: 24px; color: #0f172a; font-weight: 700; }
.ba-bd-access-panel > p { color: #64748b; margin: 0 0 32px; font-size: 14px; line-height: 1.5; }

.ba-bd-auth-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; background: #f1f5f9; padding: 4px; border-radius: 8px; }
.ba-bd-auth-tab { padding: 8px 24px; background: transparent; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; color: #64748b; transition: all 0.2s; }
.ba-bd-auth-active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.ba-bd-auth-panel { text-align: left; }
.ba-bd-input { display: block; width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; line-height: 1.4; color: #0f172a; margin-bottom: 12px; box-sizing: border-box; transition: border-color 0.2s; background-color: #ffffff; font-family: inherit; }
.ba-bd-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
select.ba-bd-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    min-height: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
select.ba-bd-input:disabled {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}
.ba-bd-auth-msg { display: block; text-align: center; font-size: 13px; margin-top: 12px; min-height: 18px; }
.ba-bd-auth-error { color: #b91c1c; }
.ba-bd-auth-success { color: #15803d; }

/* Empty state */
.ba-bd-empty { text-align: center; padding: 60px 20px; }
.ba-bd-empty-icon { font-size: 56px; margin-bottom: 16px; }
.ba-bd-empty h2 { margin: 0 0 8px; font-size: 22px; color: #0f172a; }
.ba-bd-empty p { margin: 0; font-size: 15px; color: #64748b; }

/* Guest bookings list */
.ba-gb-list { display: flex; flex-direction: column; gap: 16px; }
.ba-gb-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ba-gb-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.ba-gb-card-photo {
    width: 140px;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-gb-no-photo { font-size: 32px; color: #94a3b8; }
.ba-gb-card-body { flex: 1; padding: 16px 0; }
.ba-gb-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ba-gb-card-top h3 { margin: 0; font-size: 16px; font-weight: 600; color: #0f172a; }
.ba-gb-card-dates { font-size: 14px; color: #64748b; margin-bottom: 4px; }
.ba-gb-card-price { font-size: 16px; font-weight: 700; color: #0f172a; }
.ba-gb-card-arrow { padding: 0 20px; font-size: 28px; color: #94a3b8; }

@media (max-width: 600px) {
    .ba-gb-card { flex-direction: column; align-items: stretch; }
    .ba-gb-card-photo { width: 100%; min-height: 140px; }
    .ba-gb-card-body { padding: 16px; }
    .ba-gb-card-arrow { display: none; }
    .ba-bd-dates { flex-direction: column; gap: 8px; text-align: center; }
    .ba-bd-date-arrow { transform: rotate(90deg); margin: 0; }
}


/* ══════════════════════════════════════════════════════════════════════
   Guest Portal — Navigation, Profile, Verification
   ══════════════════════════════════════════════════════════════════════ */

.ba-portal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}
.ba-portal-nav-left { display: flex; align-items: center; gap: 8px; }
.ba-portal-greeting { font-size: 15px; color: #475569; }
.ba-portal-greeting strong { color: #0f172a; }
.ba-portal-nav-links { display: flex; align-items: center; gap: 4px; }
.ba-portal-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.ba-portal-link:hover { background: #f1f5f9; color: #0f172a; }
.ba-portal-link-active { background: #0f172a; color: #ffffff !important; }
.ba-portal-link-active:hover { background: #1e293b; }
.ba-portal-link-logout { color: #94a3b8; }
.ba-portal-link-logout:hover { color: #dc2626; background: #fef2f2; }

@media (max-width: 600px) {
    .ba-portal-nav { flex-direction: column; align-items: flex-start; }
    .ba-portal-nav-links { width: 100%; overflow-x: auto; }
}

/* Verification Banner */
.ba-gp-verify-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ba-gp-verify-icon { font-size: 28px; flex-shrink: 0; }
.ba-gp-verify-content { flex: 1; min-width: 200px; }
.ba-gp-verify-content strong { display: block; color: #92400e; font-size: 15px; margin-bottom: 2px; }
.ba-gp-verify-content p { margin: 0; font-size: 13px; color: #92400e; }

.ba-gp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Profile Form */
.ba-gp-section { margin-bottom: 24px; }
.ba-gp-form { display: flex; flex-direction: column; gap: 16px; }
.ba-gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-gp-field { display: flex; flex-direction: column; gap: 4px; }
.ba-gp-field label { font-size: 13px; font-weight: 600; color: #475569; }
.ba-gp-actions { display: flex; align-items: center; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.ba-gp-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}
.ba-gp-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ba-gp-row { grid-template-columns: 1fr; }
    .ba-gp-verify-banner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Guest Account Dashboard
   ========================================================================== */

.ba-account-wrap { max-width: 1120px; margin: 0 auto; }
.ba-portal-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.ba-portal-link-active .ba-portal-link-badge { background: #ffffff; color: #0f172a; }

.ba-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0 20px;
}
.ba-account-identity { display: flex; align-items: center; gap: 16px; }
.ba-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ba-account-identity-text h2 { margin: 0; font-size: 22px; color: #0f172a; font-weight: 700; line-height: 1.2; }
.ba-account-identity-meta { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; align-items: center; color: #64748b; font-size: 13px; }
.ba-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
.ba-account-chip-ok    { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.ba-account-chip-warn  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.ba-account-chip-muted { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.ba-account-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.ba-account-sidebar {
    position: sticky;
    top: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ba-account-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.ba-account-nav:hover { background: #f1f5f9; color: #0f172a; }
.ba-account-nav-active { background: #0f172a; color: #ffffff; }
.ba-account-nav-active:hover { background: #0f172a; color: #ffffff; }
.ba-account-nav-icon { width: 20px; text-align: center; font-size: 14px; }
.ba-account-nav-label { flex: 1; }
.ba-account-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}
.ba-account-nav-active .ba-account-nav-badge { background: #ffffff; color: #0f172a; }

.ba-account-content { min-width: 0; }
.ba-account-section { margin-bottom: 0; }
.ba-account-section + .ba-account-section { margin-top: 0; }

.ba-account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.ba-account-stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ba-account-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; font-weight: 600; }
.ba-account-stat-val   { font-size: 24px; color: #0f172a; font-weight: 700; }

.ba-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-account-quick { display: flex; flex-direction: column; gap: 4px; }
.ba-account-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 -8px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
}
.ba-account-quick-link:hover { background: #f8fafc; }
.ba-account-quick-arrow { color: #94a3b8; font-size: 16px; }
.ba-account-quick-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 6px;
    background: #ef4444; color: #ffffff; border-radius: 9999px;
    font-size: 11px; font-weight: 700; font-style: normal; margin-left: 6px;
}
.ba-account-muted { color: #64748b; font-size: 13px; margin: 0 0 12px; }
.ba-account-big-date { font-size: 18px; font-weight: 700; color: #0f172a; margin: 4px 0 12px; }

.ba-account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ba-account-head h3 { margin: 0; }
.ba-account-head-actions { display: flex; gap: 8px; }

/* Notifications */
.ba-notif-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ba-notif-filter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}
.ba-notif-filter:hover { background: #f1f5f9; color: #0f172a; }
.ba-notif-filter-active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

.ba-notif-list { display: flex; flex-direction: column; gap: 8px; }
.ba-notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: background 0.15s, border-color 0.15s;
}
.ba-notif-item:hover { background: #fafbfc; }
.ba-notif-unread { background: #f8fafc; }
.ba-notif-unread.ba-notif-sev-critical { background: #fef2f2; border-color: #fecaca; }
.ba-notif-unread.ba-notif-sev-warning  { background: #fffbeb; border-color: #fde68a; }
.ba-notif-unread.ba-notif-sev-success  { background: #f0fdf4; border-color: #bbf7d0; }
.ba-notif-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cbd5e1; flex-shrink: 0; margin-top: 8px;
}
.ba-notif-unread .ba-notif-dot                   { background: #3b82f6; }
.ba-notif-unread.ba-notif-sev-critical .ba-notif-dot { background: #dc2626; }
.ba-notif-unread.ba-notif-sev-warning  .ba-notif-dot { background: #f59e0b; }
.ba-notif-unread.ba-notif-sev-success  .ba-notif-dot { background: #16a34a; }
.ba-notif-main { flex: 1; min-width: 0; }
.ba-notif-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ba-notif-cat { font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; font-weight: 700; color: #64748b; }
.ba-notif-time { font-size: 12px; color: #94a3b8; }
.ba-notif-title { margin: 4px 0 4px; font-size: 15px; color: #0f172a; font-weight: 600; }
.ba-notif-msg { margin: 0 0 8px; font-size: 14px; color: #475569; line-height: 1.45; }
.ba-notif-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ba-notif-cta { font-size: 13px; font-weight: 600; color: #2563eb; text-decoration: none; }
.ba-notif-cta:hover { text-decoration: underline; }
.ba-notif-mark { background: none; border: none; padding: 0; font-size: 13px; color: #64748b; cursor: pointer; }
.ba-notif-mark:hover { color: #0f172a; text-decoration: underline; }

/* Empty states */
.ba-empty-state { text-align: center; padding: 36px 16px; color: #64748b; }
.ba-empty-state.ba-empty-compact { padding: 24px 12px; }
.ba-empty-icon { font-size: 36px; margin-bottom: 8px; }
.ba-empty-state h4 { margin: 0 0 4px; color: #0f172a; font-size: 16px; font-weight: 600; }
.ba-empty-state p { margin: 0; font-size: 13px; }

/* Skeleton loaders */
.ba-skeleton {
    height: 72px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    margin-bottom: 8px;
    animation: baSkeleton 1.3s linear infinite;
}
@keyframes baSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Messages / Inbox */
.ba-msg-card { position: relative; }
.ba-msg-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    min-height: 420px;
}
.ba-msg-threads {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    border-right: 1px solid #e2e8f0;
}
.ba-msg-thread {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}
.ba-msg-thread:hover { background: #f8fafc; }
.ba-msg-thread-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ba-msg-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ba-msg-thread-subject { font-weight: 600; color: #0f172a; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ba-msg-thread-unread {
    background: #ef4444;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.ba-msg-thread-preview {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ba-msg-thread-time { font-size: 11px; color: #94a3b8; }

.ba-msg-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 420px;
}
.ba-msg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; margin-bottom: 12px; }
.ba-msg-head h4 { margin: 0; font-size: 16px; color: #0f172a; font-weight: 600; }
.ba-msg-ref { font-size: 12px; color: #64748b; }
.ba-msg-scroll { flex: 1; overflow-y: auto; padding: 4px 2px; display: flex; flex-direction: column; gap: 8px; }
.ba-msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}
.ba-msg-bubble-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ba-msg-sender { font-size: 12px; font-weight: 600; color: #0f172a; }
.ba-msg-time   { font-size: 11px; color: #94a3b8; }
.ba-msg-body   { font-size: 14px; color: #0f172a; line-height: 1.5; white-space: normal; word-wrap: break-word; }
.ba-msg-self   { align-self: flex-end; background: #0f172a; color: #ffffff; }
.ba-msg-self   .ba-msg-sender, .ba-msg-self .ba-msg-time, .ba-msg-self .ba-msg-body { color: #ffffff; }
.ba-msg-self   .ba-msg-time { color: #cbd5e1; }
.ba-msg-other  { align-self: flex-start; background: #f8fafc; border-color: #e2e8f0; }
.ba-msg-system { align-self: center; background: #fffbeb; border-color: #fde68a; font-size: 13px; text-align: center; color: #92400e; }

.ba-msg-reply {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.ba-msg-reply textarea { margin-bottom: 8px; resize: vertical; }
.ba-msg-reply-actions { display: flex; align-items: center; gap: 12px; }

.ba-msg-compose {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}
.ba-msg-compose[hidden] { display: none !important; }
.ba-msg-compose-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(15,23,42,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ba-msg-compose-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ba-msg-compose-head strong { font-size: 15px; color: #0f172a; }
.ba-msg-close { background: none; border: none; font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1; }
.ba-msg-close:hover { color: #0f172a; }
.ba-msg-compose-actions { display: flex; align-items: center; gap: 12px; }

/* Responsive */
@media (max-width: 820px) {
    .ba-account-layout { grid-template-columns: 1fr; }
    .ba-account-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 6px;
        gap: 2px;
    }
    .ba-account-nav { white-space: nowrap; }
    .ba-account-grid { grid-template-columns: 1fr; }
    .ba-msg-layout { grid-template-columns: 1fr; }
    .ba-msg-threads { border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; padding-bottom: 8px; max-height: 240px; }
}
@media (max-width: 480px) {
    .ba-account-header { align-items: flex-start; }
    .ba-account-identity { gap: 12px; }
    .ba-account-avatar { width: 48px; height: 48px; font-size: 18px; }
    .ba-account-identity-text h2 { font-size: 18px; }
    .ba-notif-item { padding: 12px; }
    .ba-msg-bubble { max-width: 100%; }
}

/* ==========================================================================
   Booking Step 2 – extended guest details, account shortcut, auth modal
   ========================================================================== */

.ba-guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.ba-guest-banner-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.ba-guest-banner strong { display: block; font-weight: 600; }
.ba-guest-banner-sub {
    display: block;
    font-size: 12px;
    color: #15803d;
    margin-top: 2px;
}
.ba-guest-banner-action {
    font-size: 13px;
    color: #166534;
    text-decoration: underline;
    white-space: nowrap;
}

.ba-guest-shortcut { margin-bottom: 16px; }
.ba-shortcut-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.ba-shortcut-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    border-style: solid;
}
.ba-shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ba-shortcut-label { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ba-shortcut-label strong { font-size: 14px; color: #0f172a; font-weight: 600; }
.ba-shortcut-label small { font-size: 12px; color: #64748b; margin-top: 2px; }
.ba-shortcut-cta {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
    flex-shrink: 0;
}

.ba-field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 520px) {
    .ba-field-pair { grid-template-columns: 1fr; }
}

.ba-email-hint {
    min-height: 18px;
    font-size: 12px;
    margin-top: 4px;
}
.ba-email-warn {
    color: #b91c1c;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}
.ba-email-warn a {
    color: #b91c1c;
    text-decoration: underline;
    font-weight: 600;
}
.ba-email-ok {
    color: #15803d;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.ba-guest-consents {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.ba-consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    line-height: 1.4;
}
.ba-consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #2563eb;
    flex-shrink: 0;
}
.ba-consent-row a { color: #2563eb; text-decoration: underline; }

.ba-step-error {
    min-height: 18px;
    margin-top: 10px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
}

/* Auth / OTP modal */
.ba-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: baModalFadeIn 0.15s ease;
}
@keyframes baModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ba-modal-panel {
    background: #ffffff;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
    animation: baModalSlide 0.2s ease;
}
@keyframes baModalSlide { from { transform: translateY(8px); } to { transform: translateY(0); } }
.ba-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 6px 10px;
}
.ba-modal-close:hover { color: #0f172a; }
.ba-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
    font-weight: 600;
}
.ba-modal-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.ba-modal-err {
    min-height: 20px;
    color: #b91c1c;
    font-size: 13px;
    margin: 4px 0 12px;
}
.ba-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.ba-modal-actions .ba-btn { flex: 0 0 auto; }
