.starpath-location-hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: #5d5d5d;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

body.single-starpath_location,
body.post-type-archive-starpath_location {
    overflow-x: hidden;
}

.starpath-location-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.starpath-location-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 120px 30px 80px;
    color: #fff;
}

.starpath-location-hero h1 {
    margin: 0 0 200px;
    color: #fff;
    font-size: clamp(48px, 7vw, 112px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.starpath-location-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.starpath-location-breadcrumb a {
    color: #fff;
}

.starpath-location-archive {
    position: relative;
    z-index: 2;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -34px;
    padding: 70px 15px;
    border-radius: 50px 50px 0 0;
    background: #fff;
}

.starpath-location-single {
    position: relative;
    z-index: 2;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -34px;
    padding: 70px 15px;
    border-radius: 50px 50px 0 0;
    background: #fff;
}

.starpath-location-archive-inner,
.starpath-location-single-inner {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
}

.starpath-location-content {
    width: 100%;
    margin: 0 auto;
    color: #333;
    font-size: 18px;
    line-height: 1.75;
}

.starpath-location-content > *:first-child {
    margin-top: 0;
}

.starpath-location-content > *:last-child {
    margin-bottom: 0;
}

.single-starpath_location .starpath-location-content .spaciaz-project-filter,
.single-starpath_location .starpath-location-content .spaciaz-real-estate-shortcode {
    width: 100%;
}

.single-starpath_location .starpath-location-content .project-form-filter {
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
}

.single-starpath_location .starpath-location-content .project-form-filter select:not([size]):not([multiple]) {
    min-width: 0;
}

.single-starpath_location .starpath-location-content .project-form-filter .filter-wrap-search {
    flex: 0 0 230px;
}

.starpath-location-nav {
    width: 100%;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
}

.starpath-location-nav > div {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.starpath-location-nav > div + div {
    border-left: 1px solid #e8e8e8;
}

.starpath-location-nav a {
    color: #111;
}

.starpath-location-grid {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 12vw, 210px);
    gap: 18px;
    grid-auto-flow: dense;
}

.starpath-location-columns-1 {
    grid-template-columns: 1fr;
}

.starpath-location-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.starpath-location-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.starpath-location-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.starpath-location-card {
    position: relative;
    display: block;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #d9d9d9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: #fff;
}

.starpath-location-card:nth-child(6n + 1) {
    grid-row: span 2;
}

.starpath-location-card:nth-child(6n + 2),
.starpath-location-card:nth-child(6n + 3),
.starpath-location-card:nth-child(6n + 4),
.starpath-location-card:nth-child(6n + 5),
.starpath-location-card:nth-child(6n + 6) {
    grid-row: span 1;
}

.starpath-location-card img,
.starpath-location-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.starpath-location-card img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.starpath-location-placeholder {
    min-height: 150px;
    background: linear-gradient(135deg, #d2232a, #1d2758);
}

.starpath-location-card:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
    pointer-events: none;
}

.starpath-location-card:hover img {
    transform: scale(1.06);
}

.starpath-location-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 1;
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

@media (max-width: 991px) {
    .starpath-location-hero {
        min-height: 430px;
    }

    .starpath-location-hero h1 {
        margin-bottom: 120px;
    }

    .starpath-location-grid {
        width: min(100% - 30px, 1320px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(145px, 21vw, 230px);
    }
}

@media (max-width: 1199px) {
    .single-starpath_location .starpath-location-content .project-form-filter {
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .starpath-location-hero {
        min-height: 360px;
    }

    .starpath-location-hero-content {
        padding: 100px 20px 64px;
    }

    .starpath-location-hero h1 {
        margin-bottom: 80px;
        font-size: 48px;
    }

    .starpath-location-archive {
        padding: 40px 15px;
        border-radius: 30px 30px 0 0;
    }

    .starpath-location-single {
        padding: 40px 15px;
        border-radius: 30px 30px 0 0;
    }

    .starpath-location-content {
        font-size: 16px;
    }

    .starpath-location-nav {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .starpath-location-nav > div + div {
        border-left: 0;
        border-top: 1px solid #e8e8e8;
    }

    .starpath-location-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }

    .starpath-location-card,
    .starpath-location-card:nth-child(6n + 1),
    .starpath-location-card:nth-child(6n + 2),
    .starpath-location-card:nth-child(6n + 3),
    .starpath-location-card:nth-child(6n + 4),
    .starpath-location-card:nth-child(6n + 5),
    .starpath-location-card:nth-child(6n + 6) {
        grid-row: auto;
        height: auto;
    }

    .starpath-location-card img,
    .starpath-location-placeholder {
        height: auto;
    }
}
