:root {
    --bg-main: #F5F7FB;
    --bg-soft: #EEF2F7;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.88);
    --surface-dark: rgba(17, 24, 39, 0.82);
    --text-main: #111827;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --primary: #F59E0B;
    --primary-soft: #FEF3C7;
    --primary-dark: #D97706;
    --trust-blue: #2563EB;
    --trust-blue-soft: #DBEAFE;
    --success: #16A34A;
    --success-soft: #DCFCE7;
    --danger: #DC2626;
    --danger-soft: #FEE2E2;
    --border-glass: rgba(255, 255, 255, 0.55);
    --border-soft: rgba(148, 163, 184, 0.22);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-glass: 0 24px 70px rgba(15, 23, 42, 0.14);
    --shadow-button: 0 14px 34px rgba(245, 158, 11, 0.32);
    --km-theme-bg: var(--bg-main);
    --km-theme-surface: var(--surface);
    --km-theme-surface-strong: var(--surface-strong);
    --km-theme-text: var(--text-main);
    --km-theme-muted: var(--text-muted);
    --km-theme-border: var(--border-soft);
    --km-theme-blue: var(--trust-blue);
    --km-theme-blue-soft: var(--trust-blue-soft);
    --km-theme-green: var(--success);
    --km-theme-green-soft: var(--success-soft);
    --km-theme-shadow: var(--shadow-soft);
    --km-sb-bg: var(--bg-main);
    --km-sb-bg-strong: var(--bg-soft);
    --km-sb-surface: var(--surface);
    --km-sb-surface-solid: #FFFFFF;
    --km-sb-surface-soft: rgba(255, 255, 255, 0.62);
    --km-sb-text: var(--text-main);
    --km-sb-muted: var(--text-muted);
    --km-sb-border: var(--border-soft);
    --km-sb-border-strong: rgba(148, 163, 184, 0.32);
    --km-sb-primary: var(--primary);
    --km-sb-primary-soft: var(--primary-soft);
    --km-sb-accent: var(--trust-blue);
    --km-sb-accent-soft: var(--trust-blue-soft);
    --km-sb-success: var(--success);
    --km-sb-success-soft: var(--success-soft);
    --km-sb-shadow: var(--shadow-glass);
    --km-sb-shadow-soft: var(--shadow-soft);
}

html {
    background: var(--bg-main);
}

body.km-theme-body,
.km-sb-home,
.km-sb-page,
.km-sb-profile-page,
.km-sb-province-page,
.km-sb-service-page,
.km-single-city {
    color: var(--text-main);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 26%),
        linear-gradient(225deg, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #FBFCFF 0%, var(--bg-main) 44%, var(--bg-soft) 100%) !important;
}

body.km-theme-body {
    text-rendering: optimizeLegibility;
}

body.km-theme-plugin-surface,
.km-sb-home,
.km-sb-page,
.km-single-city,
.km-inline-directory,
.km-directory-container {
    direction: rtl;
    font-family: "Vazir", Tahoma, Arial, sans-serif;
}

body.km-theme-plugin-surface *,
.km-sb-home *,
.km-sb-page *,
.km-single-city *,
.km-inline-directory *,
.km-directory-container * {
    letter-spacing: 0;
}

.km-theme-app a,
.km-sb-page a,
.km-sb-home a,
.km-single-city a,
.km-inline-directory a,
.km-directory-container a {
    text-decoration: none;
}

.km-theme-shell,
.km-sb-container,
.km-container {
    width: min(1220px, calc(100% - 32px));
    margin-inline: auto;
}

.km-theme-header,
.km-sb-shell-head,
.km-main-nav {
    position: sticky;
    top: 12px;
    z-index: 90;
    transition: transform 220ms ease, top 220ms ease;
}

.admin-bar .km-theme-header,
.admin-bar .km-sb-shell-head,
.admin-bar .km-main-nav {
    top: 44px;
}

.km-theme-header__inner,
.km-sb-topbar,
.km-main-nav .km-nav-container {
    min-height: 76px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-glass);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.km-main-nav .km-nav-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 18px;
}

.km-nav-logo,
.km-theme-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.km-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.km-nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.km-nav-menu button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.20);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.km-nav-menu a:hover,
.km-nav-menu a.active,
.km-nav-menu button:hover {
    color: var(--text-main);
    border-color: rgba(245, 158, 11, 0.30);
    background: rgba(255, 255, 255, 0.90);
}

.km-theme-mobile-nav__inner,
.km-sb-mobile-panel {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.km-theme-mobile-nav nav a,
.km-sb-mobile-panel__list a {
    border-radius: 18px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.km-theme-menu-toggle,
.km-sb-nav-toggle,
.km-mobile-menu-toggle {
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.km-theme-menu-toggle span,
.km-sb-nav-toggle span,
.km-mobile-menu-toggle span {
    background: var(--text-main);
    margin: 0 auto;
}

.km-theme-header.is-scrolled .km-theme-header__inner,
.km-sb-shell-head.is-scrolled .km-sb-topbar,
.km-main-nav.is-scrolled .km-nav-container {
    min-height: 68px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(148, 163, 184, 0.20);
}

.km-theme-brand__mark,
.km-sb-brand img,
.km-logo-badge {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.km-theme-nav a,
.km-sb-topbar__nav a,
.km-theme-footer__chips a,
.km-sb-inline-nav__item,
.km-sb-search__chip,
.km-sb-chip,
.km-sb-mini-tags span,
.filter-chip {
    min-height: 40px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    letter-spacing: 0;
}

.km-theme-nav a:hover,
.km-sb-topbar__nav a:hover,
.km-theme-footer__chips a:hover,
.km-sb-inline-nav__item:hover,
.km-sb-search__chip:hover,
.km-sb-chip:hover,
.km-sb-mini-tags span:hover {
    color: var(--text-main);
    border-color: rgba(245, 158, 11, 0.30);
    background: rgba(255, 255, 255, 0.90);
    transform: translateY(-2px);
}

.km-theme-button,
.km-sb-btn,
.km-btn,
.km-page-btn,
.km-submit-btn,
.km-collab-services-toggle {
    min-height: 48px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.km-theme-button--primary,
.km-sb-btn--primary {
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: var(--shadow-button);
}

.km-theme-button--primary:hover,
.km-sb-btn--primary:hover {
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.40);
}

.km-theme-button--secondary,
.km-sb-btn--secondary,
.km-btn-light,
.km-sb-btn--ghost {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: none;
}

.km-sb-btn--ghost {
    color: var(--success);
    background: rgba(220, 252, 231, 0.76);
    border-color: rgba(22, 163, 74, 0.18);
}

.km-theme-main {
    padding-bottom: 56px;
}

.km-sb-showcase {
    padding: 36px 0 18px;
}

.km-sb-showcase__grid,
.km-sb-showcase--home .km-sb-showcase__grid,
.km-sb-showcase--directory .km-sb-showcase__grid,
.km-sb-showcase--taxonomy .km-sb-showcase__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: stretch;
    gap: 22px;
}

.km-sb-showcase__copy,
.km-sb-showcase__discover,
.km-sb-search-card,
.km-sb-browser-panel,
.km-sb-feature-card,
.km-sb-city-card,
.km-sb-profile-card,
.km-sb-query-panel,
.km-sb-info-card,
.km-sb-profile-hero,
.km-sb-profile-main,
.km-sb-empty,
.km-theme-page-hero .km-theme-shell,
.km-theme-readable,
.km-theme-post-card,
.km-theme-article,
.km-theme-empty-state,
.km-theme-footer__hero,
.km-theme-footer__col,
.km-theme-footer__stats div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.km-sb-showcase__copy {
    min-height: 440px;
    padding: 34px;
    border-radius: 32px;
    color: #F8FAFC;
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.20), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.18), transparent 32%),
        linear-gradient(135deg, #111827 0%, #1E293B 56%, #0F172A 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.km-sb-showcase__copy::before {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 80px, transparent 80px 130px);
    height: 2px;
    inset: auto 28px 34px;
    border-radius: 999px;
}

.km-sb-showcase__copy h1,
.km-sb-profile h1,
.km-theme-page-hero h1,
.km-theme-article h1,
.km-header-title {
    font-size: 48px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: 0;
}

.km-sb-showcase__copy h1,
.km-sb-showcase__copy p {
    color: #F8FAFC;
}

.km-sb-showcase__copy p {
    max-width: 720px;
    color: #CBD5E1;
}

.km-sb-eyebrow,
.km-sb-topbar__pill,
.km-sb-feature-card__eyebrow,
.km-sb-profile-card__eyebrow,
.km-sb-city-card__eyebrow,
.km-theme-page-hero__eyebrow,
.km-theme-footer__eyebrow {
    color: #1D4ED8;
    background: rgba(219, 234, 254, 0.88);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.km-sb-showcase__copy .km-sb-eyebrow {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.20);
}

.km-sb-stat-grid,
.km-theme-footer__stats {
    gap: 12px;
}

.km-sb-metric {
    min-height: 104px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.km-sb-showcase__copy .km-sb-metric strong,
.km-sb-showcase__copy .km-sb-metric span {
    color: #F8FAFC;
}

.km-sb-showcase__copy .km-sb-metric span {
    color: #CBD5E1;
}

.km-sb-showcase__discover,
.km-sb-search-card {
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.km-sb-search-card,
.km-sb-browser-panel {
    padding: 24px;
}

.km-sb-search__bar,
.km-sb-browser-input,
.km-sb-browser-select,
.form-control,
.km-form-group input,
.km-form-group textarea,
.km-collaboration-form input,
.km-collaboration-form textarea {
    min-height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: none;
}

.km-sb-search__bar:focus-within,
.km-sb-browser-input:focus,
.km-sb-browser-select:focus,
.km-form-group input:focus,
.km-form-group textarea:focus,
.km-collaboration-form input:focus,
.km-collaboration-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
    outline: none;
}

.km-sb-search__icon {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(219, 234, 254, 0.86));
}

.km-sb-search__icon::before {
    border-color: var(--primary-dark);
}

.km-sb-search__icon::after {
    background: var(--primary-dark);
}

.km-sb-section,
.km-sb-related-cities {
    padding: 80px 0;
}

.km-sb-section__head,
.km-sb-results-head {
    align-items: center;
    padding: 16px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.km-sb-section__head h1,
.km-sb-section__head h2,
.km-sb-results-copy h2,
.km-section-title,
.km-section-title h2,
.km-page-title,
.km-sb-blog-card__title,
.km-sb-article-hero h1 {
    color: var(--text-main);
    line-height: 1.45;
    margin: 0;
    font-weight: 950;
    letter-spacing: 0;
}

.km-sb-section__head h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.km-sb-section__head h2,
.km-sb-results-copy h2,
.km-section-title,
.km-section-title h2,
.km-page-title {
    font-size: 28px;
}

.km-sb-blog-card__title {
    font-size: 18px;
}

.km-sb-article-hero h1 {
    font-size: 46px;
}

.km-sb-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.km-sb-feature-card,
.km-sb-profile-card {
    border-radius: 28px;
    padding: 24px;
}

.km-sb-feature-card:hover,
.km-sb-profile-card:hover,
.km-sb-city-card:hover,
.km-new-locksmith-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.km-sb-city-grid:not(.km-sb-city-grid--slider),
.km-sb-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.km-sb-city-card {
    border-radius: 30px;
    overflow: hidden;
}

.km-sb-city-card__visual {
    min-height: 172px;
}

.km-sb-city-card__body {
    padding: 20px;
}

.km-sb-city-card__cta,
.km-sb-feature-card__meta {
    color: var(--primary-dark);
    background: rgba(254, 243, 199, 0.80);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
}

.km-sb-browser-actions,
.km-sb-search__chips,
.km-sb-chip-row,
.km-sb-mini-tags {
    gap: 8px;
}

.km-sb-search__chip.is-active,
.filter-chip.active {
    color: #FFFFFF;
    background: #111827;
    border-color: rgba(17, 24, 39, 0.12);
}

/* Balanced home hero panels. */
.km-sb-showcase--home .km-sb-showcase__grid {
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.95fr);
    align-items: stretch;
    gap: 18px;
    max-width: 1060px;
    margin-inline: auto;
}

.km-sb-showcase--home .km-sb-showcase__copy {
    min-height: 292px;
    padding: 24px;
    border-radius: 24px;
    justify-content: center;
}

.km-sb-showcase--home .km-sb-showcase__copy::before {
    inset: auto 24px 24px 24px;
}

.km-sb-showcase--home .km-sb-showcase__copy h1 {
    margin: 10px 0 8px;
    max-width: 560px;
    font-size: clamp(28px, 3.1vw, 38px);
    line-height: 1.32;
}

.km-sb-showcase--home .km-sb-showcase__copy p {
    max-width: 520px;
    font-size: 13px;
    line-height: 1.9;
}

.km-sb-showcase--home .km-sb-inline-nav {
    margin-bottom: 8px;
}

.km-sb-showcase--home .km-sb-hero__actions {
    margin-top: 14px;
}

.km-sb-showcase--home .km-sb-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 15px;
    font-size: 13px;
}

.km-sb-showcase--home .km-sb-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.km-sb-showcase--home .km-sb-metric {
    min-height: 70px;
    padding: 10px 12px;
    border-radius: 16px;
}

.km-sb-showcase--home .km-sb-metric strong {
    font-size: 20px;
}

.km-sb-showcase--home .km-sb-metric span {
    font-size: 11px;
    line-height: 1.6;
}

.km-sb-showcase--home .km-sb-showcase__discover {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 292px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.km-sb-showcase--home .km-sb-search-card {
    width: 100%;
    min-height: 292px;
    padding: 24px;
    border-radius: 24px;
    display: grid;
    align-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.km-sb-showcase--home .km-sb-search-card__head {
    padding: 0 2px 16px;
}

.km-sb-showcase--home .km-sb-search-card__head strong {
    font-size: 19px;
    line-height: 1.55;
}

.km-sb-showcase--home .km-sb-search-card__head p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.9;
}

.km-sb-showcase--home .km-sb-search__bar {
    min-height: 58px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
}

.km-sb-showcase--home .km-sb-search__icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.km-sb-showcase--home .km-sb-search input {
    font-size: 15px;
}

.km-theme-plugin-surface .km-sb-blog-layout--no-sidebar,
.km-theme-plugin-surface .km-sb-article-grid--no-sidebar {
    grid-template-columns: minmax(0, 1fr) !important;
}

.km-theme-plugin-surface .km-sb-blog-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.km-theme-plugin-surface .km-sb-blog-grid--home .km-sb-blog-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
}

.km-theme-plugin-surface .km-sb-blog-card__media {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: 230px;
}

.km-theme-plugin-surface .km-sb-blog-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 760px) {
    .km-theme-plugin-surface .km-sb-blog-grid--home {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        padding: 4px 10px 14px;
        margin-inline: -10px;
        scroll-snap-type: x mandatory;
    }

    .km-theme-plugin-surface .km-sb-blog-grid--home .km-sb-blog-card {
        flex: 0 0 min(310px, 84vw);
        scroll-snap-align: start;
    }
}

@media (min-width: 861px) and (max-width: 1100px) {
    .km-sb-showcase--home .km-sb-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.km-sb-showcase--home .km-sb-search__bar .km-sb-btn {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
}

.km-sb-showcase--home .km-sb-search__chips {
    gap: 6px;
    margin-top: 10px;
}

.km-sb-showcase--home .km-sb-search__chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
}

.km-single-city {
    padding-bottom: 40px;
}

.km-single-city .km-container {
    max-width: 1220px;
}

.km-header {
    margin: 24px auto 28px;
    width: min(1220px, calc(100% - 32px));
    border-radius: 32px;
    padding: 42px 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.20), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1E293B 55%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.km-header::before {
    opacity: 1;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 80px, transparent 80px 130px);
    height: 2px;
    top: auto;
    right: 34px;
    left: 34px;
    bottom: 30px;
    border-radius: 999px;
}

.km-header-title,
.km-header-desc {
    color: #F8FAFC !important;
}

.km-header-desc {
    color: #CBD5E1 !important;
    max-width: 720px;
}

.km-header-content {
    display: grid;
    gap: 14px;
}

.km-header-title-row {
    display: flex;
    align-items: center;
}

.km-breadcrumb {
    margin-bottom: 22px;
    padding: 12px 16px;
}

.km-breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.km-breadcrumb li,
.km-breadcrumb a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.km-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-right: 8px;
    color: rgba(100, 116, 139, 0.55);
}

.km-breadcrumb,
.km-city-info-section,
.km-locksmiths-section,
.km-services-about-section,
.km-faq-section .km-container,
.km-city-content-section,
.km-city-main-content,
.km-sb-related-cities,
.km-no-locksmiths {
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.km-locksmiths-section {
    padding: 22px;
}

.km-city-info-section,
.km-city-content-section {
    padding: 26px;
    margin-bottom: 24px;
}

.km-city-description,
.km-city-main-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2.1;
}

.km-city-description p,
.km-city-main-content p {
    margin: 0 0 14px;
}

.km-locksmiths-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.km-new-locksmith-card,
.provider-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 0;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.km-new-locksmith-card .km-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 22px 12px;
    border: 0;
}

.km-new-locksmith-card .km-card-header::after {
    content: "فعال";
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--success);
    background: rgba(220, 252, 231, 0.86);
    border: 1px solid rgba(22, 163, 74, 0.16);
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.km-locksmith-name,
.km-new-locksmith-card .km-card-header .km-locksmith-name {
    color: var(--text-main);
    font-size: 21px;
    line-height: 1.55;
    font-weight: 950;
    margin: 0;
}

.km-contact-section {
    padding: 4px 22px 12px;
}

.km-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.km-info-item:last-child {
    border-bottom: 0;
}

.km-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(219, 234, 254, 0.86);
    color: var(--trust-blue);
}

.km-info-icon.phone {
    background: rgba(254, 243, 199, 0.95);
    color: var(--primary-dark);
}

.km-info-text h3 {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 0 2px;
}

.km-info-text p {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.8;
    margin: 0;
    overflow-wrap: anywhere;
}

.km-card-services {
    padding: 0 22px 14px;
}

.km-services-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.km-services-title {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 950;
}

.km-services-more {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--trust-blue);
    font-size: 12px;
    font-weight: 900;
    font-family: inherit;
    line-height: 1.6;
    cursor: pointer;
}

.km-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.km-service-tag,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--text-secondary);
    background: rgba(241, 245, 249, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.km-service-tag.service-hidden {
    display: none;
}

.km-service-tag.service-hidden.visible {
    display: inline-flex;
}

.km-service-count {
    color: var(--primary-dark);
    background: rgba(254, 243, 199, 0.86);
    border-color: rgba(245, 158, 11, 0.18);
}

.km-action-buttons {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
    padding: 16px 22px 22px;
}

.km-btn-dark,
.btn-call {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #16A34A, #22C55E) !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.km-btn-dark:hover,
.btn-call:hover {
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(22, 163, 74, 0.30);
}

.km-services-about-section {
    padding: 26px;
}

.km-services-about-section ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.km-services-about-section li {
    min-height: 108px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.km-faq-container {
    display: grid;
    gap: 12px;
}

.km-faq-item,
.faq-item {
    border-radius: 22px;
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.km-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 16px 18px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 950;
}

.km-faq-item.active,
.km-faq-item.open,
.faq-item.open {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.km-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    color: var(--text-secondary);
    opacity: 0;
    line-height: 2;
    transition: max-height 260ms ease, padding 260ms ease, opacity 220ms ease;
}

.km-faq-item.active .km-faq-answer {
    padding: 0 18px 16px;
    opacity: 1;
}

.km-faq-answer p {
    margin: 0;
}

.km-city-main-content {
    padding: 28px !important;
    line-height: 2.1;
    margin-bottom: 30px;
}

.km-services-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.km-services-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

.km-modal-content,
.km-services-modal .km-modal-content,
.contact-modal {
    width: min(480px, calc(100% - 32px));
    max-height: min(88vh, 900px);
    overflow-y: auto;
    border-radius: 32px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: transform 240ms ease, opacity 220ms ease;
    outline: 0;
}

.km-services-modal.active .km-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.km-collaborate-modal .km-modal-content,
.km-mobile-details-modal .km-modal-content {
    width: min(760px, calc(100% - 32px));
}

.km-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.km-modal-title {
    margin: 0;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.5;
}

.km-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.km-services-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.km-mobile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.km-mobile-details-item {
    padding: 14px;
    border-radius: 20px;
    color: var(--text-secondary);
    background: rgba(248, 250, 252, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.km-mobile-details-item h3 {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.km-mobile-details-item p {
    margin: 0;
    color: var(--text-main);
    font-weight: 850;
    line-height: 1.8;
}

.km-mobile-details-actions {
    margin-top: 14px;
}

.km-mobile-details-actions .km-btn {
    width: 100%;
}

.km-collaborate-btn {
    appearance: none;
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.km-collaboration-form,
.km-collaborate-form-container {
    display: grid;
    gap: 14px;
}

.km-form-group {
    display: grid;
    gap: 8px;
}

.km-form-group label {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 900;
}

.km-form-group textarea,
.textarea {
    min-height: 130px;
    padding: 16px;
    resize: vertical;
}

.km-form-group input {
    padding: 0 16px;
}

.km-required-mark {
    color: var(--danger);
}

.km-collab-services-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.km-collab-services-count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.km-collab-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 230px;
    overflow: auto;
    padding: 4px;
}

.km-collab-services-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 16px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 800;
}

.km-collab-services-list input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.km-alert {
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    line-height: 1.8;
    font-weight: 800;
}

.km-alert-success,
.success-soft {
    color: var(--success);
    background: rgba(220, 252, 231, 0.78);
    border-color: rgba(22, 163, 74, 0.18);
}

.km-alert-danger,
.field-error {
    color: var(--danger);
    background: rgba(254, 226, 226, 0.70);
    border-color: rgba(220, 38, 38, 0.30);
}

.km-no-locksmiths,
.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 42px 24px !important;
    text-align: center;
    border-style: solid !important;
}

.km-empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: var(--primary-dark);
    background: rgba(254, 243, 199, 0.88);
    font-size: 26px;
}

.km-empty-title {
    margin: 0;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.8;
}

.km-empty-actions {
    margin: 4px 0;
}

.km-empty-action {
    max-width: 100%;
    white-space: normal;
    line-height: 1.8;
    text-align: center;
}

.km-empty-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.km-pagination {
    display: flex;
    justify-content: center;
    margin: 28px 0;
}

.km-pagination-list,
.km-sb-pagination,
.km-theme-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.km-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.20);
    font-weight: 900;
}

.km-pagination-btn:hover,
.km-pagination-btn.active,
.km-page-btn.active {
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: var(--shadow-button);
}

.km-collab-toast,
.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(560px, calc(100% - 28px));
    padding: 12px 18px;
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(17, 24, 39, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 24px) scale(0.98);
    transition: opacity 240ms ease, transform 240ms ease;
}

.km-collab-toast.is-visible,
.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.km-collab-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.km-collab-toast-content strong,
.km-collab-toast-content p {
    margin: 0;
    color: #FFFFFF;
    line-height: 1.6;
}

.km-theme-footer {
    margin-top: 28px;
    padding: 52px 0 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.10), transparent 32%),
        linear-gradient(135deg, #111827, #0F172A);
    color: #CBD5E1;
}

.km-theme-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.km-theme-footer__brand {
    max-width: 760px;
}

.km-theme-footer__brand h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.45;
    color: #F8FAFC;
    letter-spacing: 0;
}

.km-theme-footer__brand p {
    max-width: 680px;
    margin: 0;
    color: #CBD5E1;
    line-height: 1.9;
}

.km-theme-footer__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.km-theme-footer__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: #F8FAFC;
    text-decoration: none;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.km-theme-footer__action:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.18);
}

.km-theme-footer__action--primary {
    color: #111827 !important;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    border-color: rgba(245, 158, 11, 0.20);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.km-theme-footer__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0;
}

.km-theme-footer__group {
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.km-theme-footer__group h3 {
    margin: 0 0 12px;
    color: #F8FAFC;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
}

.km-theme-footer__group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.km-theme-footer__group a {
    display: inline-flex;
    width: fit-content;
    color: #CBD5E1;
    text-decoration: none;
    line-height: 1.8;
    font-size: 14px;
    font-weight: 700;
    transition: color 180ms ease, transform 180ms ease;
}

.km-theme-footer__group a:hover {
    color: #FBBF24;
    transform: translateX(-3px);
}

.km-site-footer {
    margin-top: 48px !important;
    padding: 44px 0 24px !important;
    color: #CBD5E1 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
        linear-gradient(135deg, #111827, #0F172A) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.km-footer-container {
    width: min(1220px, calc(100% - 32px)) !important;
    max-width: none !important;
    padding: 0 !important;
}

.km-footer-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.km-footer-col {
    min-width: 0;
    padding: 20px !important;
    border-radius: 24px !important;
    color: #CBD5E1 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.km-footer-logo-badge {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.km-footer-heading,
.km-footer-copyright {
    color: #F8FAFC !important;
}

.km-footer-contact-item,
.km-footer-contact-item a,
.km-footer-links a,
.km-footer-copyright,
.km-footer-copyright p {
    color: #CBD5E1 !important;
}

.km-footer-contact-item i,
.km-footer-links a::before {
    color: #F59E0B !important;
}

.km-footer-collaborate {
    color: #111827 !important;
    border: 0 !important;
    background: linear-gradient(135deg, #F59E0B, #FBBF24) !important;
    box-shadow: var(--shadow-button) !important;
}

.km-theme-footer__hero,
.km-theme-footer__col,
.km-theme-footer__stats div {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
}

.km-theme-footer h2,
.km-theme-footer h3,
.km-theme-footer__stats strong {
    color: #F8FAFC;
}

.km-theme-footer__hero h2 {
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: 0;
}

.km-theme-footer p,
.km-theme-footer a,
.km-theme-footer li,
.km-theme-footer__stats span,
.km-theme-footer__meta {
    color: #CBD5E1;
}

.km-theme-footer__chips a {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.km-inline-directory__card {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.km-inline-directory__card:hover {
    border-color: rgba(245, 158, 11, 0.30) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
}

.km-inline-directory__icon {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #FEF3C7, #DBEAFE) !important;
}

.km-mobile-menu-wrapper {
    display: none;
}

.km-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 106;
    visibility: hidden;
    opacity: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.km-mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.km-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 107;
    width: min(86vw, 320px);
    padding: 78px 14px 18px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.90);
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    transform: translateX(100%);
    transition: transform 240ms ease;
}

.km-mobile-menu.active {
    transform: translateX(0);
}

.km-mobile-menu ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.km-mobile-menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 18px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 900;
}

.km-mobile-action-bar {
    display: none;
}

.skeleton,
.km-sb-loading__skeleton {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.55), rgba(248, 250, 252, 0.85), rgba(226, 232, 240, 0.55));
    background-size: 200% 100%;
    animation: km-liquid-shimmer 1.4s infinite;
    border-radius: 18px;
}

.km-static-page {
    display: grid;
    gap: 24px;
}

.km-static-section,
.km-static-card,
.km-static-note,
.km-static-form,
.km-static-page table,
.km-static-page blockquote {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.km-static-section {
    padding: 28px;
}

.km-static-lead,
.km-static-section--lead {
    color: #F8FAFC;
    background:
        radial-gradient(circle at 14% 20%, rgba(245, 158, 11, 0.22), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(37, 99, 235, 0.20), transparent 32%),
        linear-gradient(135deg, #111827 0%, #1E293B 58%, #0F172A 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.km-static-lead h2,
.km-static-section--lead h2,
.km-static-lead p,
.km-static-section--lead p {
    color: inherit;
}

.km-static-page h2,
.km-static-page h3 {
    color: var(--text-main);
    line-height: 1.75;
    letter-spacing: 0;
}

.km-static-lead h2,
.km-static-section--lead h2 {
    color: #FFFFFF;
}

.km-static-page p,
.km-static-page li {
    color: var(--text-secondary);
    line-height: 2.05;
}

.km-static-lead p,
.km-static-section--lead p {
    color: rgba(248, 250, 252, 0.84);
}

.km-static-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.km-static-card {
    padding: 20px;
}

.km-static-note {
    padding: 18px 20px;
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 255, 255, 0.74));
}

.km-static-cta,
.km-static-page a.km-static-cta,
.km-static-page .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: var(--shadow-button);
    font-weight: 900;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.km-static-cta:hover,
.km-static-page a.km-static-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.40);
}

.km-static-page a:not(.km-static-cta) {
    color: var(--trust-blue);
    font-weight: 800;
}

.km-static-page table,
.km-static-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.km-static-page th,
.km-static-page td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: right;
}

.km-static-page th {
    color: var(--text-main);
    background: rgba(241, 245, 249, 0.72);
}

.km-static-form {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.km-static-form label {
    display: grid;
    gap: 7px;
    color: var(--text-main);
    font-weight: 800;
}

.km-static-form input,
.km-static-form select,
.km-static-form textarea {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
    padding: 0 16px;
    font: inherit;
}

.km-static-form textarea {
    min-height: 130px;
    padding: 16px;
}

.km-static-form input:focus,
.km-static-form select:focus,
.km-static-form textarea:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
}

.km-static-page details {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.km-static-page details + details {
    margin-top: 12px;
}

.km-static-page summary {
    cursor: pointer;
    color: var(--text-main);
    font-weight: 900;
}

.km-static-page .wp-block-image,
.km-ai-city-image {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.km-static-page .wp-block-image img,
.km-ai-city-image img {
    width: 100%;
    height: auto;
    display: block;
}

.km-theme-404 .km-theme-shell {
    display: grid;
    gap: 18px;
}

.km-theme-404__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(100%, 720px);
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.km-theme-404__search input {
    min-height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-main);
    padding: 0 16px;
    font: inherit;
}

.km-theme-404__search input:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
}

.km-theme-404__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.km-theme-404__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.20);
    font-weight: 800;
    text-decoration: none;
}

@keyframes km-liquid-shimmer {
    to {
        background-position: -200% 0;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .km-theme-header__inner,
    .km-sb-topbar,
    .km-sb-showcase__discover,
    .km-sb-search-card,
    .km-new-locksmith-card,
    .km-modal-content {
        background: rgba(255, 255, 255, 0.94);
    }
}

@media (max-width: 1100px) {
    .km-sb-showcase__grid,
    .km-sb-showcase--home .km-sb-showcase__grid,
    .km-sb-showcase--directory .km-sb-showcase__grid,
    .km-sb-showcase--taxonomy .km-sb-showcase__grid {
        grid-template-columns: 1fr;
    }

    .km-sb-feature-grid,
    .km-services-about-section ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-locksmiths-container,
    .km-sb-city-grid:not(.km-sb-city-grid--slider),
    .km-sb-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-static-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km-theme-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 861px) and (max-width: 1100px) {
    .km-sb-showcase--home .km-sb-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .km-theme-header {
        top: 8px;
    }

    .admin-bar .km-theme-header,
    .admin-bar .km-sb-shell-head,
    .admin-bar .km-main-nav {
        top: 54px;
    }

    .km-theme-header__inner,
    .km-sb-topbar,
    .km-main-nav .km-nav-container {
        min-height: 62px;
        border-radius: 24px;
    }

    .km-theme-brand__copy small,
    .km-theme-header__register,
    .km-sb-topbar__pill {
        display: none;
    }

    .km-theme-menu-toggle,
    .km-sb-nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
    }

    .km-footer-row {
        grid-template-columns: 1fr !important;
    }

    .km-theme-footer__top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .km-theme-footer__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.km-theme-body {
        padding-bottom: 88px;
    }

    .km-theme-shell,
    .km-sb-container,
    .km-container,
    .km-header {
        width: min(100% - 20px, 1220px);
    }

    .km-mobile-menu-wrapper {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 110;
    }

    .km-mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
    }

    .km-mobile-menu-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 999px;
    }

    .km-mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .km-mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .km-mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .km-sb-showcase {
        padding: 18px 0 6px;
    }

    .km-sb-showcase__copy {
        min-height: auto;
        padding: 24px 20px 46px;
        border-radius: 28px;
    }

    .km-sb-showcase__copy h1,
    .km-sb-profile h1,
    .km-theme-page-hero h1,
    .km-theme-article h1,
    .km-header-title {
        font-size: 32px;
        line-height: 1.35;
    }

    .km-sb-showcase__copy p,
    .km-header-desc {
        font-size: 14px;
        line-height: 1.9;
    }

    .km-sb-showcase__discover,
    .km-sb-search-card,
    .km-sb-browser-panel {
        border-radius: 26px;
        padding: 18px;
    }

    .km-sb-search__bar {
        grid-template-columns: 1fr;
    }

    .km-sb-search__icon {
        display: none;
    }

    .km-sb-search__bar .km-sb-btn {
        width: 100%;
    }

    .km-sb-stat-grid,
    .km-theme-footer__stats {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .km-sb-metric,
    .km-theme-footer__stats div {
        min-width: 168px;
        scroll-snap-align: start;
    }

    .km-theme-footer {
        padding: 40px 0 22px;
    }

    .km-theme-footer__top {
        gap: 18px;
        padding-bottom: 20px;
    }

    .km-theme-footer__brand h2 {
        font-size: 24px;
    }

    .km-theme-footer__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .km-theme-footer__links {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .km-theme-footer__group {
        padding: 16px;
        border-radius: 22px;
    }

    .km-theme-404__search {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .km-sb-section,
    .km-sb-related-cities {
        padding: 44px 0;
    }

    .km-sb-section__head,
    .km-sb-results-head {
        display: grid;
        gap: 10px;
        align-items: start;
        padding: 14px;
        border-radius: 24px;
    }

    .km-sb-section__head h2,
    .km-sb-results-copy h2,
    .km-section-title,
    .km-section-title h2,
    .km-page-title {
        font-size: 22px;
    }

    .km-sb-article-hero h1 {
        font-size: 32px;
    }

    .km-sb-feature-grid,
    .km-locksmiths-container,
    .km-sb-city-grid:not(.km-sb-city-grid--slider),
    .km-sb-profile-grid,
    .km-services-about-section ul {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .km-sb-city-grid--slider,
    .km-sb-search__chips,
    .km-sb-chip-row,
    .km-sb-browser-chip-block .km-sb-search__chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .km-sb-city-grid--slider > *,
    .km-sb-search__chip,
    .km-sb-chip {
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .km-header {
        margin-top: 14px;
        padding: 26px 18px 44px;
        border-radius: 28px;
    }

    .km-breadcrumb {
        display: none;
    }

    .km-locksmiths-section,
    .km-city-info-section,
    .km-services-about-section,
    .km-faq-section,
    .km-city-main-content {
        padding: 18px !important;
        border-radius: 26px !important;
    }

    .km-new-locksmith-card {
        border-radius: 28px;
    }

    .km-new-locksmith-card .km-card-header {
        padding: 18px 18px 8px;
    }

    .km-contact-section {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 8px 18px 10px;
    }

    .km-info-item {
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-height: 82px;
        padding: 11px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 18px;
        background: rgba(248, 250, 252, 0.76);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    }

    .km-info-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }

    .km-info-text h3 {
        font-size: 11px;
    }

    .km-info-text p {
        font-size: 12px;
        line-height: 1.65;
    }

    .km-action-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 18px 18px;
    }

    .km-collaborate-btn {
        display: inline-flex;
        left: 12px;
        bottom: 92px;
        min-height: 42px;
        padding: 0 13px;
        font-size: 12px;
        z-index: 1500;
    }

    .km-btn,
    .km-theme-button,
    .km-sb-btn {
        min-height: 48px;
    }

    .km-static-section,
    .km-static-card,
    .km-static-form {
        padding: 18px;
        border-radius: 24px;
    }

    .km-static-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .km-static-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .km-services-modal {
        align-items: flex-end;
        padding: 0;
    }

    .km-modal-content,
    .km-services-modal .km-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 86vh;
        border-radius: 30px 30px 0 0;
        padding: 20px;
        box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.20);
    }

    .km-mobile-details-grid,
    .km-collab-services-list {
        grid-template-columns: 1fr;
    }

    .km-footer-container {
        width: min(100% - 20px, 1220px) !important;
    }

    .km-modal-content::before,
    .km-services-modal .km-modal-content::before {
        content: "";
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.32);
        margin: 0 auto 16px;
    }

    .km-mobile-action-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 120;
        display: grid;
        grid-template-columns: 1.4fr 1fr 0.8fr;
        gap: 10px;
        padding: 10px;
        border-radius: 26px;
        background: rgba(17, 24, 39, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(28px) saturate(150%);
        -webkit-backdrop-filter: blur(28px) saturate(150%);
    }

    .km-mobile-action-bar a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 12px;
        border-radius: 999px;
        color: #F8FAFC;
        text-decoration: none;
        font-size: 13px;
        font-weight: 900;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .km-mobile-action-bar__call {
        color: #111827 !important;
        background: linear-gradient(135deg, #F59E0B, #FBBF24) !important;
        box-shadow: var(--shadow-button);
    }
}

@media (max-width: 380px) {
    .km-mobile-action-bar {
        grid-template-columns: 1fr;
    }

    .km-sb-showcase__copy h1,
    .km-theme-page-hero h1,
    .km-header-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .km-sb-showcase--home .km-sb-showcase__grid {
        gap: 14px;
    }

    .km-sb-showcase--home .km-sb-showcase__copy {
        min-height: 246px;
        padding: 20px;
        border-radius: 22px;
    }

    .km-sb-showcase--home .km-sb-showcase__copy h1 {
        margin: 8px 0 6px;
        font-size: 27px;
        line-height: 1.35;
    }

    .km-sb-showcase--home .km-sb-showcase__copy p {
        font-size: 12.5px;
        line-height: 1.8;
    }

    .km-sb-showcase--home .km-sb-hero__actions {
        margin-top: 12px;
        gap: 8px;
    }

    .km-sb-showcase--home .km-sb-btn {
        min-height: 40px;
        padding: 0 13px;
        border-radius: 14px;
        font-size: 12px;
    }

    .km-sb-showcase--home .km-sb-stat-grid {
        gap: 7px;
        margin-top: 12px;
    }

    .km-sb-showcase--home .km-sb-metric {
        min-height: 64px;
        padding: 9px;
    }

    .km-sb-showcase--home .km-sb-showcase__discover {
        min-height: 246px;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .km-sb-showcase--home .km-sb-search-card {
        min-height: 246px;
        padding: 20px;
        border-radius: 22px;
        display: grid;
        align-content: center;
        background: rgba(255, 255, 255, 0.84);
        border: 1px solid rgba(255, 255, 255, 0.70);
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    }

    .km-sb-showcase--home .km-sb-search-card__head {
        padding-bottom: 13px;
    }

    .km-sb-showcase--home .km-sb-search-card__head strong {
        font-size: 17px;
        line-height: 1.6;
    }

    .km-sb-showcase--home .km-sb-search-card__head p {
        display: block;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .km-sb-showcase--home .km-sb-search__bar {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        min-height: 54px;
        padding: 7px;
        border-radius: 19px;
    }

    .km-sb-showcase--home .km-sb-search__icon {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .km-sb-showcase--home .km-sb-search__bar .km-sb-btn {
        width: auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    .km-sb-showcase--home .km-sb-search input {
        min-height: 40px;
        padding: 0 8px;
        font-size: 14px;
    }

    .km-sb-showcase--home .km-sb-search__chips {
        margin-top: 8px;
        padding-bottom: 2px;
    }

    .km-sb-showcase--home .km-sb-search__chip {
        min-height: 32px;
        padding: 0 11px;
        font-size: 11.5px;
    }
}

/* City page centering and generated media guardrails */
.km-single-city > .km-container {
    width: min(1220px, calc(100% - 32px));
    max-width: 1220px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.km-single-city .km-locksmiths-section,
.km-single-city .km-city-info-section,
.km-single-city .km-services-about-section,
.km-single-city .km-faq-section,
.km-single-city .km-city-content-section,
.km-single-city .km-city-main-content {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.km-single-city .km-breadcrumb,
.km-single-city .km-city-info-section,
.km-single-city .km-locksmiths-section,
.km-single-city .km-services-about-section,
.km-single-city .km-faq-section,
.km-single-city .km-city-content-section,
.km-single-city .km-sb-related-cities {
    margin-top: 0;
    margin-bottom: 0;
}

.km-single-city .km-faq-section {
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.km-single-city .km-city-content-section {
    display: grid;
    gap: 16px;
}

.km-single-city .km-faq-section {
    padding: 26px;
}

.km-single-city .km-faq-section > .km-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.km-single-city .km-city-main-content,
.km-single-city .km-city-description,
.km-single-city .km-services-about-section {
    overflow-wrap: anywhere;
}

.km-single-city .km-city-main-content :is(figure, .wp-block-image, .wp-caption) {
    width: min(100%, 980px) !important;
    max-width: 100% !important;
    margin: 24px auto !important;
    overflow: hidden;
    border-radius: 24px;
}

.km-single-city .km-city-main-content :is(img, figure img, .wp-caption img) {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.km-single-city .km-city-main-content > img {
    width: min(100%, 980px);
    margin: 24px auto;
}

@media (max-width: 640px) {
    .km-single-city > .km-container {
        width: min(1220px, calc(100% - 20px));
        gap: 18px;
    }

    .km-single-city .km-faq-section {
        padding: 18px;
    }

    .km-single-city .km-city-content-section {
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .km-single-city .km-action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Compact generated-site footer */
.km-theme-footer.km-theme-footer--compact {
    margin-top: 24px;
    padding: 16px 0 14px;
    min-height: 0;
    text-align: right;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.10), transparent 28%),
        linear-gradient(135deg, #111827, #0F172A);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.km-theme-footer--compact .km-theme-footer__compact {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.8fr) auto;
    align-items: center;
    gap: 14px 18px;
    margin-inline: auto;
}

.km-theme-footer--compact .km-theme-footer__brand {
    max-width: none;
    min-width: 0;
}

.km-theme-footer--compact .km-theme-footer__title {
    display: block;
    color: #F8FAFC;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 900;
}

.km-theme-footer--compact .km-theme-footer__summary {
    display: block;
    margin-top: 2px;
    max-width: 260px;
    overflow: hidden;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.km-theme-footer--compact .km-theme-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 9px;
    padding: 0;
}

.km-theme-footer--compact .km-theme-footer__separator {
    display: inline-flex;
    align-items: center;
    color: rgba(148, 163, 184, 0.68);
    font-size: 13px;
    line-height: 1;
}

.km-theme-footer--compact .km-theme-footer__links a {
    display: inline-flex;
    align-items: center;
    width: auto;
    color: #CBD5E1;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 750;
    text-decoration: none;
}

.km-theme-footer--compact .km-theme-footer__links a:hover {
    color: #FBBF24;
    transform: none;
}

.km-theme-footer--compact .km-theme-footer__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.km-theme-footer--compact .km-theme-footer__action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
}

.km-theme-footer--compact .km-theme-footer__action:hover {
    transform: none;
}

.km-theme-footer--compact .km-theme-footer__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 10px;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
    .km-theme-footer--compact .km-theme-footer__compact {
        grid-template-columns: 1fr;
    }

    .km-theme-footer--compact .km-theme-footer__links,
    .km-theme-footer--compact .km-theme-footer__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .km-theme-footer.km-theme-footer--compact {
        padding: 16px 0 104px;
    }

    .km-theme-footer--compact .km-theme-footer__links {
        justify-content: flex-start;
        gap: 6px 8px;
    }

    .km-theme-footer--compact .km-theme-footer__actions {
        display: none;
    }

    .km-theme-footer--compact .km-theme-footer__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final city page rail. Keep this block last so old plugin/layout rules cannot stretch city sections. */
.km-single-city .km-header,
.km-single-city > main.km-container,
.km-single-city > .km-city-page-shell {
    width: min(1220px, calc(100% - 32px)) !important;
    max-width: 1220px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box;
}

.km-single-city > main.km-container,
.km-single-city > .km-city-page-shell {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.km-single-city > .km-city-page-shell > .km-breadcrumb,
.km-single-city > .km-city-page-shell > .km-city-info-section,
.km-single-city > .km-city-page-shell > .km-locksmiths-section,
.km-single-city > .km-city-page-shell > .km-services-about-section,
.km-single-city > .km-city-page-shell > .km-faq-section,
.km-single-city > .km-city-page-shell > .km-city-content-section,
.km-single-city > .km-city-page-shell > .km-sb-related-cities {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.km-single-city > .km-city-page-shell .km-faq-section {
    padding: 26px !important;
}

.km-single-city > .km-city-page-shell .km-faq-section > .km-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 640px) {
    .km-single-city .km-header,
    .km-single-city > main.km-container,
    .km-single-city > .km-city-page-shell {
        width: min(1220px, calc(100% - 20px)) !important;
    }

    .km-single-city > main.km-container,
    .km-single-city > .km-city-page-shell {
        gap: 18px;
    }

    .km-single-city > .km-city-page-shell .km-faq-section {
        padding: 18px !important;
    }

    .km-single-city .km-contact-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 8px 18px 10px !important;
    }

    .km-single-city .km-info-item {
        min-width: 0;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-height: 82px;
        padding: 11px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 18px;
        background: rgba(248, 250, 252, 0.76);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    }

    .km-single-city .km-info-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }

    .km-single-city .km-info-text h3 {
        font-size: 11px;
    }

    .km-single-city .km-info-text p {
        font-size: 12px;
        line-height: 1.65;
    }

    .km-single-city .km-action-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@keyframes km-card-soft-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Final card comfort layer. Keep content away from card borders and give cards a calmer motion model. */
.km-theme-plugin-surface .km-sb-feature-card,
.km-theme-plugin-surface .km-sb-profile-card,
.km-theme-plugin-surface .km-sb-city-card,
.km-theme-plugin-surface .km-sb-blog-card,
.km-theme-plugin-surface .km-sb-query-panel,
.km-theme-plugin-surface .km-sb-info-card,
.km-theme-plugin-surface .km-theme-post-card,
.km-single-city .km-new-locksmith-card,
.km-single-city .provider-card {
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 220ms ease, background 220ms ease !important;
    animation: km-card-soft-in 480ms ease both;
    will-change: transform;
}

.km-theme-plugin-surface .km-sb-city-grid--slider {
    gap: 18px;
    padding: 14px 12px 20px;
    scroll-padding-inline: 12px;
}

.km-theme-plugin-surface .km-sb-city-grid--slider .km-sb-city-card {
    flex: 0 0 min(330px, 84vw);
}

.km-theme-plugin-surface .km-sb-city-card {
    padding: 18px !important;
    gap: 16px;
    border-radius: 30px;
}

.km-theme-plugin-surface .km-sb-city-card__visual {
    min-height: 172px;
    border-radius: 22px;
    transition: transform 320ms ease, box-shadow 260ms ease;
}

.km-theme-plugin-surface .km-sb-city-card__body {
    padding: 2px 8px 8px !important;
    gap: 10px;
}

.km-theme-plugin-surface .km-sb-feature-card,
.km-theme-plugin-surface .km-sb-profile-card,
.km-theme-plugin-surface .km-sb-blog-card,
.km-theme-plugin-surface .km-sb-query-panel,
.km-theme-plugin-surface .km-sb-info-card {
    padding: 26px !important;
}

.km-single-city .km-new-locksmith-card .km-card-header {
    padding: 26px 26px 14px !important;
}

.km-single-city .km-contact-section {
    padding: 6px 26px 14px !important;
}

.km-single-city .km-card-services {
    padding: 0 26px 16px !important;
}

.km-single-city .km-action-buttons {
    padding: 18px 26px 26px !important;
}

.km-single-city .km-info-icon {
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.km-theme-plugin-surface .km-sb-feature-card:hover,
.km-theme-plugin-surface .km-sb-profile-card:hover,
.km-theme-plugin-surface .km-sb-city-card:hover,
.km-theme-plugin-surface .km-sb-blog-card:hover,
.km-theme-plugin-surface .km-theme-post-card:hover,
.km-single-city .km-new-locksmith-card:hover,
.km-single-city .provider-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.28) !important;
    box-shadow: 0 30px 76px rgba(15, 23, 42, 0.14) !important;
}

.km-theme-plugin-surface .km-sb-city-card:hover .km-sb-city-card__visual {
    transform: scale(1.025);
    box-shadow: inset 0 -100px 100px rgba(15, 23, 42, 0.12), 0 18px 42px rgba(15, 23, 42, 0.10);
}

.km-single-city .km-new-locksmith-card:hover .km-info-icon {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .km-theme-plugin-surface .km-sb-feature-card,
    .km-theme-plugin-surface .km-sb-profile-card,
    .km-theme-plugin-surface .km-sb-city-card,
    .km-theme-plugin-surface .km-sb-blog-card,
    .km-theme-plugin-surface .km-sb-query-panel,
    .km-theme-plugin-surface .km-sb-info-card,
    .km-theme-plugin-surface .km-theme-post-card,
    .km-single-city .km-new-locksmith-card,
    .km-single-city .provider-card,
    .km-services-modal,
    .km-services-modal .km-modal-content {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .km-theme-plugin-surface .km-sb-city-grid--slider {
        gap: 14px;
        padding: 12px 10px 18px;
        scroll-padding-inline: 10px;
    }

    .km-theme-plugin-surface .km-sb-city-card,
    .km-theme-plugin-surface .km-sb-feature-card,
    .km-theme-plugin-surface .km-sb-profile-card,
    .km-theme-plugin-surface .km-sb-blog-card,
    .km-theme-plugin-surface .km-sb-query-panel,
    .km-theme-plugin-surface .km-sb-info-card {
        padding: 18px !important;
    }

    .km-theme-plugin-surface .km-sb-city-card__body {
        padding: 0 4px 4px !important;
    }

    .km-single-city .km-new-locksmith-card .km-card-header {
        padding: 22px 18px 12px !important;
    }

    .km-single-city .km-action-buttons {
        padding: 12px 18px 18px !important;
    }
}

/* Final button alignment guard. Icons must not push call text off-center. */
.km-theme-app .km-btn,
.km-theme-app .btn-call,
.km-theme-app .km-sb-btn[href^="tel:"],
.km-single-city .km-btn,
.km-single-city .btn-call,
.km-mobile-action-bar a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    line-height: 1.45 !important;
    white-space: normal;
}

.km-theme-app .km-action-buttons .km-btn,
.km-single-city .km-action-buttons .km-btn,
.km-mobile-details-actions .km-btn {
    width: 100%;
    min-width: 0;
}

.km-theme-app .km-btn i,
.km-theme-app .btn-call i,
.km-theme-app .km-sb-btn[href^="tel:"] i,
.km-single-city .km-btn i,
.km-single-city .btn-call i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Final mobile services UI. Services should sit two-up like the contact info boxes. */
@media (max-width: 640px) {
    .km-single-city .km-card-services {
        margin: 2px 18px 12px;
        padding: 12px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 20px;
        background: rgba(248, 250, 252, 0.66);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .km-single-city .km-services-head {
        margin-bottom: 10px;
        padding: 0 2px;
    }

    .km-single-city .km-services-title {
        font-size: 13px;
    }

    .km-single-city .km-services-more {
        min-height: 30px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(219, 234, 254, 0.82);
        color: var(--trust-blue);
        font-size: 11px;
        line-height: 1;
    }

    .km-single-city .km-services-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: stretch;
    }

    .km-single-city .km-services-list .km-service-tag.visible,
    .km-single-city .km-services-list .km-service-tag:not(.service-hidden),
    .km-single-city .km-services-list .km-service-count {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 9px 8px;
        border-radius: 16px;
        text-align: center;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.55;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .km-single-city .km-services-about-section ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 16px 0 !important;
    }

    .km-single-city .km-services-about-section li {
        min-height: 86px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 13px 10px;
        border-radius: 20px;
        text-align: center;
        font-size: 13px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }
}
