/* Domestic Locations hub (/locations-domestic): lists every published location page.
   Scoped under .ld-page so it never affects other templates. Same brand tokens as
   location-service-page.css (green #079460 / navy #0c1d28). */

.ld-page {
    --ld-green: #079460;
    --ld-green-dark: #057a4e;
    --ld-navy: #0c1d28;
    --ld-text: #1e293b;
    --ld-text-light: #64748b;
    --ld-border: #e2e8f0;
    --ld-bg-light: #f8faff;
    color: var(--ld-text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}
.ld-page h1, .ld-page h2, .ld-page h3 { font-family: 'DM Sans', sans-serif; }
.ld-page a { text-decoration: none; }
.ld-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.ld-hero { position: relative; background: var(--ld-navy); color: #fff; padding: 150px 0 70px; overflow: hidden; text-align: center; }
.ld-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ld-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.ld-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 29, 40, .92) 0%, rgba(12, 29, 40, .8) 55%, rgba(12, 29, 40, .95) 100%); }
.ld-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ld-hero-title { margin: 6px 0 16px; color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.ld-hero-title span { color: var(--ld-green); }
.ld-hero-sub { max-width: 720px; margin: 0 auto; color: rgba(255, 255, 255, .8); font-size: 16.5px; line-height: 1.7; }
.ld-hero .hero-trust { width: 100%; }

/* ---------- list ---------- */
.ld-list { padding: 70px 0; background: var(--ld-bg-light); }
.ld-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.ld-eyebrow { display: inline-block; margin-bottom: 10px; color: var(--ld-green); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ld-title { margin: 0 0 10px; color: var(--ld-navy); font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; }
.ld-sub { margin: 0; color: var(--ld-text-light); font-size: 15px; }

.ld-tools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 34px; }
.ld-search { position: relative; width: 100%; max-width: 520px; margin: 0; }
.ld-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ld-text-light); font-size: 15px; }
.ld-search input {
    width: 100%; height: 54px; padding: 0 20px 0 50px; border: 1px solid var(--ld-border); border-radius: 100px;
    background: #fff; color: var(--ld-text); font-size: 15px; box-shadow: 0 5px 15px rgba(15, 23, 42, .05); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ld-search input:focus { border-color: var(--ld-green); box-shadow: 0 0 0 4px rgba(7, 148, 96, .12); }
.ld-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ld-letters button {
    min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid var(--ld-border); border-radius: 8px;
    background: #fff; color: var(--ld-navy); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.ld-letters button:hover { border-color: var(--ld-green); color: var(--ld-green); }
/* Active letter: white text on green, also while hovered/focused (the hover rule above
   turns the text green) and against site-wide .active / button colour rules. */
.ld-page .ld-letters button.active,
.ld-page .ld-letters button.active:hover,
.ld-page .ld-letters button.active:focus { background: var(--ld-green); border-color: var(--ld-green); color: #fff !important; }

.ld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ld-card {
    display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ld-border);
    border-radius: 16px; box-shadow: 0 5px 15px rgba(15, 23, 42, .05); color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ld-card[hidden] { display: none; }
.ld-card:hover { transform: translateY(-4px); border-color: rgba(7, 148, 96, .35); box-shadow: 0 15px 40px rgba(15, 23, 42, .1); color: inherit; }
.ld-card-img { position: relative; aspect-ratio: 16 / 9; background: var(--ld-navy); overflow: hidden; }
.ld-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ld-card:hover .ld-card-img img { transform: scale(1.05); }
.ld-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: rgba(255, 255, 255, .35); font-size: 44px; }
.ld-card-tag {
    position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    border-radius: 100px; background: rgba(12, 29, 40, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: #fff; font-size: 13px; font-weight: 600;
}
.ld-card-tag i { color: var(--ld-green); }
.ld-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ld-card-title { margin: 0 0 8px; color: var(--ld-navy); font-size: 18.5px; font-weight: 700; line-height: 1.35; }
.ld-card-text { flex: 1; margin: 0 0 16px; color: var(--ld-text-light); font-size: 14.5px; line-height: 1.65; }
.ld-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--ld-green); font-size: 14.5px; font-weight: 700; }
.ld-card-link i { transition: transform .2s ease; }
.ld-card:hover .ld-card-link i { transform: translateX(4px); }
.ld-more { margin-top: 36px; text-align: center; }
.ld-more[hidden] { display: none; }
.ld-btn-outline { background: transparent; color: var(--ld-green); cursor: pointer; }
.ld-btn-outline:hover { background: var(--ld-green); border-color: var(--ld-green); color: #fff; }
.ld-empty { margin: 10px 0 0; text-align: center; color: var(--ld-text-light); font-size: 15px; }
.ld-empty a { color: var(--ld-green); font-weight: 600; }

/* ---------- cta ---------- */
.ld-cta { padding: 60px 0; background: var(--ld-navy); color: #fff; }
.ld-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ld-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.ld-cta p { max-width: 640px; margin: 0; color: rgba(255, 255, 255, .75); font-size: 15.5px; line-height: 1.7; }
.ld-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 2px solid var(--ld-green);
    border-radius: 100px; background: var(--ld-green); color: #fff; font-size: 15px; font-weight: 700; transition: all .2s ease;
}
.ld-btn:hover { background: var(--ld-green-dark); border-color: var(--ld-green-dark); color: #fff; }
.ld-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.ld-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ---------- responsive ---------- */
@media (min-width: 992px) {
    .ld-hero { padding: 190px 0 90px; }
}
@media (max-width: 991.98px) {
    .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ld-cta-inner { flex-direction: column; text-align: center; }
    .ld-cta p { margin: 0 auto; }
    .ld-cta-actions { justify-content: center; }
}
@media (max-width: 575.98px) {
    .ld-hero { padding: 130px 0 50px; }
    .ld-list { padding: 50px 0; }
    .ld-grid { grid-template-columns: 1fr; }
    .ld-cta-actions { flex-direction: column; width: 100%; }
    .ld-btn { width: 100%; }
}
