/* Sections that belong to one page: the home page bands, the directory hubs, the city/county/facility
   layouts, the search page and the price-list viewer. Shared pieces are in components.css. */

/* Home */
.home-hero {
    background-color: var(--color-bg);
    background-image: var(--hero-light-gradient);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-10) 0 var(--space-8) 0;
}

.home-hero::before {
    display: none;
}

.home-hero h1 {
    color: var(--color-navy);
    font-weight: 600;
}

.home-hero .lede {
    color: var(--color-text-2);
}

.home-hero .toggle-pill {
    margin-bottom: var(--space-5);
    background-color: var(--color-surface);
}

.home-hero .loc-search form {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-2);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-5);
    flex-wrap: wrap;
}

.trust-bar strong {
    color: var(--color-navy);
}

.home-hero .trust-bar {
    color: var(--color-text-2);
    border-top-color: var(--color-border);
}

.home-hero .trust-bar strong {
    color: var(--color-navy);
}

.trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-bar .dot {
    opacity: 0.3;
}

.trust-bar.start {
    justify-content: flex-start;
    border-top: 0;
    padding-top: 0;
    margin-bottom: 2rem;
}

.trust-bar.sand {
    color: var(--color-sand);
    font-weight: 600;
    font-size: 0.92rem;
}

.quick-locations {
    margin: 1.25rem 0 2.5rem 0;
}

.quick-locations .label {
    color: rgba(255, 255, 255, 0.8);
}

.home-hero .quick-locations .label {
    color: var(--slate-500);
}

.advisor-section {
    padding: var(--space-6) 0 0 0;
    position: relative;
    z-index: 10;
}

.advisor-card {
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    gap: var(--space-3);
}

.advisor-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
}

.advisor-content h2,
.advisor-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.advisor-content p {
    font-size: 0.95rem;
    color: var(--color-text-2);
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto;
}

.advisor-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.promise-grid {
    align-items: stretch;
    gap: var(--space-6);
}

.promise-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.promise-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    background-color: var(--slate-100);
}

.promise-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.promise-item:hover .promise-img {
    transform: scale(1.03);
}

.promise-item h3 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.promise-body {
    font-size: 0.92rem;
    color: var(--color-text-2);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.promise-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.cost-snapshot {
    padding: 0 0 6rem 0;
}

.cost-snapshot-card {
    padding: 4rem;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    border-radius: var(--radius-lg);
}

.cost-snapshot-copy {
    align-items: flex-start;
}

.cost-snapshot-copy .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.dot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
}

.dot-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dot-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-top: 7px;
    flex-shrink: 0;
}

.receipt {
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.receipt-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--slate-50);
}

.receipt-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-600);
}

.receipt-total {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 0.5rem;
}

.receipt-total small {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-text-2);
}

.receipt-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.receipt-items .kv {
    font-size: 0.92rem;
}

.receipt-foot {
    padding: 1.15rem 1.5rem;
    background-color: var(--slate-50);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.receipt-foot a {
    color: var(--color-navy);
    text-decoration: underline;
}

.standard-card {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    box-shadow: none;
}

.standard-head {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.standard-title {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--color-navy);
}

.standard-body {
    font-size: var(--text-base);
    color: var(--color-text-2);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    flex: 1;
}

.standard-card h3,
.standard-card h4 {
    font-size: var(--text-sm);
    color: var(--color-navy);
}

.small {
    font-size: 0.85rem;
}

.final-cta {
    padding: var(--space-10) 0;
    background-color: var(--color-primary-soft);
    background-image: none;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.final-cta::before {
    display: none;
}

.final-cta h2 {
    font-family: var(--font-display);
    color: var(--color-navy);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 600;
    margin-bottom: var(--space-4);
    letter-spacing: -0.5px;
}

.final-cta .lede {
    color: var(--color-text-2);
}

@media (max-width: 768px) {
    .advisor-card,
    .standard-card {
        padding: var(--space-5);
    }

    .advisor-actions {
        width: 100%;
    }

    .promise-item {
        padding: var(--space-4);
    }

    .cost-snapshot {
        padding-bottom: 2.5rem;
    }

    .cost-snapshot-card {
        padding: 1.25rem;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .final-cta {
        padding: 2.5rem 0;
    }
}

/* Locations hub */
.location-hero {
    background-color: var(--color-bg);
    background-image: var(--hero-light-gradient);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.location-hero::before {
    display: none;
}

.location-hero h1 {
    color: var(--color-navy);
    font-weight: 600;
}

.location-hero .lede {
    color: var(--color-text-2);
}

.location-hero .breadcrumbs,
.location-hero .breadcrumbs a {
    color: var(--slate-500);
}

.location-hero .breadcrumbs .current {
    color: var(--color-navy);
}

.location-hero .trust-bar {
    color: var(--color-text-2);
}

.location-hero .trust-bar strong {
    color: var(--color-navy);
}

.location-hero .loc-search form {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.hero-copy {
    max-width: 800px;
    margin: 0 auto;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.5rem;
}

.state-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    border-color: var(--slate-300);
    color: inherit;
}

.state-card:hover img {
    transform: scale(1.05);
}

.state-card-photo {
    position: relative;
    height: 145px;
    overflow: hidden;
    background-color: var(--color-navy);
}

.state-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.state-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 46, 61, 0.72) 0%, rgba(31, 46, 61, 0.18) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
}

.state-abbr {
    align-self: flex-end;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-navy);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.state-card-overlay h3 {
    font-size: 1.35rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.25;
}

.state-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.state-card-body .kv {
    font-size: 0.9rem;
}

.state-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--color-text-2);
    font-weight: 500;
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* State page */
.state-hero {
    padding: var(--space-8) 0;
}

.state-hero-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.state-hero-grid > div:first-child {
    flex: 1;
}

.state-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    letter-spacing: -0.75px;
}

.breadcrumbs.upper {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.88rem;
}

.state-dashboard-section {
    padding: var(--space-6) 0 var(--space-4) 0;
}

.state-dashboard {
    position: relative;
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.state-dashboard-head {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.state-dashboard-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    margin-bottom: 0.5rem;
}

.stat.soft {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}

.stat.centered {
    text-align: center;
    padding: 1.5rem;
}

.stat .value.big {
    font-size: 2.25rem;
}

.stat .value.sm {
    font-size: 1.05rem;
}

.stat.outlined {
    background: var(--color-surface);
}

.stat.outlined h3,
.stat.outlined h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.stat.outlined p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.after-feature {
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
}

.after-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-5);
    align-items: center;
}

.after-feature-title {
    margin-bottom: var(--space-2);
    gap: var(--space-3);
    align-items: center;
}

.after-feature-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

.after-feature-title h3 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    line-height: 1.25;
}

.after-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.after-perks {
    font-size: var(--text-sm);
    margin: var(--space-3) 0;
    gap: var(--space-3);
}

.after-perks span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.after-price-box {
    background-color: var(--color-surface);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    text-align: center;
}

.after-price-box .label {
    font-size: 0.85rem;
    color: var(--color-text-2);
    text-transform: uppercase;
    font-weight: 500;
}

.after-price-box .amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.underline {
    text-decoration: underline;
}

.list-head {
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.list-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    margin-top: 0.25rem;
}

.eyebrow-plain {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}

.facility-mini {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem;
}

.facility-mini-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.facility-mini-head h3 {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1 1 180px;
    min-width: 0;
    word-break: break-word;
}

.facility-mini-head h3 a {
    color: inherit;
}

.facility-mini-foot {
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.facility-mini-foot .label {
    font-size: 0.72rem;
    color: var(--color-text-2);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.facility-mini-foot .amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
}

.city-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.city-feature-card {
    display: block;
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.city-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.city-feature-photo {
    height: 175px;
    background-color: var(--color-navy);
    background-size: cover;
    background-position: center;
    position: relative;
}

.city-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 46, 61, 0.7) 0%, rgba(31, 46, 61, 0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.15rem;
}

.city-feature-overlay h3 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.city-feature-overlay p {
    color: var(--slate-200);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.city-feature-foot {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.city-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 0.85rem;
}

.city-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.city-list-link:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.city-list-link .arrow {
    color: var(--color-primary);
    font-size: 1.2rem;
    opacity: 0.5;
}

.county-section {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.county-intro {
    max-width: 780px;
    margin-bottom: 2rem;
}

.county-intro .section-title {
    margin: 0.75rem 0 0.5rem;
}

.county-intro .section-sub {
    margin-top: 0;
}

.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.85rem;
}

.county-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.15rem;
    background-color: var(--color-surface);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    color: inherit;
}

.county-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 94, 0.08);
}

.county-name {
    display: block;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.county-sub {
    display: block;
    color: var(--color-text-2);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.county-card .arrow {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.regulation-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.regulation-layout > div:first-child {
    flex: 1;
}

.regulation-layout h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
}

.regulation-layout p.muted {
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.regulation-law-link {
    margin-top: var(--space-4);
}

.regulation-side {
    width: 350px;
    flex-shrink: 0;
}

.help-box {
    background-color: var(--color-primary-soft);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: none;
    color: var(--color-text);
}

.help-box h3 {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.help-box p {
    color: var(--color-text-2);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.help-box .btn-white {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

.help-box .btn-white:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-surface);
}

@media (max-width: 960px) {
    .state-hero-grid,
    .regulation-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .regulation-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .state-hero {
        padding: 2rem 0 2.25rem 0;
    }

    .state-dashboard {
        padding: 1.5rem 1.25rem;
    }

    .after-feature,
    .help-box {
        padding: 1.25rem;
    }
}

/* City, county and facility pages */
.main-col {
    min-width: 0;
    gap: 2rem;
}

.side-col {
    min-width: 0;
    gap: 2rem;
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.provider-list .provider-card {
    margin-bottom: 0;
}

.provider-card .stretch {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.provider-card .provider-meta a,
.provider-card .provider-actions {
    position: relative;
    z-index: 2;
}

.provider-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background-color: var(--slate-100);
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.provider-logo.placeholder.sage {
    background-color: var(--color-primary-soft);
}

.chip.more {
    border: none;
    background: none;
    color: var(--color-text-2);
}

.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-color: var(--slate-300);
    color: var(--color-primary);
}

.notice-row strong {
    display: block;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.card.dashed {
    border-style: dashed;
    border-color: var(--slate-300);
}

.empty-state {
    padding: 2rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 540px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

table.data td.ok {
    color: var(--color-success);
    font-weight: 600;
}

.faq-card {
    margin-bottom: 1rem;
}

.faq-card h3,
.faq-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
    gap: 0.75rem;
}

.nearby-pill {
    padding: 0.65rem 0.9rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.86rem;
    text-align: center;
    display: block;
    color: var(--color-primary);
    transition: all 0.15s ease;
}

.nearby-pill:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.nearby-pill strong {
    display: block;
}

.nearby-pill span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
}

.map-card {
    padding: 1rem;
    background-color: var(--color-bg);
}

provider-map {
    display: block;
    position: relative;
    z-index: 0;
    isolation: isolate;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--color-sand);
    border: 1px solid var(--color-border);
    min-height: 200px;
}

provider-map .leaflet-tile-pane {
    filter: saturate(0.32) sepia(0.16) brightness(1.04) contrast(0.94);
}

provider-map .leaflet-control-zoom {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

provider-map .leaflet-control-zoom a {
    background-color: var(--color-surface);
    color: var(--color-navy);
    border-bottom-color: var(--color-border);
}

provider-map .leaflet-control-zoom a:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

.map-canvas {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.map-pill-wrap {
    background: transparent;
    border: none;
}

.map-pill {
    display: inline-block;
    background-color: var(--color-navy);
    color: var(--color-surface);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(31, 46, 61, 0.22);
    border: 2px solid var(--color-surface);
    white-space: nowrap;
    font-family: var(--font-body);
}

.map-pill.digital {
    background-color: var(--color-primary);
}

.map-popup {
    font-family: var(--font-body);
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-popup strong {
    font-size: 13px;
    color: var(--slate-800);
    line-height: 1.3;
}

.map-popup small {
    color: var(--slate-500);
    font-size: 11px;
}

.map-popup-price {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
    font-size: 11px;
    color: var(--slate-500);
}

.map-popup-price b {
    color: var(--color-primary);
    font-size: 13px;
}

.map-popup a,
provider-map .map-popup a,
.leaflet-container .map-popup a {
    display: block;
    margin-top: var(--space-1);
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color var(--transition);
}

.map-popup a:hover,
provider-map .map-popup a:hover,
.leaflet-container .map-popup a:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-surface);
}

.map-popup a:focus-visible,
provider-map .map-popup a:focus-visible,
.leaflet-container .map-popup a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.quick-facts {
    padding: 1.35rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.quick-facts .ftc {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.72rem;
}

.quick-facts p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-2);
    margin: 0.65rem 0 1rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
}

.facts-grid dt {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.facts-grid dd {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    margin-top: 0.2rem;
}

.quick-facts-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.ok {
    color: var(--color-success);
}

.cost-card {
    padding: 2rem;
    background-color: var(--color-bg);
    border-top: 2px solid var(--color-primary);
}

.cost-card h3 {
    margin-bottom: 1rem;
}

.kv.line {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.town-link {
    color: var(--color-navy);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.town-link:hover {
    border-color: var(--color-primary);
    color: var(--color-navy);
}

/* Facility profile */
.profile-head {
    background-color: var(--color-bg);
    background-image: var(--hero-light-gradient);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0 3rem 0;
}

.profile-head .breadcrumbs {
    margin-bottom: 1.5rem;
}

.notice {
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.notice.amber {
    background-color: var(--amber-50);
    border: 1px solid #fde68a;
    color: #92400e;
}

.notice.red {
    background-color: var(--red-50);
    border: 1px solid var(--red-200);
    color: #b91c1c;
}

.notice.red strong {
    color: var(--red-800);
}

.notice.red p {
    font-size: 0.85rem;
    margin-top: 2px;
}

.notice > span:first-child {
    font-size: 1.4rem;
}

.profile-identity {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-identity-body {
    flex: 1;
    min-width: 0;
}

.profile-identity h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    word-break: break-word;
}

.profile-logo {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 6px;
}

.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-logo.placeholder {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 2.4rem;
    font-weight: 700;
    border-color: #c2ded3;
}

.profile-address {
    font-size: 1rem;
    margin-top: 0.25rem;
    word-break: break-word;
}

.card-head-line {
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.card-head-line h2,
h2.card-head-line {
    font-size: 1.5rem;
}

.h-md {
    font-size: 1.35rem;
}

.h-sm {
    font-size: 1.02rem;
    font-weight: 700;
}

.price-tag {
    text-align: right;
}

.price-tag .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
}

.price-tag .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.gpl-line,
.claim-line {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}

.claim-line {
    padding: 1rem 1.25rem;
    background-color: var(--slate-100);
    border-radius: 10px;
    border-top: 0;
}

.gpl-btn {
    background-color: var(--blue-50);
    border: 2px solid var(--blue-200);
    color: var(--blue-700);
    font-weight: 600;
}

.gpl-btn:hover {
    background-color: var(--blue-700);
    color: #fff;
}

.gpl-link {
    color: var(--blue-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge.sky {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.service-tile {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--slate-50);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.service-tile strong {
    font-size: 0.92rem;
    color: var(--slate-800);
}

.service-tile p {
    margin-top: 2px;
    color: var(--slate-600);
    line-height: 1.35;
    font-size: 0.8rem;
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: var(--slate-700);
}

.tone-orange { background: #fff7ed; border-color: #ffedd5; }
.tone-orange strong, .tone-orange .service-icon { color: #9a3412; }
.tone-indigo { background: #eef2ff; border-color: #e0e7ff; }
.tone-indigo strong, .tone-indigo .service-icon { color: #3730a3; }
.tone-emerald { background: var(--mint-50); border-color: #d1fae5; }
.tone-emerald strong, .tone-emerald .service-icon { color: #065f46; }
.tone-green { background: var(--green-50); border-color: var(--green-100); }
.tone-green strong, .tone-green .service-icon { color: var(--green-800); }
.tone-sky { background: #f0f9ff; border-color: #e0f2fe; }
.tone-sky strong, .tone-sky .service-icon { color: #0369a1; }
.tone-teal { background: #f0fdfa; border-color: #ccfbf1; }
.tone-teal strong, .tone-teal .service-icon { color: #115e59; }
.tone-yellow { background: #fefce8; border-color: #fef08a; }
.tone-yellow strong, .tone-yellow .service-icon { color: #854d0e; }

.note-row {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--slate-50);
}

.note-row p {
    font-size: 0.9rem;
    color: var(--slate-800);
    line-height: 1.5;
    margin-top: 0.35rem;
}

.note-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.note-row.closure_flag {
    background: var(--red-50);
    border-color: var(--red-200);
}

.note-row.closure_flag .note-type {
    color: #b91c1c;
}

.note-row.pricing_audit {
    background: var(--green-50);
    border-color: var(--green-200);
}

.note-row.pricing_audit .note-type {
    color: var(--green-700);
}

.label-upper {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-2);
    letter-spacing: 0.5px;
}

.price-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0.25rem 0;
}

.other-provider {
    display: block;
    color: inherit;
}

.other-provider strong {
    font-size: 0.9rem;
    color: var(--color-navy);
    display: block;
    margin-bottom: 4px;
}

.other-provider:hover {
    border-color: var(--color-primary);
}

.local-directory-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    text-align: center;
}

.service-row {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row h3 {
    font-size: 1.1rem;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Search page */
.search-page {
    background-color: var(--slate-50);
    min-height: 100vh;
}

.search-head {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0 1.25rem 0;
    margin-bottom: 1.5rem;
}

.view-toggle {
    display: flex;
    background-color: var(--slate-100);
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.view-toggle button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.view-toggle button.is-active {
    background-color: #fff;
    color: var(--slate-800);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.live-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    display: inline-block;
}

.live-label {
    color: var(--green-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
}

.sep {
    color: var(--slate-300);
}

.search-title {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}

.search-controls {
    gap: 10px;
}

.search-controls .control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.search-controls select {
    width: auto;
    padding: 7px 32px 7px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background-position: right 10px center;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: var(--slate-50);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.instant-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1 1 min(100%, 280px);
    color: var(--slate-500);
}

.instant-filter:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--ring);
}

.instant-filter input {
    border: none;
    padding: 4px 0;
    font-size: 0.88rem;
    box-shadow: none;
    background: transparent;
}

.instant-filter button {
    background: none;
    border: none;
    padding: 2px;
    display: flex;
    color: var(--slate-500);
}

.budget {
    gap: 6px;
}

.budget-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--slate-300);
    background-color: #fff;
    color: var(--slate-600);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.budget-btn.is-active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .budget-btn {
        min-height: 44px;
        padding-inline: 12px;
    }
}

.chips-row {
    gap: 8px;
}

.pill.is-gpl {
    background-color: var(--blue-50);
    border-color: #3b82f6;
    color: var(--blue-700);
    font-weight: 600;
}

.pill.is-verified {
    background-color: var(--green-50);
    border-color: var(--color-primary);
    color: var(--green-800);
    font-weight: 600;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px dashed #ef4444;
    background-color: var(--red-50);
    color: var(--red-600);
    font-size: 0.78rem;
    font-weight: 600;
}

.results-layout {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.results-cards {
    flex: 1 1 58%;
    min-width: 0;
}

.results-cards.is-full {
    flex: 1 1 100%;
}

.results-cards.is-hidden,
.results-map.is-hidden {
    display: none;
}

.results-map {
    flex: 1 1 42%;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - 120px);
    min-height: 580px;
}

.results-map.is-full {
    flex: 1 1 100%;
    position: static;
    height: 720px;
}

.map-frame {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    background-color: #fff;
    padding: 4px;
}

.map-frame provider-map {
    height: 100%;
    border-radius: 12px;
}

@media (max-width: 960px) {
    .results-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .results-cards,
    .results-map {
        flex: 1 1 100%;
        width: 100%;
        position: static;
    }

    .results-map {
        height: 380px;
        min-height: 360px;
    }

    .results-map.is-full {
        height: 460px;
    }
}

@media (max-width: 640px) {
    .view-toggle {
        width: 100%;
    }

    .view-toggle button {
        flex: 1;
    }

    .search-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-controls .control {
        justify-content: space-between;
    }

    .search-controls select {
        flex: 1;
        width: 100%;
    }
}

/* Price-list viewer */
.gpl-page {
    padding-block: var(--space-6) var(--space-8);
}

.gpl-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.gpl-head {
    min-width: 0;
}

.gpl-back {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
}

.gpl-badges {
    margin-top: var(--space-3);
    gap: var(--space-2);
    flex-wrap: wrap;
}

.gpl-title {
    margin-top: var(--space-2);
}

.gpl-meta {
    margin-top: var(--space-2);
    line-height: 1.5;
}

.gpl-phone-link {
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
}

.gpl-actions-desktop {
    flex-shrink: 0;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.gpl-mobile-card {
    display: none;
    margin-bottom: var(--space-4);
}

.gpl-mobile-card-head {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.gpl-mobile-card-head p {
    margin-top: var(--space-1);
}

.gpl-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.gpl-frame {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.gpl-frame iframe {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 0;
    display: block;
}

.gpl-fallback {
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .gpl-page {
        padding-block: var(--space-5) var(--space-10);
    }

    .gpl-toolbar {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .gpl-actions-desktop {
        display: none;
    }

    .gpl-mobile-card {
        display: block;
    }

    .gpl-frame iframe {
        height: 55vh;
        min-height: 360px;
    }
}

/* Not found */
.not-found {
    background-color: var(--slate-50);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 1rem;
}

.not-found h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.not-found-search {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid var(--slate-300);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 4px 4px 4px 14px;
    gap: 8px;
    max-width: 560px;
    margin: 2rem auto 0;
}

.not-found-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--ring);
}

.not-found-search input {
    border: none;
    box-shadow: none;
    padding: 12px 0;
    font-size: 0.95rem;
}

.text-left {
    text-align: left;
}

/* Auth, Dashboard & Provider Portal */
.auth {
    padding: var(--space-10) var(--space-4);
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: var(--space-7);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.auth-card .error {
    background: var(--red-50);
    border: 1px solid var(--red-200);
    color: var(--red-800);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    margin-top: var(--space-3);
}

.dashboard {
    padding-block: var(--space-8) var(--space-10);
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 780px;
}

.dashboard-actions {
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.portal-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.portal-head {
    align-items: flex-end;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.portal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-5);
}

.portal-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.portal-card-top {
    align-items: flex-start;
    gap: var(--space-3);
}

.portal-card-top h2 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: var(--space-1);
}

.portal-price {
    text-align: right;
    flex-shrink: 0;
}

.portal-price strong {
    display: block;
    font-size: 1.35rem;
    color: var(--color-primary);
}

.portal-badges {
    gap: var(--space-2);
    flex-wrap: wrap;
}

.portal-card-actions {
    padding-top: var(--space-3);
    border-top: 1px solid var(--slate-100);
    margin-top: auto;
}

.portal-empty {
    padding: var(--space-8) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.portal-empty p {
    max-width: 540px;
}

.portal-empty-actions {
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.portal-form .form-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--slate-100);
}

.portal-form .form-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-form-foot {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    gap: var(--space-3);
    flex-wrap: wrap;
}

.gpl-transparency-strip {
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

/* Spanish hub (/es/) */
.btn-pair.es-hero-ctas {
    margin-top: var(--space-2);
    max-width: 660px;
}

.es-trust-bar {
    margin-top: var(--space-6);
}

.es-feature-card {
    height: 100%;
}

.es-feature-badge {
    margin-bottom: var(--space-3);
}

.es-advisor-card {
    background-color: var(--color-surface);
}

.es-advisor-actions {
    width: 100%;
    margin-top: var(--space-2);
}
