.center-directory {
    min-height: 70vh;
    padding: 28px 0 60px;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.10), transparent 30%),
        #f8fafc;
}

.center-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 12px;
}

.center-breadcrumb a {
    color: #6d28d9;
    text-decoration: none;
}

.center-directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid #e6e1f4;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #f5f3ff);
    box-shadow: 0 22px 55px rgba(30, 41, 59, .08);
}

.center-directory-kicker,
.center-results-head span,
.center-directory-map-section > div > span {
    color: #7c3aed;
    font-size: 12px;
    font-weight: 900;
}

.center-directory-copy h1 {
    margin: 8px 0 12px;
    color: #172033;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.4;
}

.center-directory-copy > p {
    max-width: 720px;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.center-directory-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 9px;
    margin-top: 20px;
}

.center-directory-search input,
.center-directory-search select {
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d8dee8;
    border-radius: 13px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.center-directory-search input:focus,
.center-directory-search select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.10);
}

.center-directory-search button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    font: inherit;
    font-weight: 900;
}

.center-directory-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.center-directory-stats div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 105px;
    padding: 16px;
    border: 1px solid #e4ddfa;
    border-radius: 18px;
    background: rgba(255,255,255,.85);
    text-align: center;
}

.center-directory-stats strong {
    color: #6d28d9;
    font-size: 26px;
}

.center-directory-stats span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.center-type-navigation {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.center-type-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: .2s ease;
}

.center-type-navigation a:hover,
.center-type-navigation a.is-active {
    border-color: #8b5cf6;
    background: #f3e8ff;
    color: #6d28d9;
    transform: translateY(-2px);
}

.center-type-navigation b {
    font-size: 18px;
}

.center-directory-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.center-location-filter {
    position: sticky;
    top: 90px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
}

.center-filter-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eef2f7;
}

.center-filter-head > span {
    font-size: 21px;
}

.center-filter-head strong,
.center-filter-head small {
    display: block;
}

.center-filter-head strong {
    color: #1e293b;
    font-size: 13px;
}

.center-filter-head small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.center-filter-list {
    display: grid;
    gap: 5px;
    max-height: 380px;
    margin-top: 12px;
    overflow: auto;
}

.center-filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 9px;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
}

.center-filter-list a:hover,
.center-filter-list a.is-active {
    background: #f3e8ff;
    color: #6d28d9;
    font-weight: 900;
}

.center-city-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.center-city-filter strong {
    width: 100%;
    color: #334155;
    font-size: 12px;
}

.center-city-filter a {
    padding: 6px 9px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    text-decoration: none;
}

.center-city-filter a.is-active {
    background: #7c3aed;
    color: #fff;
}

.center-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.center-results-head h2 {
    margin: 4px 0 0;
    color: #172033;
    font-size: 20px;
}

.center-results-head > strong {
    padding: 7px 11px;
    border-radius: 10px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 12px;
}

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

.center-directory-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    transition: .25s ease;
}

.center-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(76,29,149,.12);
}

.center-card-cover {
    position: relative;
    display: block;
    height: 165px;
    overflow: hidden;
}

.center-card-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease;
}

.center-directory-card:hover .center-card-cover > img {
    transform: scale(1.04);
}

.center-card-cover > span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    color: #5b21b6;
    font-size: 11px;
    font-weight: 900;
}

.center-card-body {
    position: relative;
    padding: 20px 15px 15px;
}

.center-card-logo {
    position: absolute;
    top: -34px;
    right: 15px;
    width: 55px;
    height: 55px;
    padding: 4px;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 7px 18px rgba(15,23,42,.12);
}

.center-card-title {
    padding-top: 11px;
}

.center-card-title h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.center-card-title p,
.center-card-address {
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}

.center-card-address {
    min-height: 44px;
}

.center-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.center-card-footer span {
    color: #64748b;
    font-size: 11px;
}

.center-card-footer a {
    padding: 8px 10px;
    border-radius: 9px;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.center-directory-empty {
    padding: 55px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.center-directory-empty > span {
    font-size: 38px;
}

.center-directory-empty h2 {
    color: #172033;
    font-size: 20px;
}

.center-directory-empty p {
    color: #64748b;
    font-size: 13px;
}

.center-directory-empty a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #7c3aed;
    color: #fff;
    text-decoration: none;
}

.center-pagination {
    margin-top: 22px;
}

.center-directory-map-section {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
}

.center-directory-map-section h2 {
    margin: 4px 0 15px;
    color: #172033;
    font-size: 20px;
}

#center-directory-map {
    height: 430px;
    border-radius: 17px;
    overflow: hidden;
}

html[data-theme="dark"] .center-directory {
    background: #0e0b13;
}

html[data-theme="dark"] .center-directory-hero,
html[data-theme="dark"] .center-location-filter,
html[data-theme="dark"] .center-directory-card,
html[data-theme="dark"] .center-directory-empty,
html[data-theme="dark"] .center-directory-map-section,
html[data-theme="dark"] .center-type-navigation a {
    border-color: #3e344a;
    background: #18131f;
}

html[data-theme="dark"] :is(
    .center-directory-copy h1,
    .center-results-head h2,
    .center-card-title h3,
    .center-directory-map-section h2,
    .center-filter-head strong,
    .center-city-filter strong,
    .center-directory-empty h2
) {
    color: #f8fafc;
}

html[data-theme="dark"] :is(
    .center-directory-copy > p,
    .center-card-title p,
    .center-card-address,
    .center-card-footer span,
    .center-directory-empty p
) {
    color: #a8b2c3;
}

html[data-theme="dark"] .center-directory-search input,
html[data-theme="dark"] .center-directory-search select {
    border-color: #443850;
    background: #211927;
    color: #f8fafc;
}

html[data-theme="dark"] .center-directory-stats div {
    border-color: #443850;
    background: #211927;
}

@media (max-width: 1199px) {
    .center-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .center-type-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .center-directory-hero,
    .center-directory-layout {
        grid-template-columns: 1fr;
    }

    .center-location-filter {
        position: static;
    }
}

@media (max-width: 767px) {
    .center-directory {
        padding-top: 18px;
    }

    .center-directory-hero {
        padding: 20px;
        border-radius: 21px;
    }

    .center-directory-search,
    .center-card-grid {
        grid-template-columns: 1fr;
    }

    .center-type-navigation {
        display: flex;
        padding-bottom: 5px;
        overflow-x: auto;
    }

    .center-type-navigation a {
        min-width: 135px;
    }

    .center-directory-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .center-card-cover {
        height: 190px;
    }

    #center-directory-map {
        height: 330px;
    }
}

/*
|--------------------------------------------------------------------------
| Nearby-style shopping-center map
|--------------------------------------------------------------------------
*/

#center-directory-map {
    position: relative;
    width: 100%;
    height: clamp(360px, 48vw, 520px);
    overflow: hidden;
    border-radius: 20px;
    background: #eef2f7;
    z-index: 1;
}

#center-directory-map .center-named-marker-wrap {
    width: 190px !important;
    height: 68px !important;
    margin: 0 !important;
    background: transparent;
    border: 0;
}

#center-directory-map .center-named-marker {
    position: relative;
    display: flex;
    width: max-content;
    max-width: 184px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    padding: 7px 11px;
    color: #33225f;
    background: rgba(255, 255, 255, .97);
    border: 2px solid #7c3aed;
    border-radius: 13px;
    box-shadow:
        0 10px 25px rgba(49, 30, 91, .2),
        0 2px 7px rgba(49, 30, 91, .12);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
    white-space: nowrap;
}

#center-directory-map .center-named-marker-icon {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    background: #f2ebff;
    border-radius: 8px;
    font-size: 15px;
}

#center-directory-map .center-named-marker-name {
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
}

#center-directory-map .center-named-marker-pointer {
    position: absolute;
    right: 50%;
    bottom: -11px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-right: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    transform: translateX(50%) rotate(45deg);
}

#center-directory-map .leaflet-popup-content-wrapper {
    border: 1px solid #e4dcf3;
    border-radius: 17px;
    box-shadow: 0 18px 45px rgba(30, 22, 57, .2);
}

#center-directory-map .leaflet-popup-content {
    margin: 14px;
}

.center-map-popup {
    display: flex;
    min-width: 220px;
    flex-direction: column;
    gap: 8px;
    font-family: inherit;
    text-align: right;
}

.center-map-popup > strong {
    color: #1b1630;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.7;
}

.center-map-popup > span {
    color: #778095;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
}

.center-map-popup-distance {
    width: fit-content;
    padding: 4px 8px;
    color: #1d4ed8 !important;
    background: #eff6ff;
    border-radius: 8px;
}

.center-map-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding-top: 3px;
}

.center-map-popup-actions a {
    display: flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}

.center-map-popup-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.center-map-popup-direction {
    color: #5b21b6 !important;
    background: #f4efff;
    border: 1px solid #ded2fa;
}

.center-location-control {
    border: 0 !important;
    box-shadow: 0 9px 24px rgba(30, 22, 57, .18) !important;
}

.center-location-control button {
    display: flex;
    min-width: 108px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    color: #4c1d95;
    background: #fff;
    border: 1px solid #ddd4ec;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
}

.center-location-control button span {
    color: #2563eb;
    font-size: 18px;
}

.center-location-control button.is-loading {
    opacity: .75;
    cursor: wait;
}

.center-location-control button.is-success {
    color: #166534;
    border-color: #86efac;
}

.center-location-control button.is-error {
    color: #b91c1c;
    border-color: #fecaca;
}

html[data-theme="dark"] #center-directory-map {
    background: #171b25;
}

html[data-theme="dark"]
#center-directory-map .center-named-marker {
    color: #f3efff;
    background: rgba(31, 27, 43, .97);
    border-color: #9b75f3;
}

html[data-theme="dark"]
#center-directory-map .center-named-marker-icon {
    background: #3a2e57;
}

html[data-theme="dark"]
#center-directory-map .center-named-marker-pointer {
    background: #1f1b2b;
    border-color: #9b75f3;
}

html[data-theme="dark"]
#center-directory-map .leaflet-popup-content-wrapper,
html[data-theme="dark"]
#center-directory-map .leaflet-popup-tip {
    color: #eef0f5;
    background: #201c2b;
}

html[data-theme="dark"] .center-map-popup > strong {
    color: #f5f3ff;
}

html[data-theme="dark"] .center-location-control button {
    color: #ddd6fe;
    background: #211d2d;
    border-color: #443951;
}

@media (max-width: 767.98px) {
    #center-directory-map {
        height: 400px;
        border-radius: 15px;
    }

    #center-directory-map .center-named-marker-wrap {
        width: 158px !important;
    }

    #center-directory-map .center-named-marker {
        max-width: 154px;
        min-height: 38px;
        padding: 6px 8px;
        font-size: 10px;
    }

    #center-directory-map .center-named-marker-name {
        max-width: 103px;
    }

    .center-location-control button {
        min-width: 42px;
        padding: 0 9px;
    }

    .center-location-control button b {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Center marker location line — replace arrow pointer
|--------------------------------------------------------------------------
*/

#center-directory-map .center-named-marker-pointer {
    position: absolute;
    right: 50%;
    bottom: -28px;
    width: 2px;
    height: 28px;
    background: #7c3aed;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(91, 33, 182, .22);
    transform: translateX(50%);
}

#center-directory-map .center-named-marker-pointer::before {
    content: "";
    position: absolute;
    right: 50%;
    top: -3px;
    width: 7px;
    height: 7px;
    background: #7c3aed;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 5px rgba(91, 33, 182, .2);
}

#center-directory-map .center-named-marker-pointer::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -4px;
    width: 9px;
    height: 9px;
    background: #6d28d9;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow:
        0 0 0 2px rgba(124, 58, 237, .22),
        0 3px 8px rgba(91, 33, 182, .28);
}

html[data-theme="dark"]
#center-directory-map .center-named-marker-pointer {
    background: #a78bfa;
    border: 0;
}

html[data-theme="dark"]
#center-directory-map .center-named-marker-pointer::before,
html[data-theme="dark"]
#center-directory-map .center-named-marker-pointer::after {
    background: #a78bfa;
    border-color: #211d2d;
}

@media (max-width: 767.98px) {
    #center-directory-map .center-named-marker-pointer {
        bottom: -24px;
        height: 24px;
    }
}

/*
|--------------------------------------------------------------------------
| Adaptive center markers
|--------------------------------------------------------------------------
*/

#center-directory-map.center-map-compact
.center-named-marker {
    min-width: 40px;
    max-width: 44px;
    min-height: 40px;
    gap: 0;
    padding: 5px;
    border-radius: 12px;
    transition:
        max-width .18s ease,
        padding .18s ease,
        box-shadow .18s ease;
}

#center-directory-map.center-map-compact
.center-named-marker-name {
    display: none;
}

#center-directory-map.center-map-compact
.center-named-marker:hover,
#center-directory-map.center-map-compact
.center-named-marker:focus-within {
    max-width: 180px;
    gap: 7px;
    padding: 6px 10px;
    z-index: 1000;
}

#center-directory-map.center-map-compact
.center-named-marker:hover
.center-named-marker-name,
#center-directory-map.center-map-compact
.center-named-marker:focus-within
.center-named-marker-name {
    display: inline-block;
}

#center-directory-map.center-map-detailed
.center-named-marker {
    max-width: 165px;
    min-height: 40px;
    padding: 6px 9px;
}

#center-directory-map.center-map-detailed
.center-named-marker-name {
    max-width: 112px;
}

/*
|--------------------------------------------------------------------------
| User named location marker
|--------------------------------------------------------------------------
*/

#center-directory-map .center-user-marker-wrap {
    width: 150px !important;
    height: 68px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent;
    border: 0;
}

#center-directory-map .center-user-named-marker {
    position: relative;
    display: flex;
    width: max-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto;
    padding: 6px 11px;
    color: #1748a3;
    background: rgba(255, 255, 255, .98);
    border: 2px solid #2563eb;
    border-radius: 12px;
    box-shadow:
        0 10px 25px rgba(37, 99, 235, .2),
        0 2px 7px rgba(30, 64, 175, .14);
    font-family: inherit;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.5;
    white-space: nowrap;
}

#center-directory-map .center-user-marker-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

#center-directory-map .center-user-marker-line {
    position: absolute;
    right: 50%;
    bottom: -28px;
    width: 2px;
    height: 28px;
    background: #2563eb;
    border-radius: 999px;
    transform: translateX(50%);
}

#center-directory-map .center-user-marker-line::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -4px;
    width: 10px;
    height: 10px;
    background: #2563eb;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .2),
        0 3px 8px rgba(30, 64, 175, .3);
}

html[data-theme="dark"]
#center-directory-map .center-user-named-marker {
    color: #bfdbfe;
    background: rgba(28, 35, 50, .98);
    border-color: #60a5fa;
}

html[data-theme="dark"]
#center-directory-map .center-user-marker-line,
html[data-theme="dark"]
#center-directory-map .center-user-marker-line::after {
    background: #60a5fa;
}

html[data-theme="dark"]
#center-directory-map .center-user-marker-line::after {
    border-color: #1c2332;
}

/*
|--------------------------------------------------------------------------
| Touch devices
|--------------------------------------------------------------------------
*/

@media (hover: none) and (pointer: coarse) {
    #center-directory-map.center-map-compact
    .center-named-marker {
        max-width: 42px;
    }

    #center-directory-map.center-map-compact
    .center-named-marker-name {
        display: none;
    }
}

@media (max-width: 767.98px) {
    #center-directory-map .center-user-named-marker {
        min-height: 37px;
        padding: 5px 8px;
        font-size: 10px;
    }

    #center-directory-map .center-user-marker-line {
        bottom: -24px;
        height: 24px;
    }
}

/*
|--------------------------------------------------------------------------
| Stable Leaflet marker anchor
|--------------------------------------------------------------------------
*/

#center-directory-map .center-named-marker-wrap {
    width: 190px !important;
    height: 68px !important;
    margin: 0 !important;
    overflow: visible !important;
}

@media (max-width: 767.98px) {
    #center-directory-map .center-named-marker-wrap {
        width: 190px !important;
        height: 68px !important;
    }
}

/*
|--------------------------------------------------------------------------
| Exact geographic marker anchor
|--------------------------------------------------------------------------
*/

#center-directory-map .center-named-marker {
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
}

#center-directory-map .center-named-marker-pointer {
    top: 40px !important;
    bottom: auto !important;
    right: 50% !important;
    width: 2px !important;
    height: 26px !important;
    background: #7c3aed !important;
    border: 0 !important;
    border-radius: 999px;
    transform: translateX(50%) !important;
}

#center-directory-map .center-named-marker-pointer::before {
    display: none !important;
}

#center-directory-map .center-named-marker-pointer::after {
    content: "" !important;
    position: absolute !important;
    right: 50% !important;
    bottom: -4px !important;
    width: 8px !important;
    height: 8px !important;
    box-sizing: border-box !important;
    background: #6d28d9 !important;
    border: 0 !important;
    border-radius: 50% !important;
    transform: translateX(50%) !important;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px rgba(124, 58, 237, .24) !important;
}

html[data-theme="dark"]
#center-directory-map
.center-named-marker-pointer::after {
    background: #a78bfa !important;
    box-shadow:
        0 0 0 3px #211d2d,
        0 0 0 5px rgba(167, 139, 250, .25) !important;
}

/*
|--------------------------------------------------------------------------
| Final isolated geographic marker
| Coordinate is exactly at the zero-size Leaflet anchor.
|--------------------------------------------------------------------------
*/

#center-directory-map .sc-map-anchor {
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

#center-directory-map .sc-map-label {
    position: absolute !important;
    right: auto !important;
    left: 0 !important;
    top: auto !important;
    bottom: 28px !important;
    display: flex;
    width: max-content;
    max-width: 170px;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 6px 10px;
    color: #33225f;
    background: rgba(255, 255, 255, .98);
    border: 2px solid #7c3aed;
    border-radius: 12px;
    box-shadow:
        0 10px 24px rgba(49, 30, 91, .2),
        0 2px 7px rgba(49, 30, 91, .12);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
    white-space: nowrap;
    transform: translateX(-50%) !important;
    transform-origin: center bottom !important;
}

#center-directory-map .sc-map-label-icon {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    background: #f2ebff;
    border-radius: 8px;
    font-size: 15px;
}

#center-directory-map .sc-map-label-name {
    display: block;
    overflow: hidden;
    max-width: 122px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#center-directory-map .sc-map-label-stem {
    position: absolute !important;
    right: auto !important;
    left: 50% !important;
    top: 100% !important;
    bottom: auto !important;
    width: 2px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #7c3aed !important;
    border: 0 !important;
    border-radius: 999px;
    transform: translateX(-50%) !important;
}

#center-directory-map .sc-map-label-stem::after {
    content: "";
    position: absolute;
    right: auto;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    background: #6d28d9;
    border: 0;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px rgba(124, 58, 237, .25);
}

/*
 * در زوم پایین فقط آیکون دیده می‌شود؛
 * نقطه جغرافیایی همچنان بدون تغییر باقی می‌ماند.
 */
#center-directory-map.center-map-compact .sc-map-label {
    width: 41px;
    max-width: 41px;
    gap: 0;
    padding: 5px;
}

#center-directory-map.center-map-compact
.sc-map-label-name {
    display: none;
}

#center-directory-map.center-map-compact
.sc-map-label:hover {
    width: max-content;
    max-width: 170px;
    gap: 7px;
    padding: 6px 10px;
}

#center-directory-map.center-map-compact
.sc-map-label:hover
.sc-map-label-name {
    display: block;
}

html[data-theme="dark"]
#center-directory-map .sc-map-label {
    color: #f3efff;
    background: rgba(31, 27, 43, .98);
    border-color: #a78bfa;
}

html[data-theme="dark"]
#center-directory-map .sc-map-label-icon {
    background: #3a2e57;
}

html[data-theme="dark"]
#center-directory-map .sc-map-label-stem {
    background: #a78bfa !important;
}

html[data-theme="dark"]
#center-directory-map .sc-map-label-stem::after {
    background: #a78bfa;
    box-shadow:
        0 0 0 3px #211d2d,
        0 0 0 5px rgba(167, 139, 250, .26);
}

@media (max-width: 767.98px) {
    #center-directory-map .sc-map-label {
        bottom: 28px !important;
        max-width: 145px;
        font-size: 10px;
    }

    #center-directory-map .sc-map-label-name {
        max-width: 98px;
    }
}

/*
|--------------------------------------------------------------------------
| Final isolated user-location anchor
|--------------------------------------------------------------------------
*/

#center-directory-map .sc-user-anchor {
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

#center-directory-map .sc-user-label {
    position: absolute !important;
    right: auto !important;
    left: 0 !important;
    top: auto !important;
    bottom: 28px !important;
    display: flex;
    width: max-content;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 6px 11px;
    color: #1748a3;
    background: rgba(255, 255, 255, .98);
    border: 2px solid #2563eb;
    border-radius: 12px;
    box-shadow:
        0 10px 25px rgba(37, 99, 235, .2),
        0 2px 7px rgba(30, 64, 175, .14);
    font-family: inherit;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    transform: translateX(-50%) !important;
}

#center-directory-map .sc-user-label-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 50%;
    font-size: 17px;
}

#center-directory-map .sc-user-label-stem {
    position: absolute !important;
    right: auto !important;
    left: 50% !important;
    top: 100% !important;
    bottom: auto !important;
    width: 2px !important;
    height: 28px !important;
    background: #2563eb !important;
    border: 0 !important;
    transform: translateX(-50%) !important;
}

#center-directory-map .sc-user-label-stem::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border: 0;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px rgba(37, 99, 235, .22);
}

html[data-theme="dark"]
#center-directory-map .sc-user-label {
    color: #bfdbfe;
    background: rgba(28, 35, 50, .98);
    border-color: #60a5fa;
}

html[data-theme="dark"]
#center-directory-map .sc-user-label-stem,
html[data-theme="dark"]
#center-directory-map .sc-user-label-stem::after {
    background: #60a5fa !important;
}
