/*
|--------------------------------------------------------------------------
| PUBLIC HOMEPAGE CSS
| File: /assets/css/home.css
|--------------------------------------------------------------------------
*/


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;

    overflow: visible;

    padding: 82px 0 105px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(23, 105, 255, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 193, 7, 0.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f5f9ff 0%,
            #ffffff 55%,
            #f8fbff 100%
        );

    border-bottom: 1px solid #e8eef7;
}

.home-hero::before {
    content: "";

    position: absolute;

    top: 45px;
    right: 7%;

    width: 120px;
    height: 120px;

    border: 18px solid rgba(
        23,
        105,
        255,
        0.06
    );

    border-radius: 50%;

    pointer-events: none;
}

.home-hero::after {
    content: "";

    position: absolute;

    bottom: 35px;
    left: 5%;

    width: 80px;
    height: 80px;

    background: rgba(
        255,
        193,
        7,
        0.08
    );

    border-radius: 22px;

    transform: rotate(20deg);

    pointer-events: none;
}

.home-hero-content {
    position: relative;

    z-index: 2;

    max-width: 1080px;

    margin: 0 auto;

    text-align: center;
}

.home-hero-badge {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 6px 13px;

    background: #e9f2ff;

    border: 1px solid #d5e6ff;

    border-radius: 999px;

    color: #1769ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.home-hero-title {
    max-width: 780px;

    margin: 16px auto 14px;

    color: #10213d;

    font-size: clamp(
        38px,
        5.5vw,
        68px
    );

    font-weight: 900;

    line-height: 1.03;

    letter-spacing: -0.055em;
}

.home-hero-title span {
    color: #1769ff;
}

.home-hero-description {
    max-width: 650px;

    margin: 0 auto;

    color: #667085;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SEARCH CARD
========================================================= */

.home-search-card {
    position: relative;

    max-width: 1040px;

    margin: 38px auto 0;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e1e8f2;

    border-radius: 18px;

    box-shadow:
        0 18px 55px rgba(
            27,
            54,
            93,
            0.12
        );
}

.home-search-tabs {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px;

    width: fit-content;

    background: #f3f6fa;

    border-radius: 10px;
}

.home-search-tab {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 80px;
    height: 34px;

    padding: 0 15px;

    border-radius: 7px;

    color: #667085;

    font-size: 12px;
    font-weight: 750;

    text-decoration: none;

    transition: all 0.2s ease;
}

.home-search-tab:hover {
    color: #1769ff;
}

.home-search-tab.active {
    background: #1769ff;

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(
            23,
            105,
            255,
            0.22
        );
}


/* =========================================================
   SEARCH FORM
========================================================= */

.home-search-form {
    display: grid;

    grid-template-columns:
        1.2fr
        1fr
        0.9fr
        165px;

    gap: 10px;

    padding: 13px 5px 5px;
}

.home-search-field {
    min-width: 0;

    text-align: left;
}

.home-search-field label {
    display: block;

    margin: 0 0 6px 3px;

    color: #344054;

    font-size: 11px;
    font-weight: 800;
}

.home-search-input {
    position: relative;

    display: flex;

    align-items: center;

    height: 49px;

    background: #ffffff;

    border: 1px solid #dce3ed;

    border-radius: 9px;

    transition: all 0.2s ease;
}

.home-search-input:focus-within {
    border-color: #1769ff;

    box-shadow:
        0 0 0 3px rgba(
            23,
            105,
            255,
            0.08
        );
}

.home-search-input img {
    width: 20px;
    height: 20px;

    margin-left: 12px;

    flex: 0 0 20px;

    object-fit: contain;
}

.home-search-input input,
.home-search-input select {
    width: 100%;
    height: 100%;

    min-width: 0;

    padding: 0 11px;

    background: transparent;

    border: 0;

    outline: 0;

    color: #172033;

    font-family: inherit;

    font-size: 12px;
}

.home-search-input input::placeholder {
    color: #98a2b3;
}

.home-search-input select {
    cursor: pointer;

    appearance: auto;
}

.home-search-button {
    align-self: end;

    min-height: 49px;

    white-space: nowrap;
}

.home-search-button img {
    width: 18px;
    height: 18px;

    object-fit: contain;
}


/* =========================================================
   QUICK SEARCH
========================================================= */

.home-search-quick {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px 9px;

    padding: 7px 7px 5px;

    text-align: left;
}

.home-search-quick span {
    color: #98a2b3;

    font-size: 10px;
    font-weight: 700;
}

.home-search-quick a {
    padding: 4px 8px;

    background: #f7f9fc;

    border: 1px solid #edf0f5;

    border-radius: 5px;

    color: #667085;

    font-size: 10px;
    font-weight: 650;

    text-decoration: none;

    transition: all 0.2s ease;
}

.home-search-quick a:hover {
    background: #eaf2ff;

    border-color: #d4e4ff;

    color: #1769ff;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.home-property-types {
    background: #ffffff;
}

.home-featured {
    background: #f7faff;
}

.home-latest {
    background: #ffffff;
}

.home-locations {
    background: #f7faff;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.home-page .section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.home-page .section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #1769ff;

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.home-page .section-heading h2 {
    margin: 0;

    color: #14213d;

    font-size: clamp(
        24px,
        3vw,
        31px
    );

    font-weight: 850;

    letter-spacing: -0.035em;
}

.home-page .section-view-all {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #1769ff;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.home-page .section-view-all::after {
    content: "→";

    font-size: 15px;
}

.home-page .section-view-all:hover {
    color: #0c4fc4;
}


/* =========================================================
   PROPERTY TYPE GRID
========================================================= */

.home-property-type-grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap: 13px;
}

.home-property-type-card {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    min-height: 145px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e7ebf1;

    border-radius: 13px;

    color: #172033;

    text-align: center;

    text-decoration: none;

    box-shadow:
        0 4px 16px rgba(
            24,
            39,
            75,
            0.04
        );

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-property-type-card:hover {
    border-color: #cddfff;

    box-shadow:
        0 12px 30px rgba(
            23,
            105,
            255,
            0.10
        );

    transform: translateY(-4px);
}

.home-property-type-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 11px;

    background: #eef5ff;

    border-radius: 12px;
}

.home-property-type-icon img {
    width: 29px;
    height: 29px;

    object-fit: contain;
}

.home-property-type-card strong {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    font-weight: 800;
}

.home-property-type-card span {
    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   PROPERTY GRID
========================================================= */

.home-page .property-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;
}


/* =========================================================
   PROPERTY CARD
========================================================= */

.home-page .property-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e9f0;

    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(
            20,
            38,
            70,
            0.045
        );

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.home-page .property-card:hover {
    box-shadow:
        0 15px 35px rgba(
            20,
            38,
            70,
            0.11
        );

    transform: translateY(-4px);
}

.home-page .property-card-image {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #edf2f7;

    text-decoration: none;
}

.home-page .property-card-image > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.home-page .property-card:hover
.property-card-image > img {
    transform: scale(1.045);
}

.home-page .property-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.16),
            transparent 40%
        );

    pointer-events: none;
}

.home-page .property-card-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding: 4px 8px;

    background: #ffffff;

    border-radius: 6px;

    color: #1769ff;

    font-size: 9px;
    font-weight: 850;

    box-shadow:
        0 3px 10px rgba(
            0,
            0,
            0,
            0.10
        );
}

.home-page .property-card-content {
    padding: 15px;
}

.home-page .property-card-type {
    display: block;

    margin-bottom: 5px;

    color: #1769ff;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.home-page .property-card-title {
    margin: 0 0 7px;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.35;

    letter-spacing: -0.015em;
}

.home-page .property-card-title a {
    color: #172033;

    text-decoration: none;
}

.home-page .property-card-title a:hover {
    color: #1769ff;
}

.home-page .property-card-location {
    display: flex;

    align-items: center;

    gap: 5px;

    min-height: 19px;

    margin-bottom: 10px;

    color: #7b8798;

    font-size: 10px;

    line-height: 1.35;
}

.home-page .property-card-location img {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    object-fit: contain;
}

.home-page .property-card-location span {
    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.home-page .property-card-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    padding-top: 10px;

    border-top: 1px solid #edf0f4;
}

.home-page .property-card-meta-item {
    color: #667085;

    font-size: 9px;
    font-weight: 650;
}

.home-page .property-card-price {
    display: flex;

    align-items: baseline;

    gap: 4px;

    margin-top: 11px;
}

.home-page .property-card-price strong {
    color: #14213d;

    font-size: 17px;
    font-weight: 900;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.home-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    min-height: 260px;

    padding: 35px;

    background: #ffffff;

    border: 1px dashed #d6deea;

    border-radius: 14px;

    text-align: center;
}

.home-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 13px;

    background: #eef5ff;

    border-radius: 50%;
}

.home-empty-icon img {
    width: 32px;
    height: 32px;

    object-fit: contain;
}

.home-empty h3 {
    margin: 0 0 6px;

    color: #172033;

    font-size: 18px;
    font-weight: 800;
}

.home-empty p {
    max-width: 480px;

    margin: 0 0 17px;

    color: #7b8798;

    font-size: 12px;

    line-height: 1.6;
}

.home-empty-small {
    padding: 28px;

    background: #f8fafc;

    border: 1px dashed #dce3ec;

    border-radius: 12px;

    text-align: center;
}

.home-empty-small p {
    margin: 0;

    color: #98a2b3;

    font-size: 12px;
}


/* =========================================================
   LOCATIONS
========================================================= */

.home-location-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 13px;
}

.home-location-card {
    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 78px;

    padding: 13px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 12px;

    color: #172033;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.home-location-card:hover {
    border-color: #cddfff;

    box-shadow:
        0 10px 25px rgba(
            23,
            105,
            255,
            0.08
        );

    transform: translateY(-2px);
}

.home-location-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: #fff5e4;

    border-radius: 10px;
}

.home-location-icon img {
    width: 24px;
    height: 24px;

    object-fit: contain;
}

.home-location-card strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
    font-weight: 800;
}

.home-location-card span {
    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   CTA
========================================================= */

.home-cta {
    padding-top: 50px;

    background: #ffffff;
}

.home-cta-box {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    overflow: hidden;

    padding: 35px 40px;

    background:
        linear-gradient(
            135deg,
            #eef5ff 0%,
            #f9fbff 100%
        );

    border: 1px solid #dbe7fa;

    border-radius: 18px;
}

.home-cta-box::after {
    content: "";

    position: absolute;

    right: -50px;
    bottom: -70px;

    width: 180px;
    height: 180px;

    border: 35px solid rgba(
        23,
        105,
        255,
        0.07
    );

    border-radius: 50%;

    pointer-events: none;
}

.home-cta-content {
    position: relative;

    z-index: 1;
}

.home-cta-content h2 {
    margin: 0 0 7px;

    color: #14213d;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: -0.035em;
}

.home-cta-content p {
    max-width: 600px;

    margin: 0;

    color: #667085;

    font-size: 12px;

    line-height: 1.65;
}

.home-cta-actions {
    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}

.home-cta-actions .btn {
    min-height: 43px;

    padding: 0 17px;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .home-property-type-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .home-page .property-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .home-location-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .home-search-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-search-button {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .home-hero {
        padding: 55px 0 65px;
    }

    .home-hero-title {
        font-size: 40px;

        letter-spacing: -0.045em;
    }

    .home-hero-description {
        font-size: 13px;
    }

    .home-search-card {
        margin-top: 28px;

        padding: 7px;

        border-radius: 14px;
    }

    .home-search-tabs {
        width: 100%;
    }

    .home-search-tab {
        flex: 1;

        min-width: 0;
    }

    .home-search-form {
        grid-template-columns: 1fr;

        padding: 12px 3px 3px;
    }

    .home-search-button {
        width: 100%;
    }

    .home-property-type-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .home-property-type-card {
        min-height: 125px;
    }

    .home-page .property-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .home-page .property-card-content {
        padding: 12px;
    }

    .home-page .property-card-title {
        font-size: 13px;
    }

    .home-page .property-card-price strong {
        font-size: 15px;
    }

    .home-location-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .home-location-card {
        min-height: 70px;

        padding: 10px;
    }

    .home-cta-box {
        align-items: flex-start;

        flex-direction: column;

        padding: 28px 24px;
    }

    .home-cta-content h2 {
        font-size: 24px;
    }

    .home-cta-actions {
        width: 100%;
    }

    .home-cta-actions .btn {
        flex: 1;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .home-hero {
        padding: 45px 0 55px;
    }

    .home-hero-title {
        font-size: 34px;
    }

    .home-hero-description {
        font-size: 12px;
    }

    .home-search-quick {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .home-search-quick a {
        display: inline-flex;
    }

    .home-page .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }

    .home-page .section-heading h2 {
        font-size: 23px;
    }

    .home-page .property-grid {
        grid-template-columns: 1fr;
    }

    .home-location-grid {
        grid-template-columns: 1fr;
    }

    .home-cta-actions {
        align-items: stretch;

        flex-direction: column;
    }

    .home-cta-actions .btn {
        width: 100%;
    }

}
.home-search-error {
    display: block;

    margin-top: 5px;
    padding-left: 3px;

    color: #dc2626;

    font-size: 10px;
    font-weight: 600;
}

.home-search-input .input-error {
    border-color: #dc2626 !important;
}

.search-loading-spinner {
    display: inline-block;

    width: 14px;
    height: 14px;

    border: 2px solid rgba(
        255,
        255,
        255,
        0.35
    );

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: homeSearchSpin 0.7s linear infinite;
}

.home-search-button.is-loading {
    pointer-events: none;

    opacity: 0.85;
}

@keyframes homeSearchSpin {

    to {
        transform: rotate(360deg);
    }

}