:root {
    --bp-primary: var(--rd-teal);
    --bp-primary-dark: var(--rd-navy);
    --bp-secondary: var(--rd-navy-strong);
    --bp-text: var(--rd-text);
    --bp-text-light: var(--rd-muted);
    --bp-bg-light: var(--rd-bg-soft);
    --bp-border: var(--rd-line);
    --bp-white: var(--rd-surface);
    --bp-shadow: 0 10px 30px rgba(24, 52, 89, 0.05);
    --bp-shadow-lg: 0 18px 50px rgba(19, 37, 63, 0.10);
}

.locality-copy-stack {
    display: grid;
    gap: 16px;
}

.locality-copy-stack p {
    margin: 0;
}

.locality-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--bp-text-light);
}

.locality-inline-links a {
    color: var(--bp-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(24, 52, 89, 0.24);
    text-underline-offset: 3px;
}

.locality-inline-links a:hover {
    color: var(--bp-primary);
    text-decoration-color: rgba(63, 143, 199, 0.4);
}

.locality-note {
    margin-top: 18px;
    color: var(--bp-text-light);
    line-height: 1.6;
}

.locality-note p {
    margin: 0 0 10px;
}

.locality-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.locality-subsection {
    display: grid;
    gap: 14px;
}

.locality-subsection h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--bp-primary-dark);
}

.locality-subsection p {
    margin: 0;
    color: var(--bp-text-light);
    line-height: 1.6;
}

.locality-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(191, 216, 240, 0.95);
    color: var(--bp-primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.locality-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 52, 89, 0.16);
    box-shadow: 0 12px 24px rgba(24, 52, 89, 0.08);
}

.locality-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.locality-faq-card {
    background: #fff;
    border: 1px solid rgba(24, 52, 89, 0.08);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(24, 52, 89, 0.05);
}

.locality-faq-card h3 {
    margin: 0 0 10px;
    color: var(--bp-primary-dark);
    font-size: 1.2rem;
    line-height: 1.2;
}

.locality-faq-card p {
    margin: 0;
    color: var(--bp-text-light);
    line-height: 1.6;
}

.locality-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.locality-link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(24, 52, 89, 0.08);
    box-shadow: 0 12px 28px rgba(24, 52, 89, 0.08);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.locality-link-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.68), transparent 72%);
    pointer-events: none;
}

.locality-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24, 52, 89, 0.12);
    border-color: rgba(24, 52, 89, 0.12);
}

.locality-link-card:nth-child(1) { background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%); }
.locality-link-card:nth-child(2) { background: linear-gradient(135deg, #fff4e4 0%, #ffffff 100%); }
.locality-link-card:nth-child(3) { background: linear-gradient(135deg, #edf9ff 0%, #ffffff 100%); }
.locality-link-card:nth-child(4) { background: linear-gradient(135deg, #f3f6fd 0%, #ffffff 100%); }

.locality-link-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(24, 52, 89, 0.08);
    color: var(--bp-primary-dark);
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(24, 52, 89, 0.06);
}

.locality-link-card h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--bp-primary-dark);
}

.locality-link-card p {
    margin: 0;
    color: var(--bp-text);
    line-height: 1.55;
}

.locality-link-card span {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--bp-primary-dark);
}

.locality-link-card span i {
    font-size: 0.92rem;
    transition: transform .2s ease;
}

.locality-link-card:hover span i {
    transform: translateX(2px);
}

.locality-note-panel {
    margin-top: 22px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(24, 52, 89, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
    box-shadow: 0 12px 30px rgba(24, 52, 89, 0.07);
}

.locality-meta-line {
    margin: 18px 0 0;
    color: var(--bp-text-light);
    line-height: 1.6;
}

.locality-meta-line strong {
    color: var(--bp-primary-dark);
}

.stats {
    padding: 10px 0 34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid rgba(24, 52, 89, 0.08);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(24, 52, 89, 0.06);
}

.stat-card:nth-child(1) { background: linear-gradient(135deg, #edf6ff 0%, #ffffff 100%); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #fff2dc 0%, #ffffff 100%); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #eef3fb 0%, #ffffff 100%); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #eef9f6 0%, #ffffff 100%); }

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--bp-primary-dark);
    margin-bottom: 6px;
}

.stat-card span {
    display: block;
    color: var(--bp-text-light);
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-step-icon {
    width: 84px;
    height: 84px;
    margin: 0 0 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 52, 89, 0.08);
    box-shadow: 0 12px 28px rgba(24, 52, 89, 0.08);
}

.services-grid .service-card:nth-child(1) .service-step-icon {
    background: linear-gradient(135deg, #edf6ff 0%, #ffffff 100%);
    color: #255489;
}

.services-grid .service-card:nth-child(2) .service-step-icon {
    background: linear-gradient(135deg, #fff3df 0%, #ffffff 100%);
    color: #c87b00;
}

.services-grid .service-card:nth-child(3) .service-step-icon {
    background: linear-gradient(135deg, #eef4fb 0%, #ffffff 100%);
    color: #183459;
}

.service-step-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.service-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-bottom: 18px;
}

.service-links a {
    color: var(--bp-primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
}

.panel {
    background: #fff;
    border: 1px solid rgba(24, 52, 89, 0.08);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(24, 52, 89, 0.08);
}

.trust-grid .panel:first-child {
    background:
        radial-gradient(circle at top right, rgba(63, 143, 199, 0.10), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
}

.panel p {
    margin-top: 0;
    color: var(--bp-text-light);
    line-height: 1.7;
}

.benefits {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.benefit {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(24, 52, 89, 0.06);
}

.benefit:nth-child(1) { background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%); }
.benefit:nth-child(2) { background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%); }
.benefit:nth-child(3) { background: linear-gradient(135deg, #eef9f7 0%, #ffffff 100%); }

.benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 52, 89, 0.08), rgba(63, 143, 199, 0.12));
    color: var(--bp-primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.benefit strong {
    display: block;
    color: var(--bp-primary-dark);
    margin-bottom: 6px;
}

.benefit span {
    display: block;
    color: var(--bp-text-light);
    line-height: 1.55;
}

.quote-card {
    background:
        radial-gradient(circle at top right, rgba(245, 159, 24, 0.28), transparent 24%),
        linear-gradient(180deg, #1b375d, #20456f 58%, #16365b);
    color: #fff;
}

.quote-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.quote-card p {
    color: rgba(255, 255, 255, 0.82);
}

.quote-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.quote-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.quote-item strong {
    display: block;
    margin-bottom: 4px;
}

.quote-item span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

.review-shell {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
    border: 1px solid rgba(24, 52, 89, 0.08);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(24, 52, 89, 0.08);
}

.gallery-shell {
    background:
        radial-gradient(circle at left top, rgba(245, 159, 24, 0.10), transparent 22%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(24, 52, 89, 0.08);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(24, 52, 89, 0.08);
}

.locality-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.locality-overview-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(24, 52, 89, 0.08);
    box-shadow: 0 12px 30px rgba(24, 52, 89, 0.07);
}

.locality-overview-card:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.locality-overview-card:nth-child(2) {
    background: linear-gradient(135deg, #fff7ea 0%, #ffffff 100%);
}

.locality-overview-card:nth-child(3) {
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.locality-overview-card h3 {
    margin: 0;
    color: var(--bp-primary-dark);
    font-size: 1.3rem;
    line-height: 1.15;
}

.locality-overview-card p {
    margin: 0;
    color: var(--bp-text-light);
    line-height: 1.6;
}

.locality-action-list {
    display: grid;
    gap: 12px;
}

.locality-action-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(24, 52, 89, 0.08);
    box-shadow: 0 8px 20px rgba(24, 52, 89, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.locality-action-link:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 143, 199, 0.22);
    box-shadow: 0 14px 28px rgba(24, 52, 89, 0.09);
}

.locality-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 52, 89, 0.08), rgba(63, 143, 199, 0.14), rgba(245, 159, 24, 0.16));
    color: var(--bp-primary-dark);
    font-size: 1.1rem;
}

.locality-action-copy {
    display: grid;
    gap: 4px;
}

.locality-action-copy strong {
    color: var(--bp-primary-dark);
}

.locality-action-copy span {
    color: var(--bp-text-light);
    line-height: 1.5;
    font-size: 0.93rem;
}

.locality-support-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.ec-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.ec-gallery.before-after-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ec-gallery > * {
    grid-column: span 4;
    display: block;
}

.ec-gallery.before-after-grid > * {
    grid-column: auto;
}

.ec-gallery > *.ec-gallery-wide {
    grid-column: span 6;
}

.ec-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(219, 228, 237, 0.96);
    box-shadow: 0 10px 30px rgba(24, 52, 89, 0.05);
    display: block;
}

.ec-compare {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(219, 228, 237, 0.96);
    box-shadow: 0 10px 30px rgba(24, 52, 89, 0.05);
    overflow: hidden;
    background: #111827;
}

.ec-compare-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: var(--ec-compare-aspect, 4 / 3);
    background: #111827;
}

.ec-compare-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #111827;
}

.ec-compare-before-wrap {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
}

.ec-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    pointer-events: none;
}

.ec-compare-handle::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.ec-compare-knob {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -0.04em;
    user-select: none;
}

.ec-compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    touch-action: none;
}

.ec-compare-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.ec-compare-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

.ec-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 20000;
}

.ec-lightbox.open {
    display: flex;
}

.ec-lightbox-dialog {
    position: relative;
    width: min(1100px, 100%);
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: block;
}

.ec-lightbox-figure {
    margin: 0;
    position: relative;
    display: block;
}

.ec-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
    display: block;
}

.ec-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0));
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

.ec-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: none;
    background: rgba(2, 6, 23, 0.55);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-lightbox-nav {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: none;
    background: rgba(2, 6, 23, 0.45);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.ec-lightbox-prev {
    left: 14px;
}

.ec-lightbox-next {
    right: 14px;
}

.ec-lightbox-nav:hover,
.ec-lightbox-close:hover {
    background: rgba(2, 6, 23, 0.7);
}

@media (max-width: 900px) {
    .stats-grid,
    .services-grid,
    .trust-grid,
    .locality-faq-grid {
        grid-template-columns: 1fr;
    }

    .ec-gallery.before-after-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-gallery > * {
        grid-column: span 6;
    }

    .ec-gallery > *.ec-gallery-wide {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .locality-link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stat-card strong {
        font-size: 1.45rem;
    }

    .ec-gallery.before-after-grid {
        grid-template-columns: 1fr;
    }

    .ec-gallery > *,
    .ec-gallery > *.ec-gallery-wide {
        grid-column: span 12;
    }
}

@media (max-width: 520px) {
    .ec-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
        border-radius: 14px;
    }

    .ec-lightbox-prev {
        left: 10px;
    }

    .ec-lightbox-next {
        right: 10px;
    }

    .ec-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}
