:root {
    --primary: #003d82;
    --secondary: #4dd0e1;
    --white: #fff;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --text-color: #555;
    --border-color: #e0e0e0;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    background: url('header-bg-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    height: 100px; /* Ajustado para acomodar melhor a logo */
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-logo-img {
    height: auto;
    max-height: 80px; /* Ajustado para não tocar nas bordas */
    width: auto;
    object-fit: contain;
    display: block;
    z-index: 101;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Menu para a direita */
}



.company-info h1 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

.company-info p {
    font-size: 0.75rem;
    color: var(--secondary);
    margin: 0;
}

@media (max-width: 480px) {
    .header-top {
        height: 100px;
    }

    .logo {
        height: 40px;
    }

    .company-info h1 {
        font-size: 1rem;
    }

    .company-info p {
        font-size: 0.65rem;
    }
}



.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(77, 208, 225, 0.2);
    color: var(--secondary);
}

.nav-buttons-item {
    margin-left: auto;
}

.btn-whatsapp {
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px; /* Reduzido em ~35% */
    border-radius: 4px;
    margin: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.6rem; /* Reduzido de 0.9rem para 0.6rem (~35%) */
}

.btn-whatsapp:hover {
    background-color: #002a5c;
    transform: translateY(-2px);
}

.main-content {
    padding: 40px 0;
}

.search-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary);
}

.search-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.search-card p {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.3);
}

.filter-actions {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: 5px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #002a5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 42, 92, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-contact {
    background-color: var(--primary);
    color: var(--white);
}

.btn-contact:hover {
    background-color: #002a5c;
}

.results-info {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--secondary);
    border-radius: 6px;
}

.results-info h3 {
    margin: 0;
    color: var(--primary);
}

.carousel-section {
    margin-bottom: 60px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.carousel-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    background-color: var(--white);
    color: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
}

.property-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background-color: var(--light-gray);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.property-transaction-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-venda {
    background-color: var(--danger);
    color: var(--white);
}

.badge-locacao {
    background-color: var(--warning);
    color: var(--white);
}

.property-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.property-city {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.property-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.property-badge-inline {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.property-badge-inline.badge-venda {
    background-color: var(--danger);
    color: var(--white);
}

.property-badge-inline.badge-locacao {
    background-color: var(--warning);
    color: var(--white);
}

.property-code-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 61, 130, 0.85);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-garage {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.property-actions {
    margin-top: auto;
}

.property-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 12px;
}

.properties-grid {
    margin-top: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.property-card-grid {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--secondary);
    width: 30px;
    border-radius: 6px;
}

.property-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.property-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.modal-gallery {
    position: relative;
    height: 400px;
    background-color: var(--light-gray);
    overflow: hidden;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-gallery-prev {
    left: 20px;
}

.modal-gallery-next {
    right: 20px;
}

.modal-gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 15px 0;
}

.modal-location {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 20px 0;
}

.modal-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-badge-venda {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.modal-badge-locacao {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 12px;
}

.modal-detail-item {
    text-align: center;
}

.modal-detail-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.modal-detail-label {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.modal-amenities {
    margin-bottom: 20px;
}

.modal-amenities h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
}

.amenity-item.active {
    background-color: rgba(77, 208, 225, 0.1);
    color: var(--secondary);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
}

.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
    margin-top: 0;
}

.footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .carousel-header h2 {
        font-size: 1.5rem;
    }

    .modal-gallery {
        height: 300px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.6rem;
    }

    .modal-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-top {
        height: 100px;
    }

    .carousel-header h2 {
        font-size: 1.3rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .search-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .search-card h2 {
        font-size: 1.3rem;
    }

    .search-card p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .search-filters {
        gap: 12px;
    }

    .filter-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .filter-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .filter-actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .property-image {
        height: 150px;
    }

    .property-info {
        padding: 12px;
    }

    .property-title {
        font-size: 0.95rem;
    }

    .property-price {
        font-size: 1.1rem;
    }

    .property-details {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 0.75rem;
    }

    .modal-content {
        border-radius: 12px 12px 0 0;
    }

    .modal-gallery {
        height: 250px;
    }

    .modal-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-price {
        font-size: 1.4rem;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: row;
        gap: 0;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .nav-link {
        padding: 10px 8px;
        width: auto;
        font-size: 0.75rem;
        text-align: center;
    }

    .nav-buttons-item {
        margin-left: 0;
        width: auto;
    }

    .btn-whatsapp {
        margin: 5px 0;
        padding: 8px 10px;
        width: auto;
        justify-content: center;
        font-size: 0.7rem;
        gap: 4px;
    }
}


/* Header Responsivo */
@media (max-width: 1024px) {
    .header {
        padding: 20px 0;
    }
    
    .header-logo img {
        height: 100px;
    }
    
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-logo img {
        height: 80px;
    }
    
    .header-nav {
        width: 100%;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .header-logo img {
        height: 70px;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .btn-whatsapp {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}


/* Footer Container */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

/* Agente Credenciado no Rodapé */
.footer-credenciado {
    text-align: center;
}

.credenciado-title {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
}

.credenciado-logos {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.credenciado-btn {
    display: inline-block;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.credenciado-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.credenciado-btn img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .credenciado-logos {
        flex-wrap: wrap;
    }
    
    .credenciado-btn img {
        width: 70px;
        height: 70px;
    }
}
