/* Location Grid */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem -1.15rem 0;
}

.locations-grid .location-card {
    width: 33.33333333%;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    box-sizing: border-box;
}

.locations-grid .location-card:not(:nth-child(3n+1)) {
    border-left: 1px solid #D6D6D6;
}

.locations-grid .location-card:nth-child(1n+4) {
    margin-top: 2.3rem;
}

/* Location Card - matches post-link-vertical */
.location-link.vertical .location-title {
    font-size: 19px;
    margin-bottom: 0;
    padding: 5px 0 0.2rem;
    color: black;
    transition: color 0.2s ease;
    cursor: pointer;
}

.location-link.vertical img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.location-link.vertical a:hover .location-title {
    color: #5a5a5a;
}

.location-link.vertical a:hover img {
    opacity: 0.7;
}

/* Enhanced Location Card - with category and subtitle */
.location-card {
    display: flex;
    flex-direction: column;
}

.location-card-link {
    text-decoration: none;
    display: block;
}

.location-card img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.location-card-link:hover img {
    opacity: 0.7;
}

.location-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #EB2323;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: tenon, Adjusted Arial Fallback, sans-serif;
    text-decoration: none;
}

.location-category:visited {
    color: #EB2323;
}

.location-category:hover {
    color: #EB2323;
    opacity: 0.7;
}

.location-title {
    font-size: 19px;
    margin: 0;
    padding: 5px 0 0.5rem;
    color: black;
    transition: color 0.2s ease;
    cursor: pointer;
    line-height: 1.3;
}

.location-card-link:hover .location-title {
    color: #5a5a5a;
}

.location-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #2e2e2e;
    margin: 0;
    padding-top: 0.25rem;
}

/* No Results */
.locations-none {
    font-family: tenon, Arial, sans-serif;
    color: #707070;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .location-card .location-title {
        font-size: 17px;
    }

    .location-card .location-category {
        font-size: 10px;
    }

    .location-card .location-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 1000px) {
    .locations-grid .location-card {
        width: 50%;
    }

    .locations-grid .location-card:not(:nth-child(3n+1)) {
        border-left: none;
    }

    .locations-grid .location-card:nth-child(2n) {
        border-left: 1px solid #D6D6D6;
    }

    .locations-grid .location-card:nth-child(1n+3) {
        margin-top: 2.3rem;
    }
}

@media (max-width: 600px) {
    .locations-grid .location-card {
        width: 100%;
        border-left: none !important;
    }

    .locations-grid .location-card:nth-child(1n+2) {
        margin-top: 2.3rem;
    }
}
