/* Definição das cores, fontes e unidades fluidas */
:root {
    --color-dark: #231F20;
    --color-accent: #D9A91A;
    --color-accent-darker: #404040;
    --color-light: #FFFFFF;
    --color-gray: #f4f4f4;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;

    /* Unidades de fonte fluidas para melhor responsividade */
    --font-size-h1: clamp(1.8rem, 5vw, 2.8rem);
    --font-size-h2: clamp(1.2rem, 4vw, 1.6rem);
    --font-size-subtitle: clamp(1rem, 3vw, 1.2rem);
    --font-size-body: clamp(0.9rem, 2.5vw, 1rem);
    --font-size-small: clamp(0.85rem, 2vw, 0.95rem);

    /* Custom property for the line fill percentage */
    --line-fill-percentage: 0%;
}

/* ============================================== */
/* ======== RESET BÁSICO E ESTILOS GLOBAIS ======== */
/* ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-gray);
    color: #333;
    line-height: 1.6;
    font-size: var(--font-size-body);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ACESSIBILIDADE */
:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================== */
/* ================ CABEÇALHO =================== */
/* ============================================== */
header {
    background-image: linear-gradient(to left, #F2E7AC, #F2BD1D, #D9A91A);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
}

.logo-container h4 {
    margin: 0;
    font-weight: 700;
    color: var(--color-dark);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding: 5px;
    margin: -5px;
    border-radius: 4px;
}

header nav a:hover {
    color: var(--color-accent);
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 5px;
    right: 5px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: calc(100% - 10px);
}

/* ============================================== */
/* ============= CONTEÚDO PRINCIPAL ============= */
/* ============================================== */
main {
    padding: 20px 0 40px 0;
}

h1 {
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 10px;
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: var(--font-size-subtitle);
    font-weight: 300;
}

/* ============================================== */
/* ===== ESTILOS DOS CONTROLES DE FILTRO ===== */
/* ============================================== */
.filter-controls {
    padding: 15px;
    margin-bottom: 50px;
    background: var(--color-accent);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.unified-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background-color: #fcfcfc;
    border-radius: 10px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.unified-search-container:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(217, 169, 26, 0.2);
}

.unified-search-container .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.unified-search-container:focus-within .search-icon {
    color: var(--color-accent);
}

#unified-search-input {
    flex: 1;
    padding: 12px 15px 12px 50px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: transparent;
    appearance: none;
    width: 100%;
}

#unified-search-input:focus {
    outline: none;
}

#unified-search-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

#region-filter-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 18px;
    background: transparent;
    border: none;
    border-left: 1px solid #eee;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

#region-filter-btn:hover {
    color: var(--color-accent);
}

#region-filter-btn i {
    transition: transform 0.3s ease;
    font-size: 1em;
}

#region-filter-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.region-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background-color: var(--color-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 10;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: 280px;
    overflow-y: auto;
}

.region-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-dropdown-content button {
    color: var(--color-dark);
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.region-dropdown-content button:last-child {
    border-bottom: none;
}

.region-dropdown-content button:hover {
    background-color: #f5f5f5;
    color: var(--color-dark);
}

.region-dropdown-content button:focus-visible {
    background-color: #f0f0f0;
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
    color: var(--color-dark);
}

.region-dropdown-content button.active-region {
    color: var(--color-accent);
    font-weight: 600;
    background-color: rgba(217, 169, 26, 0.08);
}

/* ============================================== */
/* =========== CARDS DE TERRENOS ================ */
/* ============================================== */
.listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.listing-card {
    background-color: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cards ficam invisíveis por padrão, antes da animação */
    opacity: 0; 
}

.listing-card.hidden {
    display: none;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para quando a animação é aplicada via JS */
.listing-card.animate__animated {
    opacity: 1; /* Torna o card visível quando a animação começa */
    --animate-duration: 0.7s;
}

.details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.details h2 {
    font-size: var(--font-size-h2);
    color: var(--color-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.details .location {
    color: #777;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: var(--font-size-small);
}

.details .description {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #555;
    position: relative;
    transition: max-height 0.4s ease-out;
}

.description-collapsed {
    max-height: 4.8em;
    overflow: hidden;
}

.description-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(to top, var(--color-light), transparent);
}

.read-more-btn {
    background: none;
    border: none;
    padding: 5px;
    margin: -5px -5px 15px -5px;
    font-family: var(--font-family);
    color: var(--color-accent-darker);
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    font-size: var(--font-size-small);
    border-radius: 4px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.details .info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.details .info span {
    font-size: var(--font-size-body);
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-light);
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1 1 auto;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.details .info span i {
    color: var(--color-accent-darker);
    font-size: 1rem;
}

.details .info span strong {
    color: var(--color-dark);
    font-weight: 700;
    flex-grow: 1;
    text-align: right;
}

.card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.card-actions .cta-button,
.card-actions .details-button {
    flex: 1;
    padding: 12px 10px;
    border-radius: 80px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.card-actions .cta-button:hover,
.card-actions .details-button:hover {
    transform: translateY(-2px);
}

.cta-button {
    background-color: #25D366;
    color: var(--color-light);
    border-color: #25D366;
}

.cta-button:hover {
    background-color: #20b859;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.cta-button i {
    font-size: 1.2rem;
}

.details-button {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.details-button:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(217, 169, 26, 0.4);
}

/* ================================================= */
/* === ESTILOS FINAIS PARA CARROSSEL E BOTÃO MAPA ==== */
/* ================================================= */
.visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #e9e9e9;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-images {
    width: 100%;
    height: 100%;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-images img.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 5;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-button i {
    font-size: 0.9rem;
}

.open-map-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.open-map-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

/* ============================================== */
/* =================== RODAPÉ =================== */
/* ============================================== */
footer {
    background-color: var(--color-dark);
    color: var(--color-gray);
    padding: 60px 0 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    word-break: break-word;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
}

.footer-section p {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px;
    margin: -2px;
    border-radius: 3px;
}

.footer-section a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-section i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    padding-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* ============================================== */
/* ============= ESTILOS PARA O MODAL ============= */
/* ============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    max-width: 800px;
    width: 100%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--color-dark);
    transform: scale(1.1);
}

.modal-title-text {
    font-size: var(--font-size-h2);
    color: var(--color-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

.modal-info-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    padding-left: 35px;
}

.modal-info-container::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 28px;
    bottom: 28px;
    width: 3px;
    background: linear-gradient(to bottom,
        #25D366 0%,
        #25D366 var(--line-fill-percentage),
        #e0e0e0 var(--line-fill-percentage),
        #e0e0e0 100%
    );
    border-radius: 3px;
    transition: background 0.5s ease-out;
}

.info-box {
    position: relative;
    background-color: var(--color-light);
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-box::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 28px;
    width: 15px;
    height: 15px;
    background: var(--color-accent);
    border: 3px solid var(--color-light);
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease, content 0.3s ease;
}

.info-box::after {
    content: '';
    position: absolute;
    left: -13px;
    top: 35px;
    width: 14px;
    height: 3px;
    background: #e0e0e0;
    transition: background-color 0.3s ease;
}

.info-box:first-child::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-light);
    font-size: 9px;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-box:first-child::after {
    background-color: #25D366;
}

.info-box.clicked::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-light);
    font-size: 9px;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box.clicked::after {
    background-color: #25D366;
}

.info-box:hover::before {
    background-color: #25D366;
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-light);
    font-size: 9px;
}

.info-box:hover::after {
    background-color: #25D366;
}

.info-box h3 {
    margin: 0 0 8px 0;
    color: var(--color-dark);
    font-weight: 600;
}

.info-box p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: var(--font-size-small);
}

.modal-content .cta-button {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 14px 20px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modal-content .cta-button:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        background-color: #25D366;
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
        background-color: #20b859;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        background-color: #25D366;
    }
}

.modal-content .cta-button.pulse-animation {
    animation: pulse 1.2s infinite;
}

/* ============================================== */
/* ============= ESTILOS PARA O MODAL DO MAPA ===== */
/* ============================================== */
#map-modal .modal-content {
    width: 95vw;
    height: 90vh;
    max-width: 1400px; /* Limite em telas muito grandes */
    padding: 0;
    overflow: hidden; /* Garante que o mapa não vaze */
    position: relative;
}

#map-modal-container {
    width: 100%;
    height: 100%;
    background-color: #e9e9e9; /* Fundo enquanto o mapa carrega */
}

#map-modal-title {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001; /* Acima do mapa */
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-light);
    padding: 10px 20px;
    border-radius: 0 0 8px 0;
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.4rem);
    max-width: calc(100% - 80px); /* Para não colidir com o botão de fechar */
}

#map-modal-close-btn {
    z-index: 1001; /* Acima do mapa */
    color: var(--color-light);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-modal-close-btn:hover {
    color: var(--color-dark);
    background-color: var(--color-light);
}


/* ============================================== */
/* ================ RESPONSIVIDADE ================ */
/* ============================================== */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 35px;
    cursor: pointer;
    z-index: 2000;
    background-color: transparent;
    border: none;
    padding: 0;
}

#menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    body {
        line-height: 1.5;
    }

    .container {
        padding: 0 15px;
    }

    .filter-controls {
        padding: 10px;
        margin-bottom: 30px;
    }

    #unified-search-input {
        padding: 10px 15px 10px 45px;
        font-size: 0.95rem;
    }
    .unified-search-container .search-icon {
        left: 15px;
        font-size: 0.9rem;
    }

    .region-dropdown-content {
        width: 100%;
        left: 0;
        right: auto;
    }

    header {
        padding: 10px 0;
    }

    .listings-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: left;
    }

    #menu-toggle {
        display: flex;
    }

    nav#main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: var(--color-light);
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        padding-top: 0;
        border-radius: 0;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.15);
        z-index: 1999;
        /* TRANSIÇÃO DO MENU ATUALIZADA */
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
    }

    nav#main-nav.active {
        right: 0;
    }

    nav#main-nav ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0;
    }

    nav#main-nav li {
        width: 100%;
        text-align: left;
    }

    nav#main-nav a {
        display: block;
        padding: 18px 25px;
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        margin: 0;
    }

    nav#main-nav li:first-child a {
        border-top: 1px solid #f0f0f0;
    }

    header nav a::after {
        display: none;
    }

    #menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    #menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title-text {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        margin-bottom: 20px;
    }

    .info-box {
        padding: 18px;
    }

    .info-box h3 {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .info-box p {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
    }

    .modal-content .cta-button {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .details {
        padding: 20px;
    }

    .logo {
        height: 45px;
    }

    .logo-container h4 {
        
        font-size: 1.0rem;
    }

    #region-filter-btn {
        padding: 0 12px;
    }

    .card-actions {
        flex-direction: column-reverse;
    }

    .card-actions .details-button {
        background-color: var(--color-accent);
        color: var(--color-light);
    }

    /* PADDING DOS BOTÕES AUMENTADO */
    .card-actions .cta-button,
    .card-actions .details-button {
        padding: 14px 20px;
    }

    .open-map-btn {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title-text {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        margin-bottom: 20px;
    }

    .info-box {
        padding: 18px;
    }

    .info-box h3 {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .info-box p {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
    }

    .modal-content .cta-button {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

@media (max-width: 360px) {
     .logo-container h4 {
        display: none;
    }

    .details .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .details .info span {
        width: 100%;
        justify-content: space-between;
    }
    .details .info span strong {
        text-align: right;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-info-container {
        padding-left: 30px;
        gap: 20px;
    }

    .info-box::before {
        left: -25px;
    }

    .info-box::after {
        left: -10px;
    }

    .modal-title-text {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .info-box h3 {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .info-box p {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }
    
    .modal-content .cta-button {
        font-size: 0.9rem;
        padding: 10px 10px;
    }
}

/* ============================================== */
/* ===== ESTILOS PARA O BOTÃO DE OCULTAR VLIBRAS ===== */
/* ============================================== */
#vlibras-hide-btn {
    position: fixed;
    width: 24px;
    height: 24px;
    background-color: #333;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 2147483647;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.7;
}

#vlibras-hide-btn:hover {
    background-color: #000;
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================== */
/* ===== MELHORIAS DE FEEDBACK DE TOQUE (:active) ===== */
/* ============================================== */
.cta-button:active,
.details-button:active,
.carousel-button:active,
.open-map-btn:active,
#menu-toggle:active,
.modal-close:active,
.region-dropdown-content button:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* ============================================== */
/* ===== ESTILOS PARA O BOTÃO FLUTUANTE DE WHATSAPP ===== */
/* ============================================== */
#floating-whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    align-items: flex-start; /* Alinha o 'x' no topo */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

#floating-whatsapp-btn {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#floating-whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

#floating-whatsapp-btn i {
    font-size: 2rem;
}

#close-floating-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #333;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 22px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#close-floating-btn:hover {
    transform: scale(1.15);
    background-color: #c0392b;
}

/* Animação para esconder o botão */
#floating-whatsapp-container.hidden {
    transform: scale(0);
    opacity: 0;
}


/* Ajustes de responsividade para o botão flutuante */
@media (max-width: 480px) {
    #floating-whatsapp-container {
        bottom: 15px;
        right: 15px;
    }

    #floating-whatsapp-btn {
        width: 55px;
        height: 55px;
    }

    #floating-whatsapp-btn i {
        font-size: 1.8rem;
    }

    #close-floating-btn {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
        line-height: 20px;
    }
}