/* ===== HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-top {
    background: var(--surface);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary) !important;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.header-logo:hover {
    color: var(--primary-dark) !important;
    text-decoration: none;
}

/* ===== SEARCH BAR ===== */

.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.header-search .search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--surface);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    padding: 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: var(--primary-light);
}

.search-dropdown-item .badge {
    font-size: 0.7rem;
    background: var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
    margin-left: auto;
    text-transform: capitalize;
}

.badge-lease {
    font-size: 0.7rem;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===== NAVIGATION ===== */

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.header-nav-link:hover {
    background: var(--bg);
    color: var(--primary);
    text-decoration: none;
}

.header-nav-link.active {
    background: var(--primary);
    color: #fff;
}

.header-sell-btn {
    white-space: nowrap;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.15s;
    font-size: 0.88rem;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
}

.btn-whatsapp:hover {
    background: #1ebc58;
    color: #fff;
}

/* ===== BREADCRUMB ===== */

.breadcrumb-container {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-muted);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-light);
    margin: 0 0.5rem;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ===== FOOTER ===== */

.site-footer {
    margin-top: auto;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ===== CONTAINER ===== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== CARD ===== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .header-nav {
        gap: 0;
    }

    .header-nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.8rem;
    }

    .header-sell-btn {
        margin-left: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav {
        gap: 0.75rem;
    }
}
