.ld-archive-title {
    text-align: center;
    font-size: 36px;
    margin: 40px auto 20px auto;
    padding-bottom: 60px;
    color: #333;
}

/* Locations Grid */
.ld-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.ld-location {
    position: relative;
    width: 100%;
}

.ld-location img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.ld-location h4 {
    color: white;
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: absolute;
    width: 100%;
    transform: translateY(-50%);
    top: 50%;
}

.location-map {
    height: 400px;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .location-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .location-map {
        height: 250px;
    }
}

/*
/* Responsive for grids */
@media (max-width: 768px) {
    
    .ld-locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: -40px;
    }

    .ld-location img {
        height: 180px;
    }
}

@media (max-width: 480px) {

    .ld-locations-grid {
        padding: 0 8px;
        gap: 8px;
    }
    
    .ld-location img {
        height: 150px;
    }
    
    .ld-location h4 {
        font-size: 20px;
    }
}

/* ------------------------------
   Single Location Page
--------------------------------*/
.single-location .site-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.single-location .featured-image {
    text-align: center;
    margin-bottom: 24px;
}

.single-location .featured-image img {
    display: block;
    margin: 0 auto;
    max-width: 700px;
    /* align with card */
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* subtle shadow */
}

.single-location .entry-title {
    font-size: 32px;
    margin: 20px auto 16px auto;
    text-align: left;
    max-width: 700px;
    /* align with image & card */
    padding: 0 16px;
}

.single-location .entry-text {
    margin: 0 auto 32px auto;
    text-align: left;
    max-width: 700px;
    /* align with image & card */
    padding: 0 16px;
}

/* Location Details Card */
.location-details-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin: 0 auto 40px auto;
    max-width: 700px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.location-details-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: #222;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .location-details-card {
        padding: 16px;
    }

    .location-details-title {
        font-size: 20px;
    }
}

.ld-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Shared Card */
.ld-card {
    position: relative;
    width: 100%;
}

.ld-card-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.ld-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 2px;
}

.ld-card-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.ld-card-title {
    color: white;
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.location-details-list .phone-link {
    color: #0073aa;
    text-decoration: none;
}

.location-details-list .phone-link:hover {
    text-decoration: underline;
}

/* Gallery Grid */
.ld-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ld-gallery-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ld-gallery-grid img:hover {
    transform: scale(1.05);
}

.ld-gallery-grid .ld-card {
    cursor: pointer;
}

.ld-gallery-grid .ld-card-image {
    height: 180px;
}

.ld-gallery-grid img.hidden-img {
    display: none;
    /* keep real <img> for SEO/accessibility but hidden */
}

.featured-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 24px auto;
    position: relative;
    padding-top: 75%;
    /* 16:9 ratio */
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image {
    text-align: center;
    margin-bottom: 16px;
}

.featured-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: opacity .18s ease;
    display: block;
    margin: 0 auto;
}

/* Gallery thumbnail strip */
.ld-gallery-grid {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 14px auto 26px;
    max-width: 920px;
    padding: 0 16px;
}

.ld-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 2px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform .12s ease, box-shadow .12s ease, outline-color .12s ease;
}

.ld-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ld-gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ld-gallery-thumb.active {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transform: scale(1.05);
}

.ld-category-banner {
    width: 100vw; /* ensures true full width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #1b4f72, #21618c);
    color: #fff;
    padding: 60px 20px 60px;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: -80px;
}

.ld-category-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.ld-category-banner-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.ld-category-title {    
    margin: 0 0 10px;    
    color: #fff; /* ensure white font */
}

.ld-category-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e6e6e6;
}

.ld-locations-archive-grid {
    padding-top: 80px; /* padding below banner */
    max-width: 1200px;
    margin: 0 auto;
}

.ld-location-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #1b4f72, #21618c);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 60px 20px 60px; /* more bottom padding */
    overflow: hidden;
    margin-top: -80px; /* tighter against nav */
    margin-bottom: 70px; /* more space before featured image */
}

.ld-location-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.ld-location-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.ld-location-title {      
    color: #fff;
    margin: 0;
}

@media (max-width: 768px) {
    .ld-location-banner {
        padding: 60px 15px 60px; /* more bottom padding on mobile */
        margin-top: -80px !important; /* closer to mobile nav */
        margin-bottom: 50px;
    }
    .ld-location-title {
        font-size: 2rem;
    }
}




@media (max-width: 768px) {
    .ld-category-title {
        font-size: 2rem;
    }
    .ld-category-banner {
        padding: 60px 15px 60px;
    }
}

/* Small screen adjustments */
@media (max-width: 600px) {
    .ld-gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .ld-gallery-grid {
        gap: 8px;
        margin-bottom: 18px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .ld-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: -40px;
    }

    .ld-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .ld-grid {
        padding: 0 8px;
        gap: 8px;
    }

    .ld-card-image {
        height: 150px;
    }

    .ld-card-title {
        font-size: 20px;
    }
}