/* Pulsante applica filtri su mobile */
#apply-filters-mobile {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    z-index: 1002;
    border-radius: 0;
    font-family: 'Nunito', sans-serif;
}

#toscana-mapper-filters {
    padding-bottom: 60px;
}

#toscana-mapper-results-container {
    padding-bottom: 60px;
}

#toscana-mapper-map-container {
    padding-bottom: 60px;
}

/* Contenitore principale */
#toscana-mapper-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
    transition: margin-top 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

/* Pulsante principale dei filtri su mobile */
.main-button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.main-filter-button, .main-map-button {
    flex: 1;
    background-color: #3498DB;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

.main-map-button {
    background-color: #e67e22;
}

.main-filter-button:hover {
    background-color: #2980B9;
}

.main-map-button:hover {
    background-color: #d35400;
}

/* Contenitore della mappa con margine superiore */
.margin-top-adjust {
    margin-top: 105px;
}

/* Contenitore dei risultati */
#toscana-mapper-results-container {
    flex: 1 1 50%;
    padding-right: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    /* max-height: calc(100vh - 150px);  Imposta l'altezza massima per consentire lo scrolling */
}

/* Contenitore dei filtri */
#toscana-mapper-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    padding: 15px;
}

/* Filtri dropdown e checkbox */
.filter-dropdown, .filter-checkbox, .apply-filters-button {
    flex: 1;
    min-width: 200px;
}

/* Checkbox dei filtri */
.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1px;
}

/* Contenitore dei risultati */
#toscana-mapper-results {
    overflow: visible;
    height: auto;
}

/* Contenitore della mappa */
#toscana-mapper-map-container {
    flex: 1 1 50%;
    position: sticky;
    top: 0;
    height: 105vh;
    z-index: 10;
}

/* Mappa */
#toscana-mapper-map {
    width: 100%;
    height: 100%;
}

/* Grid dei risultati */
.toscana-mapper-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    overflow: auto;
}

/* Item della grid */
.toscana-mapper-item {
    border: 1px solid #ddd;
    padding: 0;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    width: calc(50% - 10px);
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 25px;
}

.toscana-mapper-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.toscana-mapper-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toscana-mapper-item:hover::after {
    opacity: 1;
}

.toscana-mapper-item > * {
    position: relative;
    z-index: 2;
}


.toscana-mapper-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.toscana-mapper-item .location {
    font-size: 1em;
    color: #54595F;
    padding: 0 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.toscana-mapper-item .location i {
    color: #FF5722;
}

.toscana-mapper-item h2 {
    color: #54595F;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0;
    font-size: 1.4444444444444rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3em;
    padding: 0 15px;
}

.toscana-mapper-item .info {
    font-size: 1em;
    color: #333;
    padding: 0 15px;
    margin-bottom: 10px;
    text-align: center;
}

.toscana-mapper-item .category {
    font-size: 1em;
    color: #005A87;
    padding: 0 15px;
    margin-bottom: 10px;
    text-align: center;
}

.toscana-mapper-item .category .category-label {
    display: block;
    font-weight: bold;
}

.toscana-mapper-item .sports-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.toscana-mapper-item .sports-icons i {
    margin: 0 5px;
}

.toscana-mapper-item .btn-info {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    width: 100%;
    display: none;
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a, .pagination .current {
    padding: 10px 15px;
    margin: 0 5px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pagination a:hover {
    background: #005a87;
}

.pagination .current {
    background: #005a87;
    font-weight: bold;
    color: white;
    cursor: default;
    pointer-events: none;
}

/* Bottone filtro */
.filter-button {
    background-color: #3498DB;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%;
    text-align: left;
}

.filter-button:hover {
    background-color: #2980B9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contenitore dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

/* Contenuto del dropdown */
.filter-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    max-height: 400px;
    overflow-y: auto!important;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    padding-bottom: 15px;
}


/* Stili per il dropdown a risoluzioni alte */
@media (min-width: 992px) {
    .filter-content {
        max-height: 600px;
    }

    .filter-heading {
        display: none;
    }

    .close-filters-button {
        display: none!important;
    }

    #apply-filters-mobile {
        display: none;
    }
}

/* Pulsante Applica nel dropdown */
.apply-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e67e22;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.apply-button:hover {
    background-color: #d35400;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pulsante Applica nella finestra dei filtri */
#apply-filters-button {
    display: block;
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 20px auto;
    text-align: center;
    width: 100px;
}

/* Links inside the dropdown */
.filter-content label {
    color: black;
    padding: 4px 15px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 18px;
}

.filter-content label:hover {
    background-color: #f1f1f1;
    color: #3498DB;
}

/* Keep dropdown open on click */
.filter-dropdown.open .filter-content {
    display: block;
}

/* Styling for checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Apply filters button */
.apply-filters-button {
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.apply-filters-button:hover {
    background-color: #d35400;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Stili per la finestra di informazioni personalizzata */
.custom-info-window {
    width: 300px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: absolute;
}

@media only screen and (max-width: 768px) {
    .custom-info-window {
        width: 300px;
        background: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
        position: fixed;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }
}

/* Rimosso transform scale hover che causava spostamento del modal */

.info-window-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.info-window-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.info-window-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.info-window-content {
    padding: 15px;
    text-align: left;
}

.info-window-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.info-window-address {
    font-size: 12px;
    color: #ff5722;
    margin-bottom: 8px;
}

.info-window-description {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}

.close-info-window {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Responsive design */
@media (max-width: 768px) {
    #toscana-filter-city .filter-content {
        display: block !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
        padding-bottom: 0;
        margin-top: 10px;
    }

    #toscana-filter-city .filter-content label {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    #toscana-filter-city .filter-button {
        display: none;
    }
    #reset-filters-button.desktop-reset {
        display: none;
    }

    #reset-filters-button.mobile-reset {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    #toscana-mapper-filters {
        display: none;
        background: white;
        padding: 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        border-radius: 0;
    }

    #toscana-mapper-filters.show-filters {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .filter-overlay.show {
        display: block;
    }

    /* Pulsante principale dei filtri su mobile */
    .main-filter-button {
        display: block;
        background-color: #3498DB;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Pulsante principale per mostrare la mappa su mobile */
    .main-map-button {
        display: block;
        background-color: #e67e22;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Pulsante applica filtri su mobile */
    #apply-filters-mobile {
        display: block;
        background-color: #e67e22;
        color: white;
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        margin: 0px auto;
        text-align: center;
        width: calc(100% - 180px); /* 20px padding per lato */
        box-sizing: border-box;
    }

    div#my-agile-privacy-consent-again {
        display: none !important;
    }

    /* Risultati in una colonna su mobile */
    .toscana-mapper-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .toscana-mapper-item {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Contenitore principale che include i pulsanti Filtri e Mappa sopra i risultati */
    #toscana-mapper-results-container {
        width: 100%;
        order: 2;
    }

    #toscana-mapper-map-container {
        display: none;
    }

    #toscana-mapper-map-container.show-map {
        display: block;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    #toscana-mapper-results-container.hide-results {
        display: none;
    }

    .mobile-filter-button,
    .main-map-button {
        display: block;
        width: 100%;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        margin-bottom: 10px;
    }

    .main-filter-button,
    .main-map-button {
        display: block;
        width: 100%;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Pulsante di chiusura della mappa */
    .close-map-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.8);
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Pulsante per aprire il modal */
.mobile-filter-button {
    display: none;
    background-color: #3498DB;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

/* Stili per il modal */
.mobile-filter-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.mobile-filter-modal.open {
    display: block;
}

.mobile-filter-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.gm-fullscreen-control {
    display: block !important;
    left: 10px !important;
    right: auto !important;
}

@media (max-width: 767px) {
    .gm-fullscreen-control {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }
    .gm-fullscreen-control img {
        width: 18px;
        height: 18px;
    }
}

.toscana-mapper-item {
    text-decoration: none !important;
}

#toscana-filter-zona {
    display: none;
}

/* Pulsante principale dei filtri */
.main-filter-button {
    display: none;
    background-color: #3498DB;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 48%;
    margin-bottom: 10px;
    margin-right: 4%;
}

/* Dropdown per i filtri */
.main-filter-dropdown {
    display: none;
    background-color: #ffffff;
    position: absolute;
    width: 100%;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px;
    box-sizing: border-box;
}

/* Pulsante per mostrare la mappa */
.main-map-button {
    display: none;
    background-color: #e67e22;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 48%;
    margin-bottom: 10px;
}

/* Mappa nascosta su dispositivi mobili */
@media (max-width: 768px) {
    #toscana-mapper-container {
        display: block;
    }

    .filter-heading {
        background-color: #1cadd9;
        color: white;
    }

    .filter-content {
        margin-top: 25px !important;
    }

    div#toscana-mapper-container {
        /*margin-right: 15px;*/
        margin-left: 15px;
    }

    /* Pulsante principale dei filtri su mobile */
    .main-filter-button {
        display: block;
        background-color: #3498DB;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Pulsante principale per mostrare la mappa su mobile */
    .main-map-button {
        display: block;
        background-color: #e67e22;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Contenitore dei risultati */
    #toscana-mapper-results-container {
        width: 100%;
        order: 2;
    }

    /* Risultati in una colonna su mobile */
    .toscana-mapper-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .toscana-mapper-item {
        width: 100%;
        max-width: 500px;
        margin-bottom: 10px;
    }

    #toscana-mapper-map-container {
        display: none;
    }

    #toscana-mapper-map-container.show-map {
        display: block;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    #toscana-mapper-results-container.hide-results {
        display: none;
    }

    .mobile-filter-button,
    .main-map-button {
        display: block;
        width: 100%;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        margin-bottom: 10px;
    }

    .main-filter-button,
    .main-map-button {
        display: block;
        width: 100%;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Pulsante di chiusura della mappa */
    .close-map-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.8);
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Pulsante di chiusura della mappa */
.close-map-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
}

.hide-results {
    display: none;
}

/* Pulsante principale per Filtri e Mappa */
.main-filter-button, .main-map-button {
    display: none;
    background-color: #3498DB;
    color: white;
    padding: 10px 10px; /* Ridotto padding per adattarsi alla stessa riga */
    font-size: 14px; /* Ridotta dimensione del testo */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 48%; /* Larghezza ridotta per adattarsi alla stessa riga */
    margin-bottom: 10px;
    margin-right: 4%; /* Spaziatura tra i pulsanti */
}


/* Stili per visualizzare i filtri su mobile */
#toscana-mapper-filters.show-filters {
    display: block;
}

.close-filters-button {
    position: absolute;
    top: -5px;
    left: 10px;
    background-color: #E67E22;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 05px 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    height: auto;
}

.close-filters-button:hover {
    background-color: #D35400;
}

@media (max-width: 768px) {

    .filter-checkboxes {
        margin-bottom: 50px;
    }

    #toscana-mapper-filters {
        display: none;
        background: white;
        padding: 20px;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
    }

    #toscana-mapper-filters.show-filters {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .filter-overlay.show {
        display: block;
    }

    /* Mostra i checkbox direttamente nei filtri su mobile */
    #toscana-filter-sport .filter-content,
    #toscana-filter-category .filter-content,
    #toscana-filter-zona .filter-content {
        display: block !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
        padding-bottom: 0;
        margin-top: 10px;
    }

    #toscana-filter-sport .filter-content label,
    #toscana-filter-category .filter-content label,
    #toscana-filter-zona .filter-content label {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    /* Nascondi i pulsanti dei dropdown su mobile */
    #toscana-filter-sport .filter-button,
    #toscana-filter-category .filter-button,
    #toscana-filter-zona .filter-button {
        display: none;
    }

    /* Pulsante principale dei filtri su mobile */
    .main-filter-button {
        display: block;
        background-color: #3498DB;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Pulsante principale per mostrare la mappa su mobile */
    .main-map-button {
        display: block;
        background-color: #e67e22;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Pulsante applica filtri su mobile */
    #apply-filters-mobile {
        position: fixed;
        bottom: 0;
        left: 39%;
        transform: translateX(-50%);
        width: 50%;
        background-color: #e67e22;
        color: white;
        padding: 15px 15px;
        font-size: 20px;
        border: none;
        cursor: pointer;
        text-align: center;
        box-sizing: border-box;
        z-index: 1002;
        border-radius: 10px 10px 0 0;
    }

    #toscana-mapper-filters {
        padding-bottom: 60px;
    }

    #toscana-mapper-results-container {
        padding-bottom: 60px;
    }

    #toscana-mapper-map-container {
        padding-bottom: 60px;
    }

    /* Pulsante principale dei filtri su mobile */
    .main-button-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: white;
        padding: 10px 15px;
        border-top: 1px solid #ddd;
        z-index: 1001;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        margin: 0;
    }

    .main-filter-button,
    .main-map-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-filter-button i,
    .main-map-button i {
        margin-right: 8px;
    }

    #toscana-mapper-container {
        padding-bottom: 70px;
    }

    #ast-scroll-top {
        margin-bottom: 35px;
    }

}

#reset-filters-button {
    background-color: #f39c12;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reset-filters-button i {
    margin-right: 8px;
}

#reset-filters-button:hover {
    background-color: #e67e22;
}

@media (min-width: 769px) {
    .filter-checkboxes {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #reset-filters-button.desktop-reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 5px 10px;
        font-size: 14px;
        width: 250px;
    }

    #reset-filters-button.mobile-reset {
        display: none;
    }
}

#reset-filters-button {
    background-color: #f39c12;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#reset-filters-button:hover {
    background-color: #e67e22;
}

#reset-filters-button i {
    margin-right: 5px;
}

.filter-button::after {
    content: '\f0d7';
    font-family: 'FontAwesome';
    margin-left: 10px;
    transition: transform 0.3s;
}

.filter-dropdown.open .filter-button::after {
    transform: rotate(180deg);
}

.no-underline {
    text-decoration: none !important;
}

.no-underline:hover,
.no-underline:focus {
    text-decoration: none !important;
}

.main-close-button {
    display: none;
}

button.mobile-filter-button.main-close-button {
    width: 50%;
    background-color: red;
}

@media (min-width: 769px) {
    #toscana-mapper-container {
        position: relative;
    }

    #toscana-mapper-filters {
        position: relative;
        z-index: 1000;
    }

    #toscana-mapper-results-container {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    .toscana-mapper-grid {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    .toscana-mapper-item {
        position: relative;
        z-index: 1;
    }

    .filter-dropdown {
        position: relative;
        z-index: 1001;
    }

    .filter-content {
        position: absolute;
        z-index: 1002;
    }

    #toscana-mapper-map-container {
        z-index: 2;
    }

    .filter-dropdown.open .filter-content {
        display: block !important;
    }
}

body {
    overflow-x: hidden;
}

.close-dropdown-button {
    display: none;
    width: 100%;
    padding: 10px;
    background-color: #FEA100;
    color: white;
    border: none;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.close-dropdown-button:hover {
    background-color: #E67E22;
}

@media screen and (min-width: 768px) {
    .close-dropdown-button.desktop-only {
        display: block;
    }
}

.custom-info-window, 
.custom-info-window * {
    font-family: 'Nunito';
}
