// Fonts
@import url('https://fonts.bunny.net/css?family=Nunito');

// Variables
@import 'variables';

// Bootstrap
@import 'bootstrap/scss/bootstrap';

// AdminLte 3.1.0
@import 'admin-lte/dist/css/adminlte.css';

//FontAwesone
@import "@fortawesome/fontawesome-free/css/all.css";

//vue-select
@import "vue-select/dist/vue-select.css";

//Sweetalert2
@import 'sweetalert2/dist/sweetalert2';

//Toastr
@import 'toastr/build/toastr';

@import '../../node_modules/bootstrap/scss/bootstrap';


/* =========================================
RESET
========================================= */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #fdfeff;
    color: #1e293b;
}

.dw-page {
    width: 100%;
}


/* =========================================
NAVBAR NIVEL PRO
========================================= */

.dw-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.89);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(168, 7, 7, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    transition: all .3s ease;
}

.dw-navbar.scrolled {
    background: white;
    box-shadow: 0 10px 25px rgba(238, 235, 235, 0.808);
}

.dw-shell {
    max-width: 1400px;
    margin: auto;
    padding: 0 25px;
}

.dw-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* LOGO */
.dw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dw-brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    transition: .3s;
}

.dw-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dw-brand:hover .dw-brand-icon {
    transform: scale(1.05);
}

.dw-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}

.brand-sub {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* MENU */
.dw-menu {
    display: flex;
    gap: 24px;
}

.dw-menu-link {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #dce3ec;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .3s;
}

/* HOVER PRO */
.dw-menu-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #22c55e;
    transition: .3s;
}

.dw-menu-link:hover::after {
    width: 100%;
}

.dw-menu-link:hover {
    color: #22c55e;
}

/* ACTIVO */
.dw-menu-link.active {
    color: #22c55e;
    font-weight: 600;
}

/* MOBILE */
.dw-mobile-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}


/* =========================================
MAIN
========================================= */

.main-content {
    margin-top: 90px;
    min-height: calc(100vh - 90px);
}


/* =========================================
HERO
========================================= */

.hero {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.hero-map {
    flex: 1;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.hero-right {
    flex: 1;
    background-image: url('/img/imggg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;

    display: flex;
    align-items: flex-end;
    padding: 120px 120px;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.15));
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    color: white;

    display: flex;
    flex-direction: column;
    gap: 10px;

    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: #22c55e;
    text-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

.hero-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}


/* =========================================
BUSCADOR
========================================= */

.dw-search-card {
    margin-top: 15px;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);

    border-radius: 20px;
    padding: 28px;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);

    transition: all .3s ease;
}

.dw-search-card:hover {
    transform: translateY(-8px);
}

.dw-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.dw-tab {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.dw-tab.active {
    background: #22c55e;
    color: white;
}

.dw-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dw-field label {
    font-size: 12px;
    color: #64748b;
}

.dw-field input,
.dw-field select {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0 12px;
}

.dw-submit-btn {
    margin-top: 15px;
    height: 50px;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;

    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.dw-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
}


/* =========================================
CARDS
========================================= */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 25px 0 25px;
    color: #1e293b;
    position: relative;
}

/* PALABRA DESTACADA */

.section-title span {
    color: #22c55e;
}

/* LINEA DECORATIVA */

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #22c55e;
    margin: 15px auto 0;
    border-radius: 2px;
}

.types-grid,
.properties-grid {
    max-width: 1200px;
    margin: auto;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 🔥 4 columnas */
    grid-template-rows: repeat(2, auto);
    /* 🔥 2 filas */
    gap: 25px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.type-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.type-card img {
    height: 350px;
    /* 🔥 más grande */
    object-fit: cover;
}

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

.type-card span {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: 600;
}

.property-card {
    background: rgba(182, 181, 181, 0.342);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: .3s;
}

.property-card:hover {
    transform: translateY(-6px);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-info {
    padding: 18px;
}

.property-info h3 {
    font-size: 17px;
}

.property-info p {
    font-size: 14px;
    color: #64748b;
}

.price {
    font-weight: 700;
    color: #22c55e;
    margin-top: 10px;
}


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

@media (max-width: 992px) {

    .dw-mobile-toggle {
        display: block;
    }

    .dw-nav-wrap {
        position: absolute;
        top: 70px;
        right: 20px;
        width: 260px;
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        animation: fadeDown .3s ease;
    }

    .dw-nav-wrap.open {
        display: flex;
    }

    .dw-menu {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
    }

    .hero-right {
        padding: 60px 20px;
    }

    .dw-search-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 768px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-bottom {
        grid-template-columns: 1fr;
    }
}

/* =========================================
QUIENES SOMOS PRO
========================================= */

.about-section {
    background: #f8fafc;
}

.about-top {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

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

.dw-footer {
    background: #f1f5f9;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

/* CONTENEDOR */

.dw-footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 25px;
}

/* IZQUIERDA */

.dw-footer-left h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.dw-footer-left p {
    margin: 8px 0;
    color: #475569;
    font-size: 15px;
}

.dw-footer-left i {
    margin-right: 8px;
    color: #16a34a;
}

/* DERECHA */

.dw-footer-right h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ICONOS */

.dw-socials {
    display: flex;
    gap: 15px;
}

.dw-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    font-size: 18px;
    color: #334155;
    transition: 0.3s;
}

/* HOVER COLORES */

.dw-socials a:hover {
    transform: translateY(-4px);
}

/* COLORES REDES */

.dw-socials a:nth-child(1):hover {
    color: #1877f2;
}

/* Facebook */
.dw-socials a:nth-child(2):hover {
    color: #ff0000;
}

/* YouTube */
.dw-socials a:nth-child(3):hover {
    color: #e1306c;
}

/* Instagram */
.dw-socials a:nth-child(4):hover {
    color: #0a66c2;
}

/* LinkedIn */
.dw-socials a:nth-child(5):hover {
    color: #000;
}

/* X */
.dw-socials a:nth-child(6):hover {
    color: #000;
}

/* TikTok */


/* RESPONSIVE */

@media(max-width:768px) {

    .dw-footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .dw-socials {
        justify-content: center;
    }

}

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

.dw-footer-bottom {
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    background: #f8fafc;
}

/* HERO */
.hero-about {
    position: relative;
    background: url('/img/imggg.jpg') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero-about .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(15,23,42,0.6));
}

.hero-about .content {
    position: relative;
}

.hero-about h1 {
    font-size: 48px;
    font-weight: 800;
}

.hero-about span {
    color: #22c55e;
}

/* ABOUT */
.about-section {
    background: #f1f5f9;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-card img {
    max-width: 200px;
}

.about-text {
    color: #334155;
    line-height: 1.9;
}

.highlight {
    color: #22c55e;
    font-weight: 600;
}

/* VALORES */
.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.valores-img {
    background: url('/img/about.jpg') center/cover;
    min-height: 450px;
}

.valores-content {
    background: linear-gradient(135deg, #020617, #0f172a);
    color: white;
    padding: 60px;
}

.valores-content h2 span {
    color: #22c55e;
}

.valores-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.valor {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.valor:hover {
    background: #22c55e;
    transform: scale(1.05);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    text-align: center;
    padding: 70px 0;
    color: white;
}

.btn-cta {
    background: white;
    color: #16a34a;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* FILTROS */
.filtros-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filtros-bar select,
.filtros-bar input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-buscar {
    background: #16a34a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}


/* =========================================
LAYOUT PRINCIPAL
========================================= */

.layout-main {
    display: grid;
    grid-template-columns: 45% 55%;
}

/* LISTADO */
.listado {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    align-items: start;   // 🔥 CLAVE
}

/* MAPA */
.mapa {
    position: sticky;
    top: 90px;
    height: 85vh;
}

#map {
    height: 100%;
    border-radius: 12px;
}

/* =========================================
FILTROS PRO
========================================= */

.filters-top {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filter-input {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.btn-filter {
    height: 42px;
    border-radius: 8px;
}

/* =========================================
CARDS PRO INMUEBLES
========================================= */

.card-realestate {
    height: auto;
    align-self: start;  // 🔥 IMPORTANTE
}

.card-realestate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* IMAGEN */
.card-img {
    position: relative;
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* BADGE */
.badge-tipo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3b82f6;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

/* BODY */
.card-body {
    padding: 15px;
}

/* PRECIO */
.price {
    color: #16a34a;
    font-weight: 700;
    font-size: 20px;
}

/* UBICACION */
.location {
    color: #64748b;
    font-size: 14px;
}

/* FEATURES */
.features {
    font-size: 13px;
    margin-top: 8px;
    color: #334155;
}

/* =========================================
LAYOUT RE/MAX PRO
========================================= */

.layout-main {
    display: grid;
    grid-template-columns: 50% 50%;
    height: calc(100vh - 120px);
}

/* LISTADO */
.listado {
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* MAPA */
.mapa {
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
}

#map {
    height: 100%;
}

/* =========================================
FILTROS
========================================= */

.filters-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;

    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
}

.filter-input {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0 10px;
    font-size: 13px;
}

.btn-filter {
    background: #0f172a;
    color: white;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 13px;
}

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

.card-realestate {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-realestate:hover {
    transform: translateY(-5px);
}

/* IMAGEN */
.card-img {
    position: relative;
}

.card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* BADGE */
.badge-tipo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2563eb;
    padding: 5px 10px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* TITULO */
.card-body h3 {
    font-size: 14px;
    font-weight: 600;
}

/* PRECIO */
.price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* UBICACION */
.location {
    font-size: 12px;
    color: #64748b;
}

/* FEATURES */
.features {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-top: 8px;
}

/* AGENTE */
.agent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.agent img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
