/* Variabili di colore (valori di default, sovrascrivibili da inline style) */
:root {
    --lp-primary: #003580;   /* Colore principale (header, hero) */
    --lp-accent:  #ffb700;   /* Colore evidenza (barra ricerca, pulsanti) */
    --lp-bg:      #F8F8F8;   /* Sfondo generico frontend */
}

/* Layout generale */
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--lp-bg);
    color: #111;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

body.lp-frontend {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp-header {
    color: #fff;
    background-color: var(--lp-primary, #003580);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

/* Mobile-first: titolo a sinistra + link a destra */
.lp-header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    box-sizing: border-box;
}

.lp-header-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

.lp-header-logo {
    height: 1.85rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-header-burger {
    display: none;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0;
    cursor: pointer;
}

.lp-header-burger-line {
    display: block;
    width: 1rem;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

/* Link testuali di navigazione */
.lp-header-nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem 0.8rem;
    margin-left: auto;
    text-align: right;
}

.lp-nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.lp-nav-link:hover,
.lp-nav-link:focus-visible {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.75);
    outline: none;
}

.lp-nav-link--active {
    color: var(--lp-accent, #ffb700);
    border-bottom-color: var(--lp-accent, #ffb700);
}

.lp-nav-link--active:hover,
.lp-nav-link--active:focus-visible {
    color: var(--lp-accent, #ffb700);
    border-bottom-color: var(--lp-accent, #ffb700);
}

.lp-nav-btn-customer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.lp-nav-btn-customer i {
    font-size: 0.95rem;
    line-height: 1;
}

.lp-nav-btn-customer:hover,
.lp-nav-btn-customer:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.2);
}

.lp-nav-btn-customer--active {
    color: #111;
    border-color: var(--lp-accent, #ffb700);
    border-bottom-color: var(--lp-accent, #ffb700);
    background: var(--lp-accent, #ffb700);
}

.lp-nav-btn-customer--active:hover,
.lp-nav-btn-customer--active:focus-visible {
    color: #111;
    border-color: var(--lp-accent, #ffb700);
    border-bottom-color: var(--lp-accent, #ffb700);
    background: var(--lp-accent, #ffb700);
}

@media (max-width: 767.98px) {
    .lp-header-inner {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
    }

    .lp-header-title {
        font-size: 0.9rem;
        max-width: calc(100% - 3rem);
    }

    .lp-header-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .lp-header-nav-links {
        display: none;
        width: 100%;
        margin-left: 0;
        padding-top: 0.45rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
    }

    .lp-header-nav-links.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .lp-nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    .lp-nav-btn-customer {
        align-self: flex-start;
    }
}

@media (min-width: 768px) {
    .lp-header-inner {
        gap: 1rem;
        padding: 0.6rem 0;
    }

    .lp-header-title {
        font-size: 2rem;
    }

    .lp-header-logo {
        height: 2.25rem;
        max-width: 11rem;
    }

    .lp-header-nav-links {
        gap: 0.4rem 1rem;
    }

    .lp-nav-link {
        font-size: 0.92rem;
    }

    .lp-footer-inner {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .lp-footer-copy {
        font-size: 0.86rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body.lp-frontend .lp-main {
        min-height: 0;
    }
}

.lp-main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 0;
}

.lp-footer {
    color: rgba(255, 255, 255, 0.94);
    background-color: var(--lp-primary, #003580);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0;
}

.lp-footer-copy {
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: center;
}

/* Pulsanti primari nel frontend pubblico: colore da --lp-primary (inline su body da options DB) */
.lp-main .btn-primary {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
}

.lp-main .btn-primary:hover,
.lp-main .btn-primary:focus {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
    filter: brightness(0.9);
}

.lp-main .btn-primary:active {
    filter: brightness(0.82);
}

.lp-main .btn-primary:disabled,
.lp-main .btn-primary.disabled {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
    opacity: 0.65;
    filter: none;
}

.lp-hero {
    /* Grigio di sfondo semitrasparente sopra l'immagine */
    background: rgba(248, 248, 248, 0.6);
    color: #111;
    width: fit-content;
    margin: auto;
    margin-top: auto;   /* centra verticalmente il blocco all'interno di lp-main */
    margin-bottom: auto;
    padding: 3rem;
    border-radius: 2rem;
}

.lp-hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--lp-primary);
}

.lp-hero-title span {
    color: var(--lp-accent);
}

.lp-hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Barra di ricerca stile booking, centrata sotto il testo */
.lp-search-bar-wrapper {
    margin-top: 1.5rem;
}

.lp-search-bar {
    display: grid;
    /* Struttura più stretta, date più larghe (colonna Persone invariata) */
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 2.75fr) minmax(0, 2.3fr) auto;
    gap: 0;
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 0.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.lp-search-field {
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #ffcf55;
}

.lp-search-field:last-of-type {
    border-right: none;
}

.lp-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin-bottom: 0.2rem;
}

/* Colonna Cerca/Reimposta: stesso riquadro delle altre celle, pulsanti alti come il campo Persone */
.lp-search-actions-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-search-actions-label-spacer {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.lp-field-help {
    font-size: 0.7rem;
    color: #777;
    margin-top: 0.2rem;
}

.lp-search-field select,
.lp-search-field input[type="date"],
.lp-search-field .lp-date-input-group .form-control {
    font-size: 0.9rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.lp-search-field select:disabled,
.lp-search-field input:disabled {
    background-color: #f3f3f3;
    cursor: not-allowed;
}

/* Dropdown personalizzato per strutture (con immagini) */
.lp-structure-dropdown {
    position: relative;
}

.lp-structure-dropdown-toggle {
    width: 100%;
    min-height: 2.875rem; /* allineato a date e persone */
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 0.3rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.lp-structure-dropdown-toggle:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.lp-structure-dropdown-thumb-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-structure-dropdown-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-structure-dropdown-text {
    margin-left: 0.5rem;
    margin-right: auto;
    min-width: 0;
}

.lp-structure-dropdown-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.lp-structure-dropdown-caret {
    font-size: 0.7rem;
    color: #555;
    margin-left: 0.5rem;
}

.lp-structure-dropdown-menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.15rem;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ced4da;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    max-height: 260px;
    overflow-y: auto;
}

.lp-structure-option {
    width: 100%;
    border: none;
    background: #fff;
    padding: 0.35rem 0.55rem;
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.lp-structure-option:hover {
    background-color: #f1f5ff;
}

.lp-structure-option-thumb-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-structure-option-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-structure-option-thumb-placeholder {
    width: 70%;
    height: 70%;
    border-radius: 4px;
    background: linear-gradient(135deg, #dee2e6, #ced4da);
}

.lp-structure-option-name {
    margin-left: 0.55rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.lp-structure-option-empty {
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
    color: #777;
}

.lp-dates-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lp-date-input-group {
    flex: 1;
    min-width: 0;
}

.lp-date-input-group .form-control {
    min-height: 3.2rem;
    box-sizing: border-box;
}

.lp-date-input-group .input-group-text {
    cursor: pointer;
    background-color: #fff;
}

/* Calendario: tema e z-index in style/lp-booking-pages.css (.lp-frontend .datepicker) */

.lp-dates-separator {
    font-size: 0.9rem;
    color: #666;
}

/* Persone */
.lp-guests-summary-btn {
    width: 100%;
    min-height: 2.875rem; /* allineato a struttura e date */
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 0.35rem 0.6rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-guests-summary-btn:disabled {
    background-color: #f3f3f3;
    color: #8a8a8a;
    cursor: not-allowed;
}

.lp-guests-summary-main {
    font-size: 0.9rem;
}

.lp-guests-summary-sub {
    font-size: 0.7rem;
    color: #777;
}

/* Pannello ospiti (aperto al click su "Persone") */
.lp-search-guests {
    position: relative;
}

.lp-guests-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 20;
}

.lp-guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.lp-guests-row:last-child {
    margin-bottom: 0;
}

.lp-guests-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.lp-guests-note {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.1rem;
}

.lp-guests-counter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-guests-counter .form-control {
    width: 3.5rem;
    text-align: center;
}

.lp-guests-counter .lp-guests-adults-count,
.lp-guests-children-row .lp-guests-children-count {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.lp-guests-animals-row {
    align-items: center;
}

.lp-guests-animals-label-wrap {
    flex: 1;
}

.lp-guests-animals-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-search-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ordine sempre: Cerca poi icona (evita inversione con direction: rtl ereditato) */
.lp-search-bar .lp-search-action {
    flex-direction: row;
    direction: ltr;
}

/* Desktop a griglia: la riga si allinea in altezza; i pulsanti riempiono l’area sotto la label */
@media (min-width: 992px) {
    .lp-search-bar .lp-search-actions-col .lp-search-action {
        flex: 1 1 auto;
        align-self: stretch;
        align-items: stretch;
        min-height: 0;
    }
}

.lp-search-bar .lp-search-action .lp-search-btn {
    order: 1;
}

.lp-search-bar .lp-search-action .lp-search-reset-btn {
    order: 2;
}

.lp-search-btn {
    border-radius: 10px;
    padding: 0 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Solo barra prenotazione: reset compatto solo icona, dopo il CTA (stessa altezza del pulsante Cerca) */
.lp-search-bar .lp-search-reset-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.75rem;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #5c5c5c;
    border-radius: 10px;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.lp-search-bar .lp-search-reset-btn .bi {
    font-size: 0.88rem;
    opacity: 0.9;
}

.lp-search-bar .lp-search-reset-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border-color: rgba(0, 0, 0, 0.14);
}

.lp-search-bar .lp-search-reset-btn:active {
    transform: scale(0.94);
}

.lp-search-bar .lp-search-reset-btn:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
}

.lp-search-bar .lp-search-btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 0.45rem;
    min-height: 2.75rem;
    height: auto;
    padding: 0.55rem 1.45rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 12px;
    white-space: nowrap;
    /* Nessuna ombra: Bootstrap applica box-shadow su .btn:focus-visible */
    box-shadow: none !important;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.lp-search-bar .lp-search-btn.btn-primary .bi {
    font-size: 1.05rem;
    opacity: 0.95;
}

.lp-search-bar .lp-search-btn.btn-primary:not(:disabled):hover,
.lp-search-bar .lp-search-btn.btn-primary:not(:disabled):focus-visible {
    transform: translateY(-1px);
    box-shadow: none !important;
    filter: brightness(1.04);
}

/* Focus da tastiera senza alone Bootstrap (box-shadow disattivato sopra) */
.lp-search-bar .lp-search-btn.btn-primary:not(:disabled):focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 2px;
}

.lp-search-bar .lp-search-btn.btn-primary:not(:disabled):active {
    transform: translateY(0);
    filter: brightness(0.93);
    box-shadow: none !important;
}

.lp-search-bar .lp-search-btn.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none;
    filter: none;
}

.lp-search-btn:disabled {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    opacity: 0.65;
    cursor: not-allowed;
    filter: none;
}

/* Responsività */
@media (max-width: 991.98px) {
    .lp-search-bar {
        grid-template-columns: 1fr;
        row-gap: 0.25rem;
    }

    .lp-search-field {
        border-right: none;
    }

    .lp-search-actions-label-spacer {
        display: none;
    }

    .lp-search-bar .lp-search-actions-col .lp-search-action {
        flex: none;
        align-items: center;
    }

    .lp-search-bar .lp-search-btn.btn-primary {
        align-self: center;
    }

    .lp-search-bar .lp-search-reset-btn {
        align-self: center;
        width: 2rem;
        min-width: 2rem;
        max-width: none;
        height: 2rem;
        border-radius: 50%;
    }

    .lp-search-action {
        justify-content: flex-start;
        direction: ltr;
        padding: 0.25rem;
    }

    .lp-search-btn {
        width: 100%;
    }
}

/* Contatti: titolo e sottotitolo dentro lp-hero (stesso box centrato dell'index) */
.lp-contacts-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--lp-primary);
    text-align: center;
}

.lp-contacts-subtitle {
    font-size: 0.98rem;
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Contenuto form contatti (box pagina contatti) */
.lp-contacts-content {
    margin-top: 2rem;
}

.lp-contact-card {
    border: none;
}

.lp-map-placeholder {
    border-radius: 12px;
    background: #e3f2fd;
    position: relative;
    height: 260px;
    overflow: hidden;
}

.lp-map-iframe {
    width: 100%;
    height: 100%;
}

.lp-map-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 0.25rem 0.6rem;
    background: rgba(0,53,128,0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-decoration: none;
}

/* Lista aree disponibili (choose_object N o Y, dopo ricerca con areas_list) */
.lp-areas-list {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.lp-areas-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lp-primary);
    margin: 0 0 0.35rem 0;
}

.lp-areas-list-intro {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 1rem 0;
}

.lp-areas-list-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-area-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fafafa;
}

/* Intestazione area: immagine/SVG a sinistra, titolo + descrizione a destra */
.lp-area-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.lp-area-card-header-text {
    flex: 1;
    min-width: 0;    
    border-left: 1px solid #dee2e6;
    padding-left: 20px;
}

.lp-area-card-image {
    flex-shrink: 0;
    width: 300px;
    height: 210px;
    min-width: 300px;
    min-height: 210px;
    background-color: #e9ecef;
    overflow: hidden;
    border-radius: 4px;
}

.lp-area-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-area-card-image .lp-area-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lp-area-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lp-primary);
    margin: 0;
    letter-spacing: 0.02em;
    border-bottom: 3px solid var(--lp-primary);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Descrizione area (sotto il titolo, dentro l'header) */
.lp-area-card-description {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.lp-area-card-body {
    padding: 0 1.25rem 1rem 1.25rem;
}

/* Tabella tipi oggetto per area: layout fisso per evitare spostamento colonne quando compaiono le età bambini */
.lp-area-object-types {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.lp-area-object-types .lp-col-type { width: 17%; }
.lp-area-object-types .lp-col-occupancy { width: 10%; }
.lp-area-object-types .lp-col-adults { width: 14%; }
.lp-area-object-types .lp-col-children { width: 31%; }
.lp-area-object-types .lp-col-price-full,
.lp-area-object-types .lp-col-price-reduced { width: 14%; }

/* choose_object=N senza bambini da assegnare: colonne Bambini e Ridotto omesse */
.lp-areas-list--no-children-col .lp-area-object-types .lp-col-type { width: 28%; }
.lp-areas-list--no-children-col .lp-area-object-types .lp-col-occupancy { width: 14%; }
.lp-areas-list--no-children-col .lp-area-object-types .lp-col-adults { width: 22%; }
.lp-areas-list--no-children-col .lp-area-object-types .lp-col-price-full { width: 36%; }

.lp-area-cell-price-full,
.lp-area-cell-price-reduced {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.lp-area-object-types thead th {
    font-weight: 600;
    color: #555;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.lp-area-object-types tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    background-color: #fff;
}

/* Allineamento in alto solo quando la riga ha bambini (età espansa) */
.lp-area-object-types tbody tr:has(.lp-area-row-children-ages) td {
    vertical-align: top;
}

.lp-area-object-types tbody tr:last-child td {
    border-bottom: none;
}

/* Cella Tipologia: td resta cella di tabella così l'altezza segue la riga; flex solo sul contenuto interno */
.lp-area-cell-type {
    background-color: #fff;
}

.lp-area-cell-type-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lp-area-object-types tbody tr:has(.lp-area-row-children-ages) .lp-area-cell-type-inner {
    align-items: flex-start;
}

.lp-area-object-type-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.lp-area-object-type-svg {
    width: 28px;
    height: 28px;
    display: block;
}

.lp-area-object-type-name {
    font-weight: 600;
    color: #333;
}

.lp-area-cell-occupancy {
    font-size: 0.85rem;
    color: #555;
}

.lp-area-cell-occupancy .lp-area-occupancy-min,
.lp-area-cell-occupancy .lp-area-occupancy-max {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-right: 0.5rem;
}

.lp-area-cell-occupancy i {
    color: var(--lp-primary);
}

.lp-area-qty-controls-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 100%;
}

.lp-area-qty-controls-row .lp-area-occupancy-select {
    flex-shrink: 0;
}

/* Colore primario frontend (anche in cella Intero: batte btn-outline-primary Bootstrap) */
.lp-frontend .btn.lp-area-add-unit-btn {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
}

.lp-frontend .btn.lp-area-add-unit-btn:hover,
.lp-frontend .btn.lp-area-add-unit-btn:focus {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
    filter: brightness(0.9);
}

.lp-frontend .btn.lp-area-add-unit-btn:active {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
    filter: brightness(0.82);
}

.lp-area-qty-controls-row .lp-area-add-unit-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 0.85rem;
    min-height: 2rem;
    white-space: nowrap;
    line-height: 1.2;
}

.lp-area-occupancy-select {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lp-area-occupancy-select .btn {
    padding: 0.15rem 0.4rem;
    min-width: 28px;
}

.lp-area-occupancy-select .lp-area-adults-count,
.lp-area-occupancy-select .lp-area-children-count {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Età bambini per riga (tipologia oggetto): contenuto in larghezza fissa per evitare spostamenti */
.lp-area-cell-children {
    vertical-align: top;
    width: 24%;
    min-width: 0;
}

/* Solo desktop: distanza netta tra selettori Adulti e Bambini */
@media (min-width: 768px) {
    .lp-area-object-types thead .lp-area-th-adults,
    .lp-area-object-types tbody .lp-area-cell-adults {
        padding-right: 3.5rem;
    }

    .lp-area-object-types thead .lp-area-th-children,
    .lp-area-object-types tbody .lp-area-cell-children {
        padding-left: 2.75rem;
    }
}

.lp-area-cell-children .lp-area-row-children-ages {
    min-width: 0;
}

.lp-area-row-children-ages {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #eee;
}

.lp-area-row-child-age {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.lp-area-row-child-age:last-child {
    margin-bottom: 0;
}

.lp-area-row-child-age-label {
    color: #555;
    min-width: 100px;
}

.lp-area-row-child-age .form-select {
    width: auto;
    min-width: 11rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}

.lp-area-row-child-age.lp-area-row-child-free-slot {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
}

.lp-area-child-free-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

/* Età obbligatoria: evidenzia select ancora su placeholder */
.lp-area-row-child-age select.form-select:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.2);
}

/* Blocco flottante conferma prenotazione (in basso a destra) */
.lp-booking-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Larghezza fissa rispetto al viewport: non si allarga/stringe al variare del testo della nota */
    width: min(18rem, calc(100vw - 2.75rem));
    max-width: min(18rem, calc(100vw - 2.75rem));
    box-sizing: border-box;
}

/* Avviso nel riepilogo float (palette tipo banner booking_summary: crema / oro) */
.lp-booking-float-assign-note-wrap {
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.8rem;
    box-sizing: border-box;
    background-color: #fdf8e4;
    border: 1px solid #e6dbb9;
    border-radius: 6px;
}

.lp-booking-float-assign-note {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: #333333;
    background: none;
    border: none;
    border-radius: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-line;
}

.lp-booking-float-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lp-booking-float-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.lp-booking-float-label {
    font-size: 0.9rem;
    color: #555;
}

.lp-booking-float-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.lp-booking-float-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

.lp-booking-float-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Pagina riepilogo prenotazione (booking_summary.php) --- */
.lp-summary-wrap {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3rem;
}

.lp-summary-headline {
    text-align: center;
    margin-bottom: 1.75rem;
}

.lp-summary-headline .lp-hero-title {
    margin-bottom: 0.35rem;
}

.lp-summary-lead {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.lp-summary-panel {
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

/* Messaggio struttura (riepilogo / thanks): contenitore neutro; stile solo su .lp-summary-payment-message */
.lp-summary-panel.lp-summary-panel--structure-message {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.lp-summary-panel.lp-summary-panel--structure-message .lp-summary-panel-body {
    padding: 0;
}

.lp-summary-panel-banner {
    background: linear-gradient(135deg, var(--lp-primary) 0%, color-mix(in srgb, var(--lp-primary) 65%, #000) 100%);
    color: #fff;
    padding: 1.35rem 1.5rem 1.5rem;
}

/* Fallback se color-mix non è supportato */
@supports not (color: color-mix(in srgb, red, blue)) {
    .lp-summary-panel-banner {
        background: var(--lp-primary);
    }
}

.lp-summary-structure-name {
    margin: 0 0 1.1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.lp-summary-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem 1rem;
}

.lp-summary-date-tile {
    flex: 1 1 10rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.lp-summary-date-tile .bi {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-top: 0.1rem;
}

.lp-summary-date-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
    margin-bottom: 0.15rem;
}

.lp-summary-date-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Nota secondaria sotto il valore (banner chiaro su gradiente struttura) */
.lp-summary-banner-detail {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 500;
    opacity: 0.88;
    margin-top: 0.35rem;
}

.lp-summary-panel-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.lp-summary-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

.lp-summary-meta-item {
    padding: 0.75rem 0.9rem;
    background-color: #f4f7fc;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-left: 1px solid var(--lp-accent);
}

.lp-summary-meta-item--full {
    grid-column: 1 / -1;
}

/* Conferma prenotazione: Ospiti, Animali, Aree su una riga (3 colonne) */
.lp-summary-meta.lp-summary-meta--three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
    .lp-summary-meta.lp-summary-meta--three-cols {
        grid-template-columns: 1fr;
    }
}

.lp-summary-meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.2rem;
}

.lp-summary-meta-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-primary);
}

.lp-summary-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Intestazione sezione: margin titolo azzerato; padding/bordo su .lp-frontend in lp-booking-pages.css */
.lp-summary-section-head .lp-summary-section-title {
    margin-bottom: 0;
}

.lp-summary-section-body > .alert + .lp-summary-table-wrap {
    margin-top: 0.5rem;
}

.lp-summary-section-title .bi {
    font-size: 1.15rem;
    opacity: 0.9;
}

.lp-summary-table-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fafafa;
}

table.lp-summary-table {
    margin-bottom: 0;
    font-size: 0.9rem;
    border-collapse: collapse;
    border-spacing: 0;
    --bs-table-border-width: 1px;
}

table.lp-summary-table.table > thead > tr > th,
table.lp-summary-table.table > thead > tr > td,
table.lp-summary-table.table > tbody > tr > th,
table.lp-summary-table.table > tbody > tr > td {
    border-bottom-width: 1px;
}

table.lp-summary-table thead th {
    background-color: #fff;
    color: var(--lp-primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-primary, #003580) 18%, #eef1f6);
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
}

table.lp-summary-table tbody td {
    padding: 0.75rem 0.85rem;
    vertical-align: middle;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

table.lp-summary-table tbody tr:first-child td {
    border-top: none;
}

table.lp-summary-table tbody tr:last-child td {
    border-bottom: none;
}

table.lp-summary-table tbody tr:hover td {
    background-color: #f8fafc;
}

table.lp-summary-table .lp-summary-cell-area {
    font-weight: 600;
    color: #222;
}

table.lp-summary-table .lp-summary-cell-type {
    color: #444;
}

table.lp-summary-table .lp-summary-cell-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--lp-primary);
}

table.lp-summary-table tfoot th,
table.lp-summary-table tfoot td {
    background-color: color-mix(in srgb, var(--lp-accent, #ffb700) 14%, #ffffff);
    color: var(--lp-primary);
    padding: 0.75rem 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--lp-primary, #003580) 18%, #eef1f6);
    border-bottom: 0;
    vertical-align: middle;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    table.lp-summary-table thead th {
        border-bottom: 1px solid #dce2eb;
    }

    table.lp-summary-table tfoot th,
    table.lp-summary-table tfoot td {
        background-color: #fff9ec;
        border-top: 1px solid #dce2eb;
    }
}

table.lp-summary-table tfoot th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.lp-summary-table tfoot tr + tr th,
table.lp-summary-table tfoot tr + tr td {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

table.lp-summary-table tfoot td.lp-summary-cell-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

table.lp-summary-table tfoot td.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

/* Nota testuale sotto la riga Riepilogo (es. animali) */
table.lp-summary-table tfoot tr.lp-summary-foot-note td {
    background: #f4f7fc;
    color: #5c6570;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 0.5rem 0.85rem 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.lp-summary-age-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lp-summary-age-list li {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #444;
}

.lp-summary-age-list .lp-summary-age-tag {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background-color: #eef4ff;
    color: var(--lp-primary);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Messaggio struttura (riepilogo / conferma): evidenziato senza ombra */
.lp-summary-payment-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 600;
    color: #12263d;
    background-color: #fff4d6;
    border: 1px solid #e8d49a;
    border-left: 4px solid var(--lp-accent, #ffb700);
    border-radius: 10px;
    padding: 1.2rem 1.35rem;
}

.lp-summary-payment-message-icon {
    flex-shrink: 0;
    font-size: 2.15rem;
    line-height: 1;
    color: var(--lp-primary, #003580);
}

.lp-summary-payment-message-content {
    flex: 1;
    min-width: 0;
}

.lp-summary-payment-message-content > *:first-child {
    margin-top: 0;
}

.lp-summary-payment-message-content > *:last-child {
    margin-bottom: 0;
}

/* Aree nella conferma prenotazione (stesso blocco meta del riepilogo) */
.lp-summary-confirm-area-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-primary);
    line-height: 1.45;
}

.lp-summary-confirm-area-list li {
    margin-bottom: 0.2rem;
}

.lp-booking-confirm-fallback {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    font-weight: 500;
}

.lp-summary-payment-panel .lp-payment-fake-form {
    max-width: 28rem;
}

.lp-summary-payment-panel .lp-payment-fake-form .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
}

.lp-summary-actions {
    text-align: center;
    margin-top: 2rem;
}

.lp-summary-actions .btn {
    flex: 1 1 auto;
    min-width: 10rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
}

/* Modifica / Annulla: stessa altezza degli altri, larghezza solo del testo; Paga ora: CTA principale */
.lp-summary-actions .btn.lp-summary-action-narrow {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    max-width: fit-content;
    padding: 0.55rem 0.7rem;
    font-weight: 600;
}

.lp-summary-actions .btn.lp-summary-action-pay {
    flex: 0 1 auto;
    min-width: 12.5rem;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 1.85rem;
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.16);
}

.lp-summary-actions .btn.lp-summary-action-pay.btn-primary {
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.2);
    border: none;
}

@media (max-width: 575.98px) {
    .lp-summary-panel-banner {
        padding: 1.1rem 1rem 1.25rem;
    }

    .lp-summary-structure-name {
        font-size: 1.25rem;
    }

    table.lp-summary-table thead th,
    table.lp-summary-table tbody td,
    table.lp-summary-table tfoot th,
    table.lp-summary-table tfoot td {
        padding: 0.8rem 1rem;
        font-size: 0.875rem;
    }
}

/* Pagina manutenzione frontend (index.php con site_maintenance = Y) */
.lp-maintenance-page {
    margin: 0;
    min-height: 100vh;
    background: var(--lp-maint-bg, #f5f5f5);
    color: #1a2332;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lp-maintenance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.lp-maintenance__card {
    width: 100%;
    max-width: 520px;
    padding: 2rem 1.75rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.lp-maintenance__logo {
    display: block;
    max-width: 160px;
    max-height: 56px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.lp-maintenance__brand {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lp-maint-primary, #003580);
}

.lp-maintenance__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--lp-maint-primary, #003580);
    background: rgba(0, 53, 128, 0.08);
    border-radius: 50%;
}

.lp-maintenance__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lp-maint-primary, #003580);
}

.lp-maintenance__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: #5c6573;
}

.lp-maintenance__contact {
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    color: #1a2332;
}

.lp-maintenance__contact a {
    color: var(--lp-maint-primary, #003580);
    font-weight: 600;
    text-decoration: none;
}

.lp-maintenance__contact a:hover {
    text-decoration: underline;
}

