.chiesa-front-box {
    text-align: center;
    margin-bottom: 2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chiesa-front-box img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#single-church-map {
    width: 100%;
    height: 300px;
    margin-bottom: 1em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chiesa-info {
    background: #f9f9f9;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.6;
}

.chiesa-info h2 {
    text-align: center;
    margin-top: 0;
}

.chiesa-voce {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.chiesa-voce strong {
    background-color: #fff;
    margin-bottom: 0.5em;
    padding: 0.5em;
    font-size: 20px;
}

.chiesa-info a:hover {
    background-color: #0090d3;
}

.chiesa-info a {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #0073aa;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 1.5em;
    text-decoration: none !important;
}

.button-section {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#btn-toggle-filter:hover {
    background-color: #f1f1f1;
}

#btn-toggle-filter {
    background-color: #e7e7e7;
    color: #000;
    border: 1px solid #000;
}

#btn-reset {
    display: none;
}

#label-regione {
    font-weight: 500;
}

#label-comune {
    font-weight: 500;
}

@media screen and (max-width: 600px) {
    .chiesa-voce strong {
        font-size: 4vw;
    }

    .button-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-section button {
        font-size: 18px;
    }

    #label-regione {
        text-align: start;
        font-size: 18px;
    }

    #filter-comune {
        font-size: 18px;
    }

    #filter-regione {
        font-size: 18px;
    }

    #label-comune {
        text-align: start;
        font-size: 18px;
    }
}

.radio-toggle {
  display: inline-flex;
  border: 2px solid #ccc;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #f7f7f7;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.radio-toggle input[type="radio"] {
  display: none;
}

.radio-toggle label {
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: #f7f7f7;
  color: #444;
  transition: all 0.3s ease;
  user-select: none;
}

.radio-toggle input[type="radio"]:checked + label {
  background-color: #007bff;
  color: #fff;
}

#filter-regione,
#filter-comune {
    padding: 0.6em 1em;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
}

#filter-regione:focus,
#filter-comune:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#label-regione,
#label-comune {;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

#btn-nearby {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#btn-nearby:hover {
    background-color: #218838;
    cursor: pointer;
}

.nearby-icon {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

.custom-cluster {
    background-color: rgba(52, 152, 219, 0.6);
    border-radius: 50%;
    border: 3px solid #2980b9;
    color: white;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(41, 128, 185, 0.5);
}

.custom-cluster-medium {
    background-color: rgba(241, 196, 15, 0.8);
    border: 3px solid #f39c12;
}

.custom-cluster-large {
    background-color: rgba(231, 76, 60, 0.85);
    border: 3px solid #c0392b;
}

.custom-cluster div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(41, 128, 185, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0); }
}

.custom-cluster div {
    animation: pulse 2s infinite;
}
