/* =========================================================
   ABLESTAY — CUSTOM RELATED LISTINGS
   ========================================================= */

.as-related-section {
    width: 100%;
    margin: 80px 0 40px;
    padding: 0;
    box-sizing: border-box;
}

.as-related-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* =========================================================
   HEADING
   ========================================================= */

.as-related-heading {
    margin-bottom: 32px;
}

.as-related-line {
    display: block;
    width: 45px;
    height: 4px;
    margin-bottom: 14px;
    background: #2450d8;
    border-radius: 10px;
}

.as-related-heading h2 {
    margin: 0;
    color: #063f5c;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.as-related-heading p {
    margin: 8px 0 0;
    color: #718096;
    font-size: 14px;
    font-weight: 400;
}


/* =========================================================
   GRID
   ========================================================= */

.as-related-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    box-sizing: border-box;
}


/* =========================================================
   CARD
   ========================================================= */

.as-related-card {
    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e3edf2;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 8px 24px rgba(6, 63, 92, 0.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.as-related-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 35px rgba(6, 63, 92, 0.14);
}


/* =========================================================
   IMAGE
   ========================================================= */

.as-related-image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eef4f7;
}

.as-related-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.as-related-card:hover
.as-related-image img {
    transform: scale(1.04);
}


/* =========================================================
   CONTENT
   ========================================================= */

.as-related-content {
    padding: 20px;
}


/* CATEGORY */

.as-related-category {
    display: inline-flex;

    align-items: center;

    padding: 6px 13px;

    border-radius: 999px;

    background: #eef7fb;

    color: #075274;

    font-size: 10px;

    line-height: 1;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* TITLE */

.as-related-title {
    margin: 16px 0 0;

    min-height: 54px;

    color: #063f5c;

    font-size: 20px;

    line-height: 1.35;

    font-weight: 700;
}

.as-related-title a {
    color: inherit;

    text-decoration: none;
}

.as-related-title a:hover {
    color: #087fb8;
}


/* DIVIDER */

.as-related-divider {
    width: 100%;

    height: 1px;

    margin: 18px 0;

    background: #e7eef2;
}


/* BUTTON */

.as-related-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 44px;

    padding: 0 18px;

    box-sizing: border-box;

    border-radius: 24px;

    background: #075274;

    color: #ffffff !important;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    text-decoration: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}

.as-related-button:hover {
    background: #053f59;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .as-related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .as-related-section {
        margin-top: 55px;
    }

    .as-related-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .as-related-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .as-related-heading h2 {
        font-size: 26px;
    }

}

/* =========================================================
   ABLESTAY
   HIDE HIVEPRESS DEFAULT SEARCH RESULTS
   ========================================================= */

.hp-template--listings-view-page .hp-listings {
    display: none !important;
}