/* NextLabs Booking - Stili specifici per HolidayHomeService.it */

/* Import Flatpickr CSS dal CDN */
@import url('https://cdn.jsdelivr.net/npm/flatpickr@4.6.13/dist/flatpickr.min.css');

/* Import booking-form.css per stili calendario modal */
@import url('booking-form.css');

/* Variabili colore dal kit Elementor */
:root {
    --nlb-primary: #024E72;
    --nlb-secondary: #F3780D;
    --nlb-text: #333333;
    --nlb-accent: #D6EAF3;
    --nlb-white: #FFFFFF;
    --nlb-gray-light: #F5F5F5;
}

/* ============================================
   FIX: Override Elementor height:100% su widget-container
   Elementor applica: .e-con > .e-con-inner > .elementor-widget > .elementor-widget-container { height: 100% }
   Dobbiamo usare selettori PIU' SPECIFICI per vincere
   ============================================ */

/* Selettore ultra-specifico per battere Elementor (5 classi) */
.e-con > .e-con-inner > .elementor-widget.elementor-widget-shortcode > .elementor-widget-container,
.e-con > .elementor-widget.elementor-widget-shortcode > .elementor-widget-container,
.elementor-widget.elementor-widget-shortcode > .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* Backup con :has() per qualsiasi container con contenuto NLB */
.elementor-widget-container:has(.nlb-shortcode-wrapper),
.elementor-widget-container:has(.nlb-main-container) {
    height: auto !important;
    overflow: visible !important;
}

/* Container principale NLB */
.nlb-main-container {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* Paginazione */
.nlb-pagination {
    position: relative;
    z-index: 10;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    clear: both;
}

/* Pulsanti primari */
.nlb-filter-submit,
.nlb-button-primary,
.nlb-map-popup-link,
button[type="submit"].nlb-button {
    background-color: var(--nlb-primary) !important;
    color: var(--nlb-white) !important;
    border: none !important;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.nlb-filter-submit:hover,
.nlb-button-primary:hover,
.nlb-map-popup-link:hover,
button[type="submit"].nlb-button:hover {
    background-color: var(--nlb-secondary) !important;
    color: var(--nlb-white) !important;
    border: none !important;
}

/* Rimuovi bordo focus */
.nlb-filter-submit:focus,
.nlb-button-primary:focus,
button[type="submit"].nlb-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--nlb-accent) !important;
}

/* Pulsanti secondari */
.nlb-filter-reset {
    background-color: var(--nlb-gray-light) !important;
    color: var(--nlb-text) !important;
}

.nlb-filter-reset:hover {
    background-color: #e0e0e0 !important;
}

/* Ordinamento desktop con select nascosto e solo icona */
.nlb-sort-desktop {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.nlb-sort-select-desktop {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    color: transparent;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    font-size: 0;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 2L12 6" stroke="%23024E72" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 10L8 14L12 10" stroke="%23024E72" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    outline: none;
    transition: opacity 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.nlb-sort-select-desktop:hover {
    opacity: 0.7;
}

.nlb-sort-select-desktop:focus {
    outline: none;
}

/* Nascondi testo opzioni ma mantieni funzionalità */
.nlb-sort-select-desktop option {
    color: #333;
    font-size: 14px;
}

/* View switcher */
.nlb-view-btn {
    background-color: var(--nlb-white) !important;
    color: var(--nlb-primary) !important;
    border: 1px solid #ddd;
}

.nlb-view-btn:hover {
    background-color: var(--nlb-accent) !important;
    color: var(--nlb-primary) !important;
    border-color: var(--nlb-primary);
}

.nlb-view-btn.active {
    background-color: var(--nlb-primary) !important;
    color: var(--nlb-white) !important;
    border-color: var(--nlb-primary);
}

/* Fix SVG icons nei view switcher */
.nlb-view-btn svg {
    fill: currentColor;
}

/* Paginazione */
.nlb-pagination .current,
.nlb-pagination span.current {
    background-color: var(--nlb-primary) !important;
    border-color: var(--nlb-primary) !important;
    color: var(--nlb-white) !important;
}

.nlb-pagination a:hover,
.nlb-pagination span:not(.current):hover {
    background-color: var(--nlb-accent) !important;
    border-color: var(--nlb-primary) !important;
    color: var(--nlb-primary) !important;
}

.nlb-pagination a,
.nlb-pagination span {
    border-color: #d1d5db !important;
}

/* Link e titoli */
.nlb-card-title a {
    color: var(--nlb-text);
}

.nlb-card-title a:hover {
    color: var(--nlb-primary);
}

/* Prezzi */
.nlb-card-price {
    background-color: var(--nlb-primary);
    color: var(--nlb-white);
}

.nlb-map-popup-price {
    color: var(--nlb-primary);
}

/* Popup mappa - dimensioni compatte */
.nlb-map-popup {
    width: 250px;
}

.nlb-map-popup-image {
    height: 120px !important;
    margin-bottom: 8px !important;
}

.nlb-map-popup-title {
    font-size: 1rem !important;
    margin: 0 0 4px !important;
}

.nlb-map-popup-meta {
    margin-bottom: 8px !important;
}

.nlb-map-popup-link {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

/* Checkbox personalizzate - Stile moderno */
.nlb-checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    padding: 6px 0;
}

.nlb-checkbox-label:hover {
    color: var(--nlb-primary);
}

/* Stilizza checkbox nativa con appearance */
.nlb-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--nlb-white);
    border: 2px solid #ddd;
    border-radius: 4px;
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
    top: -1px; /* Piccolo aggiustamento per allineamento perfetto */
}

/* Hover checkbox */
.nlb-checkbox-label:hover input[type="checkbox"] {
    border-color: var(--nlb-primary);
}

/* Checkbox selezionata */
.nlb-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--nlb-primary);
    border-color: var(--nlb-primary);
}

/* Checkmark */
.nlb-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Focus per accessibilità */
.nlb-checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--nlb-accent);
}

/* Icone servizi */
.nlb-checkbox-label img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Testo servizi */
.nlb-checkbox-label span {
    line-height: 1.2;
    vertical-align: middle;
}

/* Nascondi pulsanti filtro */
.nlb-filter-actions {
    display: none !important;
}

/* Rimuovi bordi dal form filtri */
.nlb-filters-form {
    border: none !important;
}

/* Rimuovi padding/margin extra dall'ultimo gruppo */
.nlb-filter-group:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none !important;
}

/* Sidebar filtri */
.nlb-sidebar {
    background-color: var(--nlb-gray-light);
}

/* Marker mappa */
.nlb-marker-pin {
    background-color: var(--nlb-primary) !important;
}

.nlb-map-marker:hover .nlb-marker-pin {
    background-color: var(--nlb-secondary) !important;
}

/* Fix z-index per card */
.nlb-listing-card {
    position: relative;
    z-index: 1;
}

.nlb-listing-card:hover {
    z-index: 10; /* Porta la card sopra quando hover */
}

/* Fix overflow per permettere ai tooltip di uscire */
.nlb-listings-grid,
.nlb-main-container,
.nlb-card-content,
.nlb-listing-card {
    overflow: visible !important;
}

/* Amenities/Servizi */
.nlb-amenity {
    background-color: var(--nlb-accent);
    color: var(--nlb-text);
    position: relative;
    cursor: pointer;
}

/* Tooltip per servizi */
.nlb-amenity[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--nlb-text);
    color: var(--nlb-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999; /* Massimo z-index per stare sopra tutto */
    pointer-events: none;
}

/* Mostra tooltip on hover */
.nlb-amenity[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Flex wrap per mostrare tutti i servizi */
.nlb-card-amenities {
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Form elementi */
.nlb-filter-select,
input[type="date"],
select {
    border-color: #ddd;
}

.nlb-filter-select:focus,
input[type="date"]:focus,
select:focus {
    border-color: var(--nlb-primary);
    outline-color: var(--nlb-primary);
}

/* Dettagli appartamento */
.nlb-apartment-details .nlb-price {
    color: var(--nlb-primary);
    font-weight: bold;
}

/* Loading overlay */
.nlb-loading::after {
    border-top-color: var(--nlb-primary);
}

/* Gallery main image */
.nlb-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Gallery thumbnails */
.nlb-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.nlb-thumb {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex: 0 0 auto;
    position: relative;
}

.nlb-thumb:hover {
    opacity: 0.8;
}

.nlb-thumb.active {
    opacity: 1;
}

.nlb-thumb.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--nlb-primary);
}

.nlb-thumb img {
    display: block;
    width: 100px;
    height: 75px;
    object-fit: cover;
}

/* Lightbox galleria */
.nlb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlb-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.nlb-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.nlb-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px 15px;
}

.nlb-lightbox-close:hover {
    color: var(--nlb-secondary);
}

.nlb-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nlb-lightbox-prev,
.nlb-lightbox-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
    user-select: none;
}

.nlb-lightbox-prev:hover,
.nlb-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Shortcode apartment address */
.nlb-apartment-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nlb-address-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

/* Shortcode apartment price */
.nlb-apartment-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nlb-price-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--nlb-primary);
}

.nlb-price-period {
    font-size: 0.875rem;
    color: var(--nlb-text-muted);
}

/* Shortcode filtri - stile desktop */
.nlb-filters-shortcode {
    background: var(--nlb-gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Visibility helpers */
.nlb-desktop-only {
    display: block;
}

.nlb-mobile-only {
    display: none;
}

/* Filtri mobile con chips scrollabili */
.nlb-mobile-filters {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.75rem 0;
}

.nlb-filters-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.nlb-filters-chips::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.nlb-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nlb-filter-chip:hover {
    border-color: #0c4a6e;
    background: #f0f9ff;
}

.nlb-filter-chip.active {
    background: #0c4a6e;
    border-color: #0c4a6e;
    color: white;
}

.nlb-filter-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nlb-chip-label {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal per chips mobile */
.nlb-chip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.nlb-chip-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nlb-chip-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 70vh;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    transition: bottom 0.3s;
    display: flex;
    flex-direction: column;
}

.nlb-chip-modal.active {
    bottom: 0;
}

.nlb-chip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.nlb-chip-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.nlb-chip-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlb-chip-modal-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.nlb-chip-modal-content select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.nlb-chip-modal-content .nlb-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nlb-chip-modal-content .nlb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nlb-chip-modal-content .nlb-checkbox-label:hover {
    border-color: #0c4a6e;
    background: #f0f9ff;
}

.nlb-chip-modal-content .nlb-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.nlb-chip-modal-content .nlb-checkbox-label img {
    width: 24px;
    height: 24px;
}

.nlb-chip-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.nlb-chip-modal-cancel,
.nlb-chip-modal-apply {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nlb-chip-modal-cancel {
    background: #f3f4f6;
    color: #374151;
}

.nlb-chip-modal-cancel:hover {
    background: #e5e7eb;
}

.nlb-chip-modal-apply {
    background: #0c4a6e;
    color: white;
}

.nlb-chip-modal-apply:hover {
    background: #075985;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .nlb-desktop-only {
        display: none !important;
    }

    .nlb-mobile-only {
        display: block;
    }
    .nlb-filter-submit,
    .nlb-filter-reset {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nlb-lightbox-prev,
    .nlb-lightbox-next {
        font-size: 20px;
        padding: 5px 10px;
    }
    
    /* Card appartamento mobile */
    .nlb-listing-card {
        margin-bottom: 1.5rem;
    }
    
    .nlb-card-content {
        padding: 1rem;
    }
    
    .nlb-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .nlb-card-meta {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    /* Icone servizi mobile */
    .nlb-card-amenities {
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .nlb-amenity {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .nlb-amenity img {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    
    /* Toolbar mobile */
    .nlb-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    /* Prima riga: filtri e view switcher */
    .nlb-toolbar-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nlb-toolbar-right {
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .nlb-view-switcher {
        flex: 0 0 auto;
    }
    
    /* Nascondi ordinamento normale su mobile */
    .nlb-sorting-wrapper {
        display: none;
    }
    
    /* Seconda riga: conteggio risultati e ordinamento */
    .nlb-results-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: center;
    }
    
    .nlb-results-count {
        font-size: 0.875rem;
        color: #666;
        flex: 0 0 auto;
    }
    
    /* Ordinamento mobile con select stilizzato */
    .nlb-sort-mobile {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex: 0 0 auto;
        position: relative;
    }
    
    .nlb-sort-select-mobile {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background: transparent;
        border: none;
        color: transparent;
        cursor: pointer;
        padding: 0;
        width: 20px;
        height: 20px;
        font-size: 0;
        position: relative;
        background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 2L12 6" stroke="%23024E72" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 10L8 14L12 10" stroke="%23024E72" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 16px;
        outline: none;
        transition: opacity 0.3s ease;
        display: inline-block;
        vertical-align: middle;
    }
    
    .nlb-sort-select-mobile:hover {
        opacity: 0.7;
    }
    
    .nlb-sort-select-mobile:focus {
        outline: none;
    }
    
    .nlb-sort-select-mobile option {
        color: #333;
        font-size: 14px;
    }
    
    
    /* Fix tooltip nella vista lista mobile */
    .nlb-listings-list .nlb-amenity {
        position: relative;
    }
    
    .nlb-listings-list .nlb-card-amenities {
        position: relative;
        z-index: 1;
    }
}

/* ============================================
   CALENDARIO MODAL FILTRI (pagina archivio)
   ============================================ */

/* Wrapper calendario modal */
#nlb-filters-calendar-wrapper.nlb-calendar-wrapper {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 95vw;
    max-height: 90vh;
    overflow: auto;
}

/* Overlay calendario */
#nlb-calendar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    display: none;
}

/* Azioni calendario filtri */
#nlb-filters-calendar-wrapper .nlb-calendar-actions {
    display: flex;
    justify-content: space-between;
    padding: 16px 32px;
    border-top: 1px solid #eee;
}

#nlb-filters-calendar-wrapper .nlb-clear-dates {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

#nlb-filters-calendar-wrapper .nlb-clear-dates:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

#nlb-filters-calendar-wrapper .nlb-close-calendar {
    background: #0c4a6e;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

#nlb-filters-calendar-wrapper .nlb-close-calendar:hover {
    background: #075985;
}

#nlb-filters-calendar-wrapper .nlb-clear-single-date {
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: none;
}

#nlb-filters-calendar-wrapper .nlb-clear-single-date:hover {
    color: #666;
}

/* Calendario - Giorno corrente */
.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    background: rgba(214, 234, 243, 0.15) !important;
    border: 1px solid #D6EAF3 !important;
    color: #024E72 !important;
    font-weight: 600 !important;
    position: relative !important;
}

.flatpickr-day.today:hover:not(.selected):not(.startRange):not(.endRange) {
    background: rgba(214, 234, 243, 0.3) !important;
    border: 1px solid #024E72 !important;
}

/* Assicuriamoci che il calendario non abbia date preselezionate */
.flatpickr-calendar {
    /* Nessuna data preselezionata di default */
}

/* Fix mappa pagina singolo appartamento */
.nlb-location {
    margin: 40px 0;
    display: block !important;
    width: 100% !important;
}

#nlb-single-map {
    height: 400px !important;
    min-height: 400px !important;
    width: 100% !important;
    border: 1px solid #D6EAF3 !important;
    border-radius: 8px;
    overflow: hidden;
}

/* Assicura che i figli della mappa riempiano lo spazio */
#nlb-single-map > div,
#nlb-single-map iframe {
    height: 100% !important;
    width: 100% !important;
}

