/* ---------------------------------------------------- */
/* --- ESTILOS DEL HEADER (Navigation Bar) --- */
/* ---------------------------------------------------- */

.logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

header {
    background-color: var(--header-bg);
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-end;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Estilo para el contador de propiedades en el menú */
.property-count {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    top: -5px;
    margin-left: 0px;
}

nav ul li a:hover,
nav ul li a.active-filter {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.social-icon {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color) !important;
    transform: scale(1.1);
}

.register-btn a {
    background-color: var(--accent-color);
    color: var(--darker-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-btn a:hover {
    background-color: transparent !important;
    border: 2px solid var(--accent-color);
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

.login-btn a {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.login-btn a:hover {
    background-color: var(--accent-color);
    color: var(--darker-bg);
}

/* ---------------------------------------------------- */
/* --- MEDIA QUERIES (Mobile) --- */
/* ---------------------------------------------------- */
@media (max-width: 768px) {

    /* En móviles, apilamos el logo y el menú */
    header {
        flex-direction: column;
        padding: 15px 5%;
        height: auto;
        gap: 15px;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        flex: 0 1 auto;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        white-space: nowrap;
    }

    .logo img {
        max-height: 45px !important;
    }
}