* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    color: #0088cc;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-text:first-child {
    margin-bottom: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0088cc;
}

.btn-primary {
    background-color: #0088cc;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Results Section */
.results-section {
    padding: 30px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.property-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-favorite,
.btn-share {
    position: absolute;
    top: 15px;
    background-color: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-favorite {
    left: 15px;
}

.btn-share {
    left: 60px;
}

.btn-favorite:hover,
.btn-share:hover {
    background-color: #fff;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: #0088cc;
}

/* Map Container */
.map-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

#map {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.map-tab {
    flex: 1;
    padding: 12px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    color: #666;
}

.map-tab.active {
    background-color: #e3f2fd;
    color: #0088cc;
    font-weight: 600;
    border-bottom: 2px solid #0088cc;
}

.map-content {
    height: 400px;
    position: relative;
}

.map-content iframe {
    width: 100%;
    height: 100%;
}

.map-address-card {
    display: none; /* Ocultar card - Google Maps já mostra o endereço */
}

.map-address-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.map-address-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.map-address-card .map-actions-inline {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.map-actions-inline a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.map-actions-inline .btn-directions {
    background-color: #0088cc;
    color: white;
}

.map-actions-inline .btn-expand {
    background-color: #f5f5f5;
    color: #666;
}

.btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-fullscreen:hover {
    background-color: #f5f5f5;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-logo h2 {
    color: #0088cc;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 12px;
    color: #bbb;
}

/* Botões de Download do App */
.app-download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.app-store-btn,
.play-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.app-store-btn {
    color: #fff;
}

.play-store-btn {
    color: #fff;
}

.app-store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.play-store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.app-store-btn i,
.play-store-btn i {
    font-size: 28px;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-btn-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.app-btn-store {
    font-size: 15px;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #0088cc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .app-download-buttons {
        flex-direction: column;
    }
    
    .app-store-btn,
    .play-store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos adicionais para melhor aparência */
.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-image::after {
    opacity: 1;
}

.btn-favorite,
.btn-share {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {.btn-favorite:hover {
    transform: scale(1.1);
    background-color: #fff;
}

.btn-share:hover {
    transform: scale(1.1);
    background-color: #fff;
}

.filter-tag {
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background-color: #bbdefb;
}

.filter-tag i:hover {
    color: #d32f2f;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Melhorias no mapa */
#map {
    position: relative;
}

.map-tabs {
    position: relative;
    z-index: 5;
}

.map-tab {
    position: relative;
}

.map-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0088cc;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.property-image img {
    background-color: #f0f0f0;
    transition: opacity 0.3s ease;
}

.property-image img:not([src]) {
    opacity: 0;
}

/* Responsividade aprimorada */
@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
}

/* Efeitos de hover melhorados */
.btn-primary:hover {
    background-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* Tooltips */
.btn-favorite:hover::before,
.btn-share:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 5px;
}


/* Estilos para página de propriedades completa */
.hero-section {
    background: linear-gradient(135deg, #0088cc 0%, #005f8d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
}

.properties-full {
    padding: 40px 0;
}

.properties-full .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filters-sidebar {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #555;
    font-weight: 600;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-group input[type="range"] {
    width: 100%;
    margin: 15px 0;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.btn-apply-filters {
    width: 100%;
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    background-color: #006699;
    transform: translateY(-2px);
}

.properties-main {
    width: 100%;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.properties-header h2 {
    font-size: 24px;
    color: #333;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.property-card-large {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 350px 1fr;
    transition: all 0.3s ease;
}

.property-card-large:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.property-image-large {
    position: relative;
    height: 280px;
}

.property-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff6b6b;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.property-content-large {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-header-large {
    margin-bottom: 10px;
}

.property-header-large h3 {
    font-size: 22px;
    color: #0088cc;
    margin-bottom: 8px;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.property-rating i {
    color: #ffc107;
    font-size: 14px;
}

.property-rating span {
    color: #666;
    margin-left: 8px;
}

.property-content-large .location {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.property-content-large .description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.property-amenities span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
}

.property-amenities i {
    color: #0088cc;
}

.property-footer-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-label {
    font-size: 13px;
    color: #666;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #0088cc;
}

.price-period {
    font-size: 14px;
    color: #666;
}

.btn-view-details {
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #0088cc;
}

.page-btn.active {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

@media (max-width: 1200px) {
    .properties-full .container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .property-card-large {
        grid-template-columns: 1fr;
    }
    
    .property-image-large {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .property-footer-large {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .btn-view-details {
        width: 100%;
    }
}


/* Scrollbar ultra minimalista */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Melhorar seleção de texto */
::selection {
    background-color: #0088cc;
    color: white;
}

::-moz-selection {
    background-color: #0088cc;
    color: white;
}

/* Animação suave para elementos que aparecem */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar foco em elementos interativos */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0088cc;
    outline-offset: 2px;
}

/* Remover outline padrão mas manter acessibilidade */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Transições suaves para todos os elementos interativos */
button,
a,
input,
select,
textarea {
    transition: all 0.3s ease;
}
