/* ==========================================================================
   ONYXOPEN
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #172033;
    background: #f7f8fa;
}


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

.home-header {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: #ffffff;

    border-bottom: 1px solid #e6e8ec;
}

.home-brand {
    color: #171a20;

    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.7px;

    text-decoration: none;
}

.home-brand-open {
    font-weight: 400;
}

.home-header-tagline {
    color: #7a8290;

    font-size: 13px;
    font-weight: 500;
}


/* ==========================================================================
   PAGE
   ========================================================================== */

.home-main {
    width: min(1100px, calc(100% - 48px));

    margin: 0 auto;
}


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

.home-search {
    padding: 120px 0 76px;

    text-align: center;
}

.home-search-title h1 {
    margin: 0;

    color: #161a22;

    font-size: clamp(40px, 5vw, 60px);
    font-weight: 650;
    letter-spacing: -2.2px;
}

.home-search-title p {
    max-width: 680px;

    margin: 18px auto 0;

    color: #747d8c;

    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================================================
   SEARCH BOX
   ========================================================================== */

.home-search-form {
    width: min(780px, 100%);

    display: flex;

    margin: 40px auto 0;
    padding: 7px;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 16px;

    box-shadow:
        0 14px 40px rgba(20, 25, 35, 0.08);
}

.home-search-form:focus-within {
    border-color: #aeb5c0;

    box-shadow:
        0 16px 45px rgba(20, 25, 35, 0.11);
}

.home-search-form input {
    flex: 1;

    min-width: 0;
    height: 54px;

    padding: 0 20px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #171a20;

    font: inherit;
    font-size: 16px;
}

.home-search-form input::placeholder {
    color: #9ca3af;
}

.home-search-form button {
    min-width: 116px;

    padding: 0 22px;

    border: 0;
    border-radius: 11px;

    background: #171a20;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.home-search-form button:hover {
    background: #292e37;
}


/* ==========================================================================
   RESULTS
   ========================================================================== */

.home-results {
    padding-bottom: 80px;
}

.home-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    margin-bottom: 14px;
}

.home-results-header h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 650;
}

.home-results-header span {
    color: #89919e;

    font-size: 13px;
}

.home-no-results {
    padding: 38px;

    background: #ffffff;

    border: 1px solid #e3e6ea;
    border-radius: 14px;

    color: #737b89;

    text-align: center;
}


/* ==========================================================================
   RESULT
   ========================================================================== */

.home-result-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.home-result {
    display: grid;

    grid-template-columns:
        minmax(260px, 2fr) minmax(180px, 1fr);

    gap: 10px 28px;

    padding: 19px 21px;

    background: #ffffff;

    border: 1px solid #e3e6ea;
    border-radius: 13px;

    color: inherit;

    text-decoration: none;

    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
}

.home-result:hover {
    border-color: #cbd1da;

    box-shadow:
        0 8px 25px rgba(20, 25, 35, 0.07);

    transform: translateY(-1px);
}

.home-result-address {
    color: #171a20;

    font-size: 15px;
    font-weight: 650;
}

.home-result-location {
    display: flex;
    gap: 6px;

    margin-top: 5px;

    color: #737c8b;

    font-size: 13px;
}

.home-result-owner {
    align-self: center;

    display: flex;
    flex-direction: column;

    text-align: right;
}

.home-result-label {
    margin-bottom: 3px;

    color: #9aa1ad;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.home-result-owner-name {
    font-size: 14px;
    font-weight: 500;
}

.home-result-meta,
.home-result-characteristics {
    grid-column: 1 / -1;

    display: flex;
    flex-wrap: wrap;

    gap: 7px 18px;

    padding-top: 10px;

    border-top: 1px solid #f0f1f3;

    color: #7d8592;

    font-size: 12px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .home-header {
        height: 62px;

        padding: 0 20px;
    }

    .home-header-tagline {
        display: none;
    }

    .home-main {
        width: calc(100% - 28px);
    }

    .home-search {
        padding: 75px 0 50px;
    }

    .home-search-title h1 {
        letter-spacing: -1.5px;
    }

    .home-search-form button {
        min-width: 90px;

        padding: 0 14px;
    }

    .home-result {
        grid-template-columns: 1fr;
    }

    .home-result-owner {
        align-items: flex-start;

        text-align: left;
    }

}

/* ==========================================================================
PAGINATION
========================================================================== */

.home-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 42px;
    margin-bottom: 12px;
}

.home-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 104px;
    height: 42px;

    padding: 0 18px;

    background: #ffffff;

    border: 1px solid #d9dde3;
    border-radius: 11px;

    color: #252a33;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 2px 6px rgba(20, 25, 35, 0.04);

    transition:
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
}

.home-pagination-button:hover {
    background: #171a20;
    border-color: #171a20;

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(20, 25, 35, 0.12);

    transform: translateY(-1px);
}

.home-pagination-current {
    min-width: 110px;

    color: #7b8390;

    font-size: 13px;
    font-weight: 500;

    text-align: center;
}