/**
 * Beach Booking System - Frontend Styles
 *
 * @package BeachBooking
 * @version 1.2.0
 */

/* =========================================================
   PALETTE MAPPING: inherit from Riviera Spineta theme (rs-*)
   with hardcoded fallback so the widget works standalone.
   NB: --bb-* names are kept for backward compat with older
   CSS blocks — only the var() targets changed (were pointing
   at non-existent --rs-r / --rs-r-lg / --rs-b-font / --rs-h-font
   / --rs-text-muted tokens and silently using the hardcoded
   fallback instead of the real theme values).
   ========================================================= */
.bb-booking-wrapper {
    --bb-primary:       var(--rs-primary,      #8B2E3B);
    --bb-primary-dark:  var(--rs-primary-dark, #6B1E2B);
    --bb-secondary:     var(--rs-gold-dark,    #7A6228);
    --bb-marine:        var(--rs-marine,       #1F4E5F);
    --bb-marine-dark:   var(--rs-marine-dark,  #163C49);
    --bb-bg:            var(--rs-bg,           #F5F0EB);
    --bb-bg-alt:        var(--rs-bg-alt,       #FAF8F4);
    --bb-card:          var(--rs-card,         #FFFDF9);
    --bb-text:          var(--rs-text,         #2C1810);
    --bb-text-muted:    var(--rs-text-mid-aa,  #5C4D47);
    --bb-success:       var(--rs-success,      #2E7D32);
    --bb-success-bg:    var(--rs-success-bg,   #F1F8F2);
    --bb-error:         var(--rs-error,        #C0392B);
    --bb-error-bg:      var(--rs-error-bg,     #FFF5F3);
    --bb-radius:        var(--rs-radius-sm,    6px);
    --bb-radius-lg:     var(--rs-radius,       12px);
    --bb-radius-pill:   var(--rs-radius-pill,  999px);
    --bb-radius-button: var(--rs-radius-button, 6px);
    --bb-shadow:        var(--rs-shadow-card,    0 4px 16px rgba(44,24,16,.08));
    --bb-shadow-lg:     var(--rs-shadow-elevated, 0 8px 32px rgba(44,24,16,.14));
    --bb-font-body:     var(--rs-font-body,    system-ui, -apple-system, 'Segoe UI', sans-serif);
    --bb-font-heading:  var(--rs-font-body,    system-ui, -apple-system, 'Segoe UI', sans-serif);
    --bb-transition:    all var(--rs-duration-base, 220ms) var(--rs-ease, cubic-bezier(.4,0,.2,1));

    /* Legacy aliases kept for backward compat with older CSS blocks */
    --bb-warning:       #ed8936;
    --bb-danger:        var(--bb-error);
    --bb-border:        rgba(139, 46, 59, .16);
    --bb-white:         var(--rs-card, #FFFDF9);
    --bb-radius-sm:     var(--bb-radius);
    --bb-font:          var(--bb-font-body);

    font-family: var(--bb-font-body);
}

.bb-booking-wrapper h2,
.bb-booking-wrapper h3 {
    font-family: var(--bb-font-heading);
    color: var(--bb-primary);
}

/* =========================================================
   CSS VARIABLES (root-level fallback for elements outside wrapper,
   e.g. the Flatpickr calendar popup, which WordPress/JS append to
   <body> and therefore falls outside .bb-booking-wrapper's scope)
   ========================================================= */
:root {
    --bb-primary:       var(--rs-primary,      #8B2E3B);
    --bb-primary-dark:  var(--rs-primary-dark, #6B1E2B);
    --bb-secondary:     var(--rs-gold-dark,    #7A6228);
    --bb-success:       var(--rs-success,      #2E7D32);
    --bb-warning:       #ed8936;
    --bb-danger:        var(--rs-error,        #C0392B);
    --bb-error:         var(--rs-error,        #C0392B);
    --bb-text:          var(--rs-text,         #2C1810);
    --bb-text-muted:    var(--rs-text-mid-aa,  #5C4D47);
    --bb-border:        rgba(139, 46, 59, .16);
    --bb-bg:            var(--rs-bg,           #F5F0EB);
    --bb-card:          var(--rs-card,         #FFFDF9);
    --bb-white:         var(--rs-card,         #FFFDF9);
    --bb-radius:        var(--rs-radius-sm,    6px);
    --bb-radius-sm:     var(--rs-radius-sm,    6px);
    --bb-radius-lg:     var(--rs-radius,       12px);
    --bb-shadow:        var(--rs-shadow-card,    0 4px 16px rgba(44,24,16,.08));
    --bb-shadow-lg:     var(--rs-shadow-elevated, 0 8px 32px rgba(44,24,16,.14));
    --bb-transition:    all var(--rs-duration-base, 220ms) var(--rs-ease, cubic-bezier(.4,0,.2,1));
    --bb-font:          var(--rs-font-body,    system-ui, -apple-system, 'Segoe UI', sans-serif);
    --bb-font-body:     var(--rs-font-body,    system-ui, -apple-system, 'Segoe UI', sans-serif);
    --bb-font-heading:  var(--rs-font-body,    system-ui, -apple-system, 'Segoe UI', sans-serif);
}

/* =========================================================
   WRAPPER — larghezza in linea col resto del sito (max ~1366px,
   qui teniamo un respiro leggermente più stretto della pagina
   perché il form è un flusso verticale, non una griglia larga).
   ========================================================= */
.bb-booking-wrapper {
    font-family: var(--bb-font);
    color: var(--bb-text);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

@media (min-width: 640px) {
    .bb-booking-wrapper { padding: 0 32px 72px; }
}

@media (min-width: 960px) {
    .bb-booking-wrapper { padding: 0 48px 88px; }
}

/* =========================================================
   HEADER
   ========================================================= */
.bb-booking-header {
    text-align: center;
    padding: 40px 0 32px;
}

.bb-booking-header h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--bb-primary);
    margin: 0 0 8px;
}

.bb-subtitle {
    color: var(--bb-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* =========================================================
   STEP INDICATOR
   ========================================================= */
.bb-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.bb-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--bb-border);
    z-index: 0;
}

.bb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.bb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bb-card);
    color: var(--bb-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    font-family: var(--bb-font);
    transition: var(--bb-transition);
    border: 2px solid var(--bb-border);
}

.bb-step.active .bb-step-number,
.bb-step.completed .bb-step-number {
    background: var(--bb-primary);
    color: var(--bb-white);
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(139, 46, 59, .15);
}

.bb-step-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bb-step.active .bb-step-label {
    color: var(--bb-primary);
}

/* =========================================================
   STEP CONTENT CARD
   ========================================================= */
.bb-step-content {
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow);
    padding: 24px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--bb-border);
    animation: bbFadeIn .3s ease;
}

@media (min-width: 640px) {
    .bb-step-content { padding: 36px; }
}

@keyframes bbFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bb-step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bb-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bb-border);
}

/* =========================================================
   BOOKING TYPE TOGGLE
   ========================================================= */
.bb-booking-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.bb-radio-card {
    flex: 1;
    cursor: pointer;
}

.bb-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.bb-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    transition: var(--bb-transition);
    text-align: center;
}

.bb-radio-card:hover .bb-radio-content {
    border-color: var(--bb-primary);
}

.bb-radio-card input:checked + .bb-radio-content {
    border-color: var(--bb-primary);
    background: rgba(139, 46, 59, .06);
    color: var(--bb-primary);
}

.bb-radio-content strong {
    font-size: .95rem;
    font-weight: 700;
}

.bb-radio-content small {
    font-size: .8rem;
    color: var(--bb-text-muted);
    margin-top: 2px;
}

/* =========================================================
   DATE INPUT
   ========================================================= */
.bb-date-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.bb-date-input-wrapper label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    color: var(--bb-text);
    margin-bottom: 8px;
}

.bb-date-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    font-size: 1rem;
    font-family: var(--bb-font);
    color: var(--bb-text);
    background: var(--bb-white);
    transition: var(--bb-transition);
    box-sizing: border-box;
    cursor: pointer;
}

.bb-date-input:focus {
    outline: none;
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(139, 46, 59, .15);
}

.bb-date-icon {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 1.2rem;
    pointer-events: none;
}

.bb-date-summary {
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.bb-date-summary p {
    margin: 4px 0;
}

/* =========================================================
   MAP CONTROLS
   ========================================================= */
.bb-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: wrap;
}

.bb-zoom-controls {
    display: flex;
    gap: 6px;
}

.bb-btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    background: var(--bb-white);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bb-text);
    transition: var(--bb-transition);
}

.bb-btn-icon:hover {
    border-color: var(--bb-primary);
    color: var(--bb-primary);
}

.bb-btn-icon:focus-visible {
    outline: 3px solid var(--rs-gold, #C9A961);
    outline-offset: 2px;
}

.bb-btn-auto-suggest {
    background: var(--bb-primary);
    color: var(--bb-white) !important;
    border-color: var(--bb-primary) !important;
}

.bb-btn-auto-suggest:hover {
    background: var(--bb-primary-dark);
    border-color: var(--bb-primary-dark) !important;
    color: var(--bb-white) !important;
}

/* =========================================================
   BEACH MAP — "vorrei la mappa più grande": la mappa occupa
   tutta la larghezza dello step-content e, da desktop, sborda
   oltre il wrapper (full-bleed) perché l'immagine ha un ratio
   larghissimo (~3.6:1) e più è larga più è leggibile.
   ========================================================= */
.bb-beach-map {
    width: 100%;
    min-height: 160px;   /* la mappa detta la propria altezza: evita fasce vuote */
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #87ceeb 0%, #f0e68c 60%, #deb887 100%);
    cursor: grab;
}

.bb-beach-map:active {
    cursor: grabbing;
}

/* Full-bleed breakout: solo lo step "Posizione" (data-step=2), solo
   da desktop. Tecnica viewport-relative: non dipende dal max-width
   del wrapper, quindi resta stabile anche se il wrapper cambia. */
@media (min-width: 1160px) and (max-width: 1359px) {
    .bb-step-content[data-step="2"] #bb-beach-map-container.bb-beach-map {
        width: 100vw;
        max-width: 1300px;
        margin-left: 50%;
        transform: translateX(-50%);
        border-radius: var(--bb-radius-lg);
    }
}

/* Da 1360px in su si allarga l'intero box dello step Posizione e la
   mappa riempie il box (in sync con la regola gemella in beach-map.css). */
@media (min-width: 1360px) {
    .bb-step-content[data-step="2"] {
        margin-left: -128px;
        margin-right: -128px;
    }
    .bb-step-content[data-step="2"] #bb-beach-map-container.bb-beach-map {
        width: 100%;
        max-width: none;
        margin-left: 0;
        transform: none;
        border-radius: var(--bb-radius-lg);
    }
}

.bb-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.85);
    gap: 12px;
}

.bb-map-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bb-border);
    border-top-color: var(--bb-primary);
    border-radius: 50%;
    animation: bbSpin .8s linear infinite;
}

@keyframes bbSpin {
    to { transform: rotate(360deg); }
}

/* Suggerimento discreto sotto la mappa (nuova classe nei template) */
.bb-map-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--bb-text-muted);
    background: var(--bb-bg);
    border-radius: var(--bb-radius);
}

.bb-map-hint::before {
    content: "\2139";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--bb-secondary);
    color: var(--bb-white);
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1;
}

.bb-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.bb-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--bb-text-muted);
}

.bb-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bb-selection-info {
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 10px 16px;
    margin-top: 12px;
    font-size: .9rem;
}

/* =========================================================
   CONFIGURATION FORM
   ========================================================= */
.bb-form-group {
    margin-bottom: 24px;
}

.bb-form-group label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    color: var(--bb-text);
    margin-bottom: 8px;
}

.bb-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    font-size: 1rem;
    font-family: var(--bb-font);
    color: var(--bb-text);
    background: var(--bb-white);
    transition: var(--bb-transition);
    box-sizing: border-box;
}

.bb-form-input:focus {
    outline: none;
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(139, 46, 59, .15);
}

/* Counter */
.bb-counter {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    overflow: hidden;
}

.bb-counter-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bb-bg);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bb-text);
    transition: var(--bb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-counter-btn:hover {
    background: var(--bb-primary);
    color: var(--bb-white);
}

.bb-counter-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 2px solid var(--bb-border);
    border-right: 2px solid var(--bb-border);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bb-text);
    background: var(--bb-white);
    -moz-appearance: textfield;
}

.bb-counter-input::-webkit-outer-spin-button,
.bb-counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Services Grid */
.bb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.bb-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius);
    cursor: pointer;
    transition: var(--bb-transition);
}

.bb-service-item:hover {
    border-color: var(--bb-primary);
}

.bb-service-item input:checked ~ .bb-service-content {
    color: var(--bb-primary);
}

.bb-service-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-service-price {
    font-size: .8rem;
    color: var(--bb-secondary);
    font-weight: 600;
}

/* Customer Info */
.bb-customer-info {
    border-top: 2px solid var(--bb-border);
    padding-top: 24px;
    margin-top: 8px;
}

.bb-customer-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px;
}

/* =========================================================
   PRICE SUMMARY
   ========================================================= */
.bb-price-summary {
    background: rgba(139, 46, 59, .05);
    border: 1px solid rgba(139, 46, 59, .18);
    border-radius: var(--bb-radius);
    padding: 20px;
    margin: 24px 0;
}

.bb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .95rem;
    border-bottom: 1px solid rgba(139, 46, 59, .1);
}

.bb-price-row:last-child {
    border-bottom: none;
}

.bb-price-total {
    padding-top: 12px;
    margin-top: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bb-primary);
    border-top: 2px solid rgba(139, 46, 59, .2);
    border-bottom: none !important;
}

/* =========================================================
   BOOKING RECAP (Step 4) — nuove classi nei template
   ========================================================= */
.bb-booking-recap {
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 20px 24px;
    margin: 20px 0 28px;
}

.bb-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 46, 59, .08);
    font-size: .9375rem;
    margin: 0;
}

.bb-recap-row:last-child {
    border-bottom: none;
}

.bb-recap-row dt,
.bb-recap-row .bb-recap-label {
    color: var(--bb-text-muted);
    font-weight: 600;
}

.bb-recap-row dd,
.bb-recap-row .bb-recap-value {
    margin: 0;
    color: var(--bb-text);
    font-weight: 700;
    text-align: right;
}

.bb-summary-details {
    margin-top: 8px;
}

.bb-pricing-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-pricing-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: .875rem;
    color: var(--bb-text-muted);
    border-bottom: 1px dashed rgba(139, 46, 59, .12);
}

.bb-pricing-breakdown li:last-child {
    border-bottom: none;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid var(--bb-border);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bb-primary);
}

/* =========================================================
   CHECKOUT
   ========================================================= */
.bb-order-summary {
    background: var(--bb-bg);
    border-radius: var(--bb-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.bb-order-summary h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

#bb-payment-element {
    min-height: 200px;
}

.bb-error-message {
    background: var(--bb-error-bg);
    border: 1px solid rgba(192, 57, 43, .3);
    color: var(--bb-error);
    border-radius: var(--bb-radius);
    padding: 12px 16px;
    font-size: .9rem;
    margin-bottom: 16px;
}

/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */
.bb-success-message {
    text-align: center;
    padding: 60px 36px;
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-border);
}

.bb-success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.bb-success-message h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bb-success);
    margin: 0 0 12px;
}

/* =========================================================
   BUTTONS — stessa forma/hover/focus dei .rs-btn del sito
   ========================================================= */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--bb-radius-button);
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--bb-font);
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
    text-decoration: none;
    min-height: 44px;
}

.bb-btn:hover:not(:disabled) { transform: translateY(-1px); }
.bb-btn:active:not(:disabled) { transform: translateY(0); }

.bb-btn:focus-visible {
    outline: 3px solid var(--rs-gold, #C9A961);
    outline-offset: 3px;
}

.bb-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.bb-btn-primary {
    background: var(--bb-primary);
    color: var(--bb-white);
    border-color: var(--bb-primary);
    box-shadow: 0 4px 12px rgba(139, 46, 59, .18);
}

.bb-btn-primary:hover:not(:disabled) {
    background: var(--bb-primary-dark);
    border-color: var(--bb-primary-dark);
    box-shadow: 0 6px 18px rgba(139, 46, 59, .28);
}

.bb-btn-secondary {
    background: transparent;
    color: var(--bb-text);
    border-color: var(--bb-border);
}

.bb-btn-secondary:hover:not(:disabled) {
    border-color: var(--bb-primary);
    color: var(--bb-primary);
    background: rgba(139, 46, 59, .05);
}

.bb-btn-success {
    background: var(--bb-success);
    color: var(--bb-white);
    box-shadow: 0 4px 12px rgba(46, 125, 50, .22);
}

.bb-btn-success:hover:not(:disabled) {
    background: #235f26;
    box-shadow: 0 6px 18px rgba(46, 125, 50, .32);
}

.bb-step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--bb-border);
    gap: 12px;
}

.bb-btn-next {
    margin-left: auto;
}

/* =========================================================
   FLATPICKR OVERRIDES
   ========================================================= */
.flatpickr-calendar {
    border-radius: var(--bb-radius-lg) !important;
    box-shadow: var(--bb-shadow-lg) !important;
    border: 1px solid var(--bb-border) !important;
    font-family: var(--bb-font) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--bb-primary) !important;
    border-color: var(--bb-primary) !important;
}

.flatpickr-day.inRange {
    background: rgba(139, 46, 59, .15) !important;
    border-color: rgba(139, 46, 59, .15) !important;
    box-shadow: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .bb-booking-type-toggle {
        flex-direction: column;
    }

    .bb-steps-indicator::before {
        display: none;
    }

    .bb-step-label {
        display: none;
    }

    .bb-step-buttons {
        flex-direction: column-reverse;
    }

    .bb-btn {
        width: 100%;
    }

    .bb-services-grid {
        grid-template-columns: 1fr;
    }

    .bb-map-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .bb-recap-row {
        flex-direction: column;
        gap: 2px;
    }

    .bb-recap-row dd,
    .bb-recap-row .bb-recap-value {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-step-content { animation: none; }
    .bb-btn:hover:not(:disabled) { transform: none; }
}
