/* ---------- Estilo Geral ---------- */
#unidades {
    display: flex;
    gap: 20px;
}

#unidades input,
#unidades select {
    border: solid 2px #111111;
    border-radius: 100px;
    height: 65px;
    padding: 0px 0px 0px 30px;
    font-family: "Lato", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    width: 25%;
}

.unidades--sub-title{
	margin-bottom:75px!important;
}

#unidades input[type="text"] {
    border: solid 2px #DE865B;
}

#unidades input[type="text"]::placeholder {
    color: #DE865B !important;
}

#unidades select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 20px;
    background-image: url('https://ondawebhost3.com.br/dentalarte/wp-content/uploads/2024/11/seta-baixo.webp');
    background-repeat: no-repeat;
    background-size: 24px;
    background-position-y: center;
    background-position-x: 90%;
}

/* ---------- Botão e Links ---------- */
.elementor-shortcode .unidades .unidades--botao {
    width: 25%;
}

.elementor-shortcode .unidades a {
    border: solid 2px #111111;
    border-radius: 100px;
    font-family: "Lato", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    font-size: 14px;
    color: #111 !important;
    text-decoration: none;
    width: 100%;
    padding: 22px;
    text-align: center;
}

/* ---------- Layout Geral ---------- */
.elementor-shortcode .unidades {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    margin-bottom: -150px;
}

.elementor-shortcode .unidades .wrap {
    max-width: 1000px;
    padding: 75px 15px;
    margin: 0 auto;
}

/* ---------- Títulos ---------- */
.unidades--title {
    font-size: 60px;
    text-align: center;
    line-height: 70px;
    margin-bottom: 0px;
    max-width: 1000px;
    margin: 0 auto;
}

.unidades--sub-title {
    font-size: 25px;
    text-align: center;
}

/* ---------- Container de Listagem ---------- */
.unidades-list-container {
    background-color: #DE865B;
    padding-top: 150px;
    padding: 15px;
    padding-bottom: 150px;
}

.unidades-list-container div {
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- Spinner de Carregamento ---------- */
#loading-spinner {
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

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

/* ---------- Lista de Unidades ---------- */
#unidades-list {
    display: flex;
    flex-wrap: wrap;
    color: #fff;
    gap: 30px;
    font-size: 20px;
    margin-top: 300px;
}

#unidades-list .unidade-item {
    border: 2px solid #fff;
    margin: 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 0px 50px 60px 50px;
    width: 48%;
}

#unidades-list .unidade-item img {
    margin-top: 25px;
    margin-bottom: 25px;
    max-width: 250px;
}

#unidades-list .unidade-item h3 {
    width: 100%;
    margin-left: 0px;
    margin-bottom: 20px;
}

#unidades-list .unidade-item h3 a{
    text-decoration: none!important;
}

#unidades-list .unidade-item a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: underline;
}

#unidades-list .unidade-item .unidade-item--image {
    width: 45%;
}

#unidades-list .unidade-item .unidade-item--endereço {
    width: 48%;
}

#unidades-list .unidade-item .unidade-item--image p {
    margin: 15px 0px;
}

#unidades-list h3 {
    color: #fff;
    font-size: 40px;
}

/* ---------- Media Queries ---------- */
@media only screen and (max-width: 1300px) {
    #unidades-list .unidade-item {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0px 25px 60px 25px;

    }

    #unidades-list .unidade-item .unidade-item--image,
    #unidades-list .unidade-item .unidade-item--endereço {
        width: 100%;
    }

    #unidades-list .unidade-item img {
        width: 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width: 1000px) {
    #unidades {
        flex-wrap: wrap;
    }

    #unidades select,
    #unidades input[type="text"],
    .elementor-shortcode .unidades .unidades--botao {
        width: 45%;
    }
}

@media only screen and (max-width: 768px) {
	.unidades-list-container{
		padding: 15px 15px 100px 15px;
	}
	.unidades--title {
    font-size: 35px!important;
		line-height:1.3em;
	}
    #unidades-list {
        flex-direction: column;
        margin-top: 250px;
    }

    #unidades-list .unidade-item {
        margin: 0px;
        padding: 25px;
    }

    #unidades-list .unidade-item h3 {
        margin-left: 0px;
        margin-bottom: 0px;
        margin-top: 0px;
        font-size: 30px;
    }

    #unidades select,
    #unidades input[type="text"],
    .elementor-shortcode .unidades .unidades--botao {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .unidade-item--endereço p {
        font-size: 16px;
        margin: 0 0 1em;
    }
    .unidade-item--image p {
        font-size: 18px;
    }
    .unidade-item--image img {
        margin: 0 !important;
        width: 90% !important;
    }
    .unidade-item h3 {
        font-size: 25px !important;
    }
}
