/* ==========================================================================
   Taz Imóveis - CSS Otimizado
   ========================================================================== */

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--gray-800); background: #fff; line-height: 1.5; }

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Layout */
.container { width: 100%; min-width: 100%; margin: 0 !important; padding: 0 4rem !important; }

/* Header */
.sticky-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }
.logo img { width: 120px; height: auto; }

/* Navigation */
.navbar-nav .nav-link { padding: var(--space-sm) var(--space-md); font-weight: 500; }
.dropdown-mega { min-width: 600px; max-width: 90vw; padding: var(--space-lg); border-radius: 0.5rem; box-shadow: var(--shadow-lg); }
@media (max-width: 768px) {
    .dropdown-mega { min-width: 100%; position: static !important; }
}

/* Hero Section */
.hero {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100vh;
    min-width: 100%;
    width: 100%;

    background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c")
        center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0) 70%
    );
}

.search-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
}
.tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.tabs .active {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.subtabs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.subtabs a {
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #6b7280;
}
.subtabs a.active {
    color: #1f4fff;
    border-bottom: 2px solid #1f4fff;
    padding-bottom: 4px;
}
.last-search {
    background: #f1f5ff;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.field {
    margin-bottom: 12px;
}
.field input,
.field select {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
.row {
    display: flex;
    gap: 12px;
}
.search-btn {
    width: 100%;
    background: #1f4fff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    cursor: pointer;
}
.search-btn:hover {
    background: #163ad6;
}

/* FEATURE CARDS */
.feature-cards {
    padding: 3.5rem 3.5rem;
    background: #fff;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}
.feature-card {
    min-width: 260px;
    background: #ecddd4;
    border-radius: 28px;
    padding: 2rem 1.5rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.feature-card h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}
.feature-card .link {
    font-weight: 500;
    color: #6b7280;
}

.link a{
    text-decoration: none;

}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
/* Logo fragment inspired shapes */
.icon-a {
    background: linear-gradient(135deg, #0b2540 50%, transparent 50%);
}
.icon-a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 50%;
    background: #ff6a3d;
}
.icon-b {
    background: linear-gradient(135deg, #ff6a3d 50%, transparent 50%);
}
.icon-b::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 50%;
    background: #0b2540;
}
.icon-c {
    background: linear-gradient(90deg, #0b2540 50%, #ff6a3d 50%);
}
.icon-d {
    background: linear-gradient(135deg, #0b2540 50%, #ff6a3d 50%);
}


/* Property Cards */
.property-card { border: 1px solid var(--gray-200); border-radius: 0.5rem; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.property-card:hover .property-img img { transform: scale(1.05); }

/* Forms */
.form-control { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--gray-300); border-radius: 0.375rem; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* Utilities */
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loading { opacity: 0.6; pointer-events: none; position: relative; }
.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: loading 1.5s infinite; }

.site-footer {
    background: #f6f7f8;
    padding: 60px 40px 30px;
    font-size: 14px;
    color: #333;
}
.footer-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 60px;
}
.footer-brand p {
    max-width: 420px;
    line-height: 1.6;
    margin: 20px 0;
}
.footer-logo-box {
    background: #fff;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    display: grid;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin: 2.1rem;
    padding: 2rem;
}
.footer-brand img {
    max-width: 160px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-size: 15px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
}
.footer-col a:hover {
    text-decoration: underline;
}
.footer-bottom {
    max-width: 1300px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links a {
    margin-right: 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.footer-social a {
    margin-left: 16px;
    font-size: 20px;
    color: #333;
}
.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

@media (max-width: 900px) {
        .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.95); color: #fff; padding: 1.5rem; z-index: 9999; transform: translateY(100%); transition: transform 0.3s ease; }
.cookie-banner.show { transform: translateY(0); }

/* Print Styles */
@media print {
    .no-print, .cookie-banner, .navbar-toggler { display: none !important; }
    a[href]::after { content: " (" attr(href) ")"; }
}

@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .property-media .nav {
        padding: 6px 8px;
        font-size: 18px;
    }
}


@media (max-width: 900px) {
    .hero {
        padding: 24px;
    }
    .search-card {
        width: 100%;
    }
}