/* ── Deltabooking — variabili brand ─────────────────────────────────────────
   Modifica queste variabili per personalizzare i colori del modulo.
   ────────────────────────────────────────────────────────────────────────── */
:root {
    --db-primary:       #1a237e;   /* colore principale (header biglietti, giorni disponibili…) */
    --db-primary-light: #e8eaf6;   /* sfondo hover giorno disponibile */
    --db-success:       #2e7d32;   /* badge prima disponibilità */
    --db-accent:        #6c2bd9;   /* hint "seleziona giorno" */
    --db-accent-light:  #f0ebff;   /* sfondo hint */
    --db-today:         #ff9800;   /* evidenziazione giorno odierno */
}

/* ── Booking section ────────────────────────────────────────────────────── */
.booking-section {
    padding: 3rem 0;
}

/* Header biglietti (barra colorata sopra la card) */
.ticketTypeAvailable {
    background-color: var(--db-primary);
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0;
}

.ticketTypeAvailable.no-ticket {
    display: none;
}

.ticket-type-title {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
}

.ticket-type-price {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ticket-type-price strong {
    font-size: 1.05rem;
}

/* Gruppo quantità +/- */
.qty-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qty-group .qty {
    width: 52px;
    text-align: center;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    -moz-appearance: textfield;
}

.qty-group .qty::-webkit-inner-spin-button,
.qty-group .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-group .qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.qty-group .qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-group .qty-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Totale prenotazione */
.total_event {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.total_event span {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0;
    text-transform: none;
}

.border-left {
    border-left: 1px solid #dee2e6;
}

.booking-section .bookingBox .card {
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: none;
}

/* Badge pagamento sicuro */
.secure-badge {
    font-size: 0.8rem;
    color: #6c757d;
    gap: 0.25rem;
}

.secure-badge img {
    vertical-align: middle;
}

/* Righe info esperienza (icona + etichetta + testo) */
.experience-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.experience-info > div {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.experience-info .text-wrapper span:first-child {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}

/* Prezzo nella sidebar */
.price-label {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-label span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
}

/* "Leggi tutto" testo lungo */
.text-toggle .btn-read-more {
    display: block;
    background: none;
    border: none;
    color: #0d6efd;
    padding: 0;
    margin-top: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Badge durata / location */
.duration-span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

/* Booking assistant (alert con suggerimenti) */
#bookingAssistant {
    border-radius: 0.375rem;
}

/* Cerchio icona (punto di ritrovo, note voucher, …) */
.db-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-icon-circle .material-symbols-outlined {
    font-size: 20px;
}

/* Colonna body del form di prenotazione */
.db-booking-body {
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .db-booking-body { padding: 1rem; }
}

@media (min-width: 992px) {
    .db-booking-body { padding: 1.5rem 1rem 3rem 3rem; }
}

@media (min-width: 1200px) {
    .db-booking-body { padding: 1.5rem 3rem 3rem 3rem; }
}

/* Colonna totale + bottone aggiungi */
.db-total-col {
    padding: 0.25rem 0.5rem 1rem;
}

@media (min-width: 768px) {
    .db-total-col { padding: 0.5rem 1rem 1rem; }
}

@media (min-width: 992px) {
    .db-total-col { padding: 1.5rem 1.5rem 3rem; }
}

/* Immagine galleria carousel */
.db-gallery-img {
    max-height: 500px;
    object-fit: cover;
}

/* Thumbnail nel carrello */
.db-cart-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Icone inline piccole (nei bottoni, nei testi) */
.db-icon-sm {
    font-size: 1rem;
    vertical-align: middle;
}

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

/* Card riepilogo attrazione nel modal */
.db-attraction-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 0.5rem;
}

.db-attraction-card__img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.db-attraction-card__body {
    flex: 1;
    min-width: 0;
}

.db-attraction-card__town {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--db-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    margin-bottom: 0.35rem;
}

.db-attraction-card__town .material-symbols-outlined {
    font-size: 0.85rem;
}

.db-attraction-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge prima disponibilità */
.db-first-avail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--db-success);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.db-first-avail__date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.db-first-avail__date .material-symbols-outlined {
    font-size: 1rem;
}

/* Hint "seleziona un giorno" */
.db-select-day-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--db-accent-light);
    color: var(--db-accent);
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.db-select-day-hint .material-symbols-outlined {
    font-size: 1rem;
}

/* ── Calendario inline (daterangepicker) ─────────────────────────────────── */
.db-inline-calendar {
    position: relative;
    min-height: 310px;
}

.db-inline-calendar .daterangepicker {
    position: static !important;
    display: block !important;
    float: none;
    box-shadow: none;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin: 0 0 0.75rem;
    top: auto !important;
    left: auto !important;
    min-width: 0;
    width: 100%;
}

.db-inline-calendar .daterangepicker::before,
.db-inline-calendar .daterangepicker::after {
    display: none;
}

.db-inline-calendar .daterangepicker .drp-calendar {
    max-width: none;
    width: 100%;
    padding: 0.5rem;
}

.db-inline-calendar .daterangepicker .calendar-table {
    border: none;
}

.db-inline-calendar .daterangepicker td.db-dp-available {
    color: var(--db-primary);
    font-weight: 700;
}

.db-inline-calendar .daterangepicker td.db-dp-today:not(.active) {
    background: var(--db-today) !important;
    color: #fff !important;
    border-radius: 50% !important;
}

.db-inline-calendar .daterangepicker td.active,
.db-inline-calendar .daterangepicker td.active:hover {
    background: var(--db-primary) !important;
    border-radius: 50% !important;
}

.db-inline-calendar .daterangepicker td.db-dp-sold-out {
    text-decoration: line-through;
    color: #bbb !important;
}

/* Slot orari */
.time-slots {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
