/* ================================================================
   BPP HOME TOP LOCATIONS GHANA V2
   Approved UI reference:
   East Legon | Cantonments | Airport Residential |
   Tema Community 25 | Nhyiaeso | Takoradi
   ================================================================ */

.bpp-home-top-locations-v2 {
    --bpp-location-green: #079b54;
    --bpp-location-dark: #063f30;
    --bpp-location-ink: #153b2f;
    --bpp-location-line: #d4e8de;
    --bpp-location-soft: #f1faf5;
    background: #f6f8f7;
}

.bpp-home-top-locations-v2 .rpgx-container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.bpp-home-top-locations-v2__head {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 22px;
    border: 1px solid var(--bpp-location-line);
    border-radius: 18px;
    background:
        linear-gradient(115deg, rgba(232, 248, 240, .95), rgba(255, 255, 255, .98));
    box-shadow: 0 8px 22px rgba(20, 62, 47, .04);
}

.bpp-home-top-locations-v2__heading {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.bpp-home-top-locations-v2__accent {
    width: 6px;
    min-height: 56px;
    border-radius: 999px;
    background: var(--bpp-location-green);
}

.bpp-home-top-locations-v2__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--bpp-location-green);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bpp-home-top-locations-v2__head h2 {
    margin: 0;
    color: var(--bpp-location-ink);
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.025em;
}

.bpp-home-top-locations-v2__view-all {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid #add8c2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #087b49 !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.bpp-home-top-locations-v2__view-all:hover {
    transform: translateY(-1px);
    background: #fff;
    border-color: #79c39d;
}

.bpp-home-top-locations-v2__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.bpp-home-location-card-v2 {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 62, 44, .11);
    background: #0b4f3d;
}

.bpp-home-location-card-v2__link {
    position: relative;
    min-height: 390px;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    color: #fff !important;
    text-decoration: none !important;
    isolation: isolate;
}

.bpp-home-location-card-v2__image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .35s ease, filter .35s ease;
}

.bpp-home-location-card-v2__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(0, 35, 26, .02) 15%,
            rgba(0, 45, 33, .12) 42%,
            rgba(1, 53, 39, .77) 72%,
            rgba(1, 42, 31, .98) 100%
        );
}

.bpp-home-location-card-v2__content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: block;
    padding: 20px 16px 16px;
}

.bpp-home-location-card-v2__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.bpp-home-location-card-v2__title svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bpp-home-location-card-v2__title strong {
    min-width: 0;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.015em;
}

.bpp-home-location-card-v2__subtitle {
    display: block;
    margin: 5px 0 0 28px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}

.bpp-home-location-card-v2__count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: rgba(255, 255, 255, .97);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.bpp-home-location-card-v2__count svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bpp-home-location-card-v2__cta {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 999px;
    background: rgba(5, 61, 45, .35);
    color: #fff;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: background .18s ease, border-color .18s ease;
}

.bpp-home-location-card-v2__cta span {
    font-size: 12px;
    font-weight: 800;
}

.bpp-home-location-card-v2__cta strong {
    font-size: 18px;
    line-height: 1;
}

.bpp-home-location-card-v2__link:hover .bpp-home-location-card-v2__image {
    transform: scale(1.055);
    filter: saturate(1.04);
}

.bpp-home-location-card-v2__link:hover .bpp-home-location-card-v2__cta {
    background: rgba(8, 145, 82, .58);
    border-color: rgba(255, 255, 255, .72);
}

.bpp-home-top-locations-v2__license-note {
    margin-top: 9px;
    color: #7c8d86;
    font-size: 9px;
    line-height: 1.4;
    text-align: right;
}

/* Laptop */
@media (max-width: 1199px) {
    .bpp-home-top-locations-v2__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bpp-home-location-card-v2__link {
        min-height: 340px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .bpp-home-top-locations-v2__head {
        min-height: 76px;
        padding: 14px 16px;
    }

    .bpp-home-top-locations-v2__eyebrow {
        font-size: 10px;
    }

    .bpp-home-top-locations-v2__head h2 {
        font-size: 24px;
    }

    .bpp-home-top-locations-v2__view-all {
        min-height: 40px;
        padding-inline: 14px;
        font-size: 12px;
    }

    .bpp-home-location-card-v2__title strong {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bpp-home-top-locations-v2 {
        overflow: hidden;
    }

    .bpp-home-top-locations-v2__head {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        border-radius: 15px;
        padding: 13px 12px;
    }

    .bpp-home-top-locations-v2__heading {
        gap: 10px;
    }

    .bpp-home-top-locations-v2__accent {
        width: 4px;
        min-height: 48px;
    }

    .bpp-home-top-locations-v2__eyebrow {
        margin-bottom: 3px;
        font-size: 9px;
    }

    .bpp-home-top-locations-v2__head h2 {
        font-size: 19px;
        line-height: 1.12;
    }

    .bpp-home-top-locations-v2__view-all {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .bpp-home-top-locations-v2__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        margin-top: 14px;
        padding: 0 1px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .bpp-home-top-locations-v2__grid::-webkit-scrollbar {
        display: none;
    }

    .bpp-home-location-card-v2 {
        flex: 0 0 min(74vw, 290px);
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .bpp-home-location-card-v2__link {
        min-height: 385px;
    }

    .bpp-home-location-card-v2__title strong {
        font-size: 20px;
    }

    .bpp-home-location-card-v2__subtitle {
        font-size: 14px;
    }

    .bpp-home-location-card-v2__count {
        font-size: 13px;
    }

    .bpp-home-location-card-v2__cta span {
        font-size: 13px;
    }

    .bpp-home-top-locations-v2__license-note {
        text-align: left;
        font-size: 8px;
    }
}
