/* Stili per la mappa delle proprietà */

.ciaobooking-property-map-container {
    width: 100% !important;
    margin: 0 auto;
    padding: 20px;
}

.ciaobooking-map-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.ciaobooking-map-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Filtri mappa */
.ciaobooking-map-filters {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
}

#ciaobooking-map-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ciaobooking-map-filter-group {
    flex-grow: 1;
    margin-right: 15px;
}

.ciaobooking-map-filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.ciaobooking-map-filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ciaobooking-filter-submit {
    background-color: #000000;
    color: #ffce00;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ciaobooking-filter-submit:hover {
    background-color: #ffce00;
}

/* Contenuto mappa */
/* Stili più moderni e responsivi */
.ciaobooking-map-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-height: 600px;
}

.ciaobooking-map-property-list {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #000 #f1f1f1;
}
.list-property-textual {
padding:10px;
  
}
.ciaobooking-list-property {
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
  
}

.ciaobooking-list-property:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.list-property-thumbnail {
    
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.list-property-thumbnail img {
    width: 100%;
    height: 11em !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-property-thumbnail img:hover {
    transform: scale(1.1);
}

/* Stile marker personalizzato */
.custom-marker {
    background-color: #ff5a5f;
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ciaobooking-map-content {
        flex-direction: column;
    }

    .ciaobooking-map-property-list {
        flex: 1;
        max-height: 300px;
    }

    #ciaobooking-map-filter-form {
        flex-direction: column;
        gap: 10px;
    }

    .ciaobooking-map-filter-group {
        width: 100%;
        margin-right: 0;
    }
}
.ciaobooking-map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ciaobooking-map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}.custom-marker {
    background-color: #FF5A5F;
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.ciaobooking-map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ciaobooking-map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ciaobooking-map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    z-index: 1100;
}

.ciaobooking-airbnb-info-window {
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.ciaobooking-airbnb-info-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ciaobooking-airbnb-info-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ciaobooking-airbnb-info-content {
    padding: 15px;
}

.ciaobooking-airbnb-info-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.ciaobooking-airbnb-info-price {
    font-size: 16px;
    color: #FFce00;
    margin-bottom: 10px;
}

.ciaobooking-airbnb-view-button {
    display: inline-block;
    background-color: #FFce00;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ciaobooking-airbnb-view-button:hover {
    background-color: #FF3B5F;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-marker {
        font-size: 12px;
        padding: 3px 8px;
    }

    .ciaobooking-map-loading-spinner {
        width: 40px;
        height: 40px;
    }

    .ciaobooking-airbnb-info-window {
        max-width: 250px;
    }

    .ciaobooking-airbnb-info-thumbnail {
        height: 150px;
    }

    .ciaobooking-airbnb-info-content {
        padding: 10px;
    }

    .ciaobooking-airbnb-info-content h3 {
        font-size: 16px;
    }

    .ciaobooking-airbnb-info-price {
        font-size: 14px;
    }

    .ciaobooking-airbnb-view-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

                /* Modifiche prioritarie al layout della mappa */
                .ciaobooking-map-content {
                    display: flex !important;
                    gap: 20px !important;
                    position: relative !important;
                    height: 800px !important; 
                }

                /* Mappa a 100% in altezza */
                .ciaobooking-property-map {
                    flex: 0.7 !important;
                    height: 100% !important;
                    position: sticky !important;
                    top: 20px !important;
                }

                /* Lista proprietà con scroll indipendente */
                .ciaobooking-map-property-list {
                    flex: 1 !important;
                    max-width: 70% !important;
                    overflow-y: auto !important;
                    max-height: 100% !important;
                    min-height: 600px !important;
                }

                /* Griglia a 3 colonne per le proprietà */
                .ciaobooking-list-items {
                    display: grid !important;
                    grid-template-columns: repeat(3, 1fr) !important;
                    gap: 24px !important;
                    padding: 16px !important;
                }

                /* Migliora l'aspetto delle card */
                .ciaobooking-list-property {
                    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
                    border-radius: 12px !important;
                    overflow: hidden !important;
                    transition: transform 0.2s, box-shadow 0.2s !important;
                    background: white !important;
                }

                .ciaobooking-list-property:hover {
                    transform: translateY(-2px) !important;
                    box-shadow: 0 8px 16px rgba(0,0,0,0.12) !important;
                }

                /* Responsive */
                @media (max-width: 1200px) {
                    .ciaobooking-list-items {
                        grid-template-columns: repeat(3, 1fr) !important;
                    }
                }

                @media (max-width: 992px) {
                    .ciaobooking-map-content {
                        flex-direction: column !important;
                        height: auto !important;
                    }
                    
                    .ciaobooking-property-map,
                    .ciaobooking-map-property-list {
                        width: 100% !important;
                        max-width: 100% !important;
                    }
                    
                    .ciaobooking-property-map {
                        height: 500px !important;
                        position: relative !important;
                    }
                }

                @media (max-width: 480px) {
                    .ciaobooking-list-items {
                        grid-template-columns: 1fr !important;
                    }
                }
  