/*
|--------------------------------------------------------------------------
| PUBLIC HEADER CSS
| File: /assets/css/header.css
|--------------------------------------------------------------------------
*/


/* =========================================================
   MAIN HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #edf1f6;

    box-shadow:
        0 2px 14px rgba(16, 24, 40, 0.05);
}

.site-header-inner {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 74px;

    gap: 24px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 9px;

    min-width: 175px;

    color: #14213d;

    font-size: 20px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.04em;

    text-decoration: none;
}

.site-logo:hover {
    color: #1769ff;
}

.site-logo-image {
    display: block;

    width: auto;
    max-width: 175px;
    max-height: 42px;

    object-fit: contain;
}

.site-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    background: #eef5ff;

    border-radius: 10px;
}

.site-logo-icon img {
    width: 26px;
    height: 26px;

    object-fit: contain;
}

.site-logo-text {
    white-space: nowrap;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    margin-left: auto;
    margin-right: auto;
}

.main-navigation a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 15px;

    border-radius: 9px;

    color: #344054;

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-navigation a:hover {
    background: #f4f7fb;

    color: #1769ff;
}

.main-navigation a.active {
    background: #eef5ff;

    color: #1769ff;
}

.main-navigation a.active::after {
    content: "";

    position: absolute;

    bottom: 2px;
    left: 50%;

    width: 18px;
    height: 3px;

    background: #1769ff;

    border-radius: 10px;

    transform: translateX(-50%);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    gap: 9px;

    min-width: 175px;
}

.header-phone {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #475467;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.header-phone:hover {
    color: #1769ff;
}

.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    background: #eef8f2;

    border-radius: 8px;
}

.header-phone-icon img {
    width: 17px;
    height: 17px;

    object-fit: contain;
}


/* =========================================================
   LIST PROPERTY
========================================================= */

.header-list-property {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 40px;

    padding: 0 14px;

    border-radius: 8px;

    white-space: nowrap;

    font-size: 11px !important;

    box-shadow:
        0 5px 14px rgba(23, 105, 255, 0.18);
}

.header-list-property img {
    width: 16px;
    height: 16px;

    object-fit: contain;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 4px;

    width: 42px;
    height: 42px;

    padding: 0;

    background: #ffffff;

    border: 1px solid #dfe5ed;

    border-radius: 9px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 19px;
    height: 2px;

    background: #172033;

    border-radius: 10px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   MOBILE MENU OVERLAY
========================================================= */

.mobile-menu-overlay {
    position: fixed;

    z-index: 1998;

    inset: 0;

    visibility: hidden;

    background: rgba(15, 23, 42, 0.45);

    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-menu-overlay.active {
    visibility: visible;

    opacity: 1;
}


/* =========================================================
   MOBILE DRAWER
========================================================= */

.mobile-navigation {
    position: fixed;

    z-index: 1999;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(340px, 88vw);

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        -12px 0 40px rgba(0, 0, 0, 0.16);

    transform: translateX(105%);

    transition:
        transform 0.28s ease;
}

.mobile-navigation.active {
    transform: translateX(0);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-navigation-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 68px;

    padding: 0 16px;

    border-bottom: 1px solid #edf0f4;
}

.mobile-navigation-logo {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;

    color: #172033;

    font-size: 15px;
    font-weight: 800;

    text-decoration: none;
}

.mobile-navigation-logo > img {
    display: block;

    max-width: 145px;
    max-height: 38px;

    object-fit: contain;
}

.mobile-logo-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    background: #eef5ff;

    border-radius: 8px;
}

.mobile-logo-icon img {
    width: 22px;
    height: 22px;

    object-fit: contain;
}

.mobile-navigation-logo strong {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mobile-menu-close {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    padding: 0;

    background: #f4f6f9;

    border: 0;

    border-radius: 8px;

    color: #344054;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}

.mobile-menu-close:hover {
    background: #eef5ff;

    color: #1769ff;
}


/* =========================================================
   MOBILE NAV LINKS
========================================================= */

.mobile-menu-links {
    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 13px;
}

.mobile-menu-links a {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 50px;

    padding: 0 12px;

    border-radius: 9px;

    color: #344054;

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: #eef5ff;

    color: #1769ff;
}

.mobile-menu-links a img {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    object-fit: contain;
}


/* =========================================================
   MOBILE CONTACT
========================================================= */

.mobile-navigation-contact {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin: 5px 13px 0;

    padding-top: 15px;

    border-top: 1px solid #edf0f4;
}

.mobile-contact-item {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 8px;

    border-radius: 9px;

    color: #344054;

    text-decoration: none;
}

.mobile-contact-item:hover {
    background: #f7f9fc;
}

.mobile-contact-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    background: #eef5ff;

    border-radius: 8px;
}

.mobile-contact-icon.whatsapp {
    background: #eafaf0;
}

.mobile-contact-icon img {
    width: 19px;
    height: 19px;

    object-fit: contain;
}

.mobile-contact-item small {
    display: block;

    margin-bottom: 2px;

    color: #98a2b3;

    font-size: 9px;
}

.mobile-contact-item strong {
    display: block;

    max-width: 210px;

    overflow: hidden;

    color: #344054;

    font-size: 11px;
    font-weight: 750;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   MOBILE CTA
========================================================= */

.mobile-navigation-cta {
    padding: 16px 13px 25px;
}

.mobile-navigation-cta .btn {
    display: flex;

    width: 100%;
}

.mobile-navigation-cta img {
    width: 17px;
    height: 17px;

    object-fit: contain;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .site-header-inner {
        gap: 14px;
    }

    .site-logo {
        min-width: 150px;
    }

    .main-navigation a {
        padding: 0 10px;

        font-size: 12px;
    }

    .site-header-actions {
        min-width: 150px;
    }

    .header-phone {
        display: none;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .site-header-inner {
        min-height: 68px;
    }

    .main-navigation {
        display: none;
    }

    .site-header-actions {
        min-width: auto;

        margin-left: auto;
    }

    .mobile-menu-button {
        display: flex;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .site-header-inner {
        min-height: 62px;

        gap: 8px;
    }

    .site-logo {
        min-width: 0;

        max-width: calc(
            100% - 52px
        );
    }

    .site-logo-image {
        max-width: 145px;
        max-height: 37px;
    }

    .site-logo-text {
        max-width: 155px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        font-size: 16px;
    }

    .site-logo-icon {
        width: 36px;
        height: 36px;

        flex: 0 0 36px;
    }

    .site-logo-icon img {
        width: 23px;
        height: 23px;
    }

    .header-list-property,
    .header-phone {
        display: none !important;
    }

    .site-header-actions {
        gap: 0;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;

        flex: 0 0 40px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .site-header-inner {
        min-height: 58px;
    }

    .site-logo-text {
        max-width: 135px;

        font-size: 15px;
    }

    .site-logo-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .mobile-navigation {
        width: 90vw;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 340px) {

    .site-logo-text {
        max-width: 115px;

        font-size: 14px;
    }

    .mobile-navigation {
        width: 94vw;
    }

}
/*
|--------------------------------------------------------------------------
| MOBILE OVERFLOW FIX
|--------------------------------------------------------------------------
*/

html,
body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
    overflow-x: clip;
}

.site-header,
.site-header-inner,
.site-header .container {
    width: 100%;
    max-width: 100%;
}

.site-header-inner {
    min-width: 0;
}


/* =========================================================
   MOBILE HEADER FIX
========================================================= */

@media (max-width: 900px) {

    .site-header {
        width: 100%;
        max-width: 100%;
    }

    .site-header .container {
        width: 100%;
        max-width: 100%;

        padding-left: 12px;
        padding-right: 12px;

        box-sizing: border-box;
    }

    .site-header-inner {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }

    .site-logo {
        min-width: 0;
        max-width: calc(100% - 52px);

        overflow: hidden;
    }

    .site-logo-text {
        min-width: 0;
        max-width: 100%;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .site-logo-image {
        max-width: 100%;
    }

    .site-header-actions {
        min-width: 0;

        flex-shrink: 0;
    }

}


/* =========================================================
   MOBILE 600
========================================================= */

@media (max-width: 600px) {

    .site-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .site-header-inner {
        min-height: 62px;

        gap: 8px;
    }

    .site-logo {
        flex: 1 1 auto;

        width: auto;
        max-width: calc(100% - 48px);
    }

    .site-logo-text {
        max-width: 160px;
    }

    .site-header-actions {
        flex: 0 0 auto;

        width: 40px;
    }

    .mobile-menu-button {
        display: flex;

        margin: 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .site-header .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .site-logo {
        max-width: calc(100% - 46px);
    }

    .site-logo-text {
        max-width: 135px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .site-header .container {
        padding-left: 7px;
        padding-right: 7px;
    }

    .site-logo-text {
        max-width: 115px;
    }

}