

.tekiner-network-map {
    --nm-bg: #ffffff;
    --nm-panel-bg: rgba(255, 255, 255, 0.94);
    --nm-border: #e2e8f0;
    --nm-muted: #64748b;
    --nm-text: #0f172a;
    --nm-primary: #0f2b46;
    --nm-primary-strong: #0b3a62;
    --nm-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --nm-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --nm-radius-lg: 18px;
    --nm-radius-md: 12px;
    --nm-radius-sm: 8px;
    --nm-gap: 16px;
    --nm-dealer: #1d4ed8;
    --nm-retail: #16a34a;
    --nm-service: #f59e0b;
    font-family: 'NeueHaasDisplayRoman', 'NeueHaasDisplayMediu', sans-serif;
    color: var(--nm-text);
    background: var(--nm-bg);
    padding: 1.5rem;
}

.tekiner-network-map * {
    box-sizing: border-box;
}



.tekiner-network-map .container > .breadcrumb {
    width: 100%;
    margin-bottom: 0.25rem;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--nm-border);
    background: transparent;
}
.tekiner-network-map .breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    margin-right: 2px;
    color: var(--nm-muted);
    font-size: 14px;
}


.tekiner-network-map .category-description .nm-legend-ana {
    color: #b91c1c;
    font-weight: 600;
}
.tekiner-network-map .category-description .nm-legend-alt {
    color: #1f2937;
    font-weight: 600;
}


.tekiner-network-map .search-box .search-input {
    border-color: #6c757d;
    border-width: 1px;
}
.tekiner-network-map .search-box .search-input:focus {
    border-color: #08428e !important;
}


.tekiner-network-map .btn-filter {
    display: none !important;
}


.tekiner-network-map .toolbar-left .nm-nearme-btn {
    align-self: stretch;
    min-height: 0;
    padding: 10px 14px;
    font-size: 14px;
}

.nm-nearme-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #08428e;
    border: 1px solid #08428e;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(8, 66, 142, 0.2);
}
.nm-nearme-btn:hover:not(:disabled) {
    background: #063a7a;
    border-color: #063a7a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(8, 66, 142, 0.3);
}
.nm-nearme-btn:active:not(:disabled) {
    transform: translateY(0);
}
.nm-nearme-btn:disabled {
    cursor: not-allowed;
}
.nm-nearme-btn.nm-nearme-loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
}
.nm-nearme-btn.nm-nearme-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: nm-nearme-shimmer 1.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes nm-nearme-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.nm-nearme-btn.nm-nearme-loading {
    animation: nm-nearme-pulse 2s ease-in-out infinite;
}
@keyframes nm-nearme-pulse {
    0%, 100% { box-shadow: 0 2px 4px rgba(8, 66, 142, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(8, 66, 142, 0.35), 0 0 0 6px rgba(255, 255, 255, 0); }
}
.nm-nearme-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.nm-nearme-btn.nm-nearme-loading .nm-nearme-icon {
    opacity: 0;
    transform: scale(0.8);
}
.nm-nearme-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: nm-nearme-spin 0.7s linear infinite;
}
.nm-nearme-btn.nm-nearme-loading .nm-nearme-spinner {
    display: block;
}
.nm-nearme-btn.nm-nearme-loading .nm-nearme-label {
    position: relative;
    z-index: 1;
}
@keyframes nm-nearme-spin {
    to { transform: rotate(360deg); }
}


.tekiner-network-map .category-toolbar {
    border-top: none;
    border-bottom: 1px solid #d1d5db;
    background: #fff;
    padding: 14px 0;
    gap: 14px;
    flex-wrap: nowrap;
    align-items: center;
}
.tekiner-network-map .toolbar-left {
    flex: 1;
    min-width: 0;
    gap: 12px;
    align-items: center;
}
.tekiner-network-map .toolbar-right {
    flex-shrink: 0;
    gap: 10px;
    align-items: center;
}


.tekiner-network-map .nm-nearme-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    background: var(--nm-primary, #08428e);
    border: 1px solid var(--nm-primary, #08428e);
    color: #fff;
}
.tekiner-network-map .nm-nearme-btn:hover:not(:disabled) {
    background: #063a7a;
    border-color: #063a7a;
}

.tekiner-network-map .nm-nearme-btn.nm-nearme-denied {
    background: #b91c1c;
    border-color: #b91c1c;
    min-width: 380px;
}
.tekiner-network-map .nm-nearme-btn.nm-nearme-denied:hover:not(:disabled) {
    background: #991b1b;
    border-color: #991b1b;
}
.tekiner-network-map .nm-nearme-btn.nm-nearme-denied .nm-nearme-label {
    white-space: nowrap;
}
.tekiner-network-map .nm-nearme-icon {
    flex-shrink: 0;
}


.tekiner-network-map .toolbar-left .search-box {
    flex: 1;
    min-width: 0;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0;
}
.tekiner-network-map .toolbar-left .search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}
.tekiner-network-map .toolbar-left .search-box .search-input {
    width: 100%;
    padding: 10px 14px 10px 42px !important;
    font-size: 14px;
    border: none !important;
    border-radius: 8px;
    background: transparent !important;
    color: #374151;
}
.tekiner-network-map .toolbar-left .search-box .search-input:focus {
    box-shadow: none !important;
    outline: none !important;
}
.tekiner-network-map .toolbar-left .search-box:focus-within {
    border-color: #d1d5db;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.tekiner-network-map .toolbar-left .search-box .search-input::placeholder {
    color: #9ca3af;
}


.tekiner-network-map .nm-map-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.tekiner-network-map .nm-metric-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.tekiner-network-map .nm-metric-mini strong {
    font-variant-numeric: tabular-nums;
    color: var(--nm-text, #0f172a);
    font-weight: 600;
}


.tekiner-network-map .sales-consultant-btn {
    padding: 8px 14px;
    border-radius: 8px; 
    background: var(--nm-primary, #08428e);
    border: 1px solid var(--nm-primary, #08428e);
    font-size: 13px;
}
.tekiner-network-map .online-badge {
    border-radius: 6px;
    font-size: 9px;
}


.tekiner-network-map .view-count {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
}
.tekiner-network-map .share-btn,
.tekiner-network-map .like-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
}

.nm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nm-gap);
    margin-top: 1rem; 
}

.nm-layout-map-only {
    grid-template-columns: 1fr;
}


.nm-layout-with-eticaret {
    grid-template-columns: 300px 1fr;
    gap: var(--nm-gap);
    align-items: start;
}

.nm-eticaret-panel {
    position: sticky;
    top: 1rem;
    width: 100%;
    min-width: 0;
}

.nm-eticaret-title {
    width: 100%;
    max-width: 220px;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--nm-text);
    line-height: 1.3;
    box-sizing: border-box;
}

.nm-eticaret-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 160px;
}

.nm-eticaret-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 56px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius-sm);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.nm-eticaret-item:hover {
    opacity: 0.92;
    box-shadow: var(--nm-shadow-soft);
}


.nm-eticaret-img {
    width: auto;
    height: 32px;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.nm-map-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.nm-map-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 1007.478 / 527.323;
    max-height: 65vh; 
    background: #fff;
}

.nm-map {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.nm-map svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

#nm-map #svg-turkiye-haritasi path {
    fill: #64748b;
    stroke: #fff;
    stroke-width: 1.25px;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

#nm-map #svg-turkiye-haritasi path:hover {
    fill: #475569;
}

.nm-map-tooltip {
    position: absolute;
    padding: 0.6rem 1.1rem;
    min-width: 120px;
    background: rgba(15, 43, 70, 0.95);
    color: #fff;
    font-size: 0.95rem;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 6;
    white-space: nowrap;
}

.nm-map-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.nm-map-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.nm-map-pin-badge {
    position: absolute;
    transform: translate(-50%, -50%);
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    pointer-events: auto;
    cursor: pointer;
}


.nm-map-pin-badge.nm-map-pin-ana-bayi {
    background: #b91c1c;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}
.nm-map-pin-badge.nm-map-pin-ana-bayi::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 2px solid #b91c1c;
    opacity: 0.5;
    animation: nm-badge-pulse 2s ease-out infinite;
    z-index: -1;
}


.nm-map-pin-badge.nm-map-pin-alt-bayi {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.5);
}
.nm-map-pin-badge.nm-map-pin-alt-bayi::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 2px solid #1f2937;
    opacity: 0.5;
    animation: nm-badge-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes nm-badge-pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.nm-map-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--nm-muted);
    background: rgba(248, 250, 252, 0.9);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


.nm-map-state.nm-map-loading {
    opacity: 1;
}

.nm-map-state.is-visible {
    opacity: 1;
    pointer-events: auto;
}


.nm-nearme-finding {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nm-nearme-finding.is-visible {
    opacity: 1;
    visibility: visible;
}


.dealer-locate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 43, 70, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.nm-nearme-finding-box.dealer-locate-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 23px;
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 30px 32px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}
@media (max-width: 540px) {
    .nm-nearme-finding-box.dealer-locate-card {
        width: 90%;
        padding: 26px 20px;
    }
    .nm-nearme-finding-box.is-denied {
        max-width: 95%;
    }
    .nm-nearme-finding-box.is-denied .dealer-locate-messages {
        padding-right: 40px;
    }
}


.dealer-locate-loader-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
}
.dealer-locate-loader {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(15, 43, 70, 0.12);
    border-top-color: #08428e;
    border-right-color: #0ea5e9;
    animation: dealer-locate-ring-spin 1.1s linear infinite;
    box-shadow: 0 0 20px rgba(8, 66, 142, 0.15);
}
.nm-nearme-finding-box.is-done .dealer-locate-loader-wrap,
.nm-nearme-finding-box.is-denied .dealer-locate-loader-wrap {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nm-nearme-finding-box.is-denied {
    max-width: 580px;
    min-width: 320px;
}
.nm-nearme-finding-box.is-denied .dealer-locate-progress-wrap {
    opacity: 0;
    pointer-events: none;
}
.nm-nearme-finding-box.is-denied .dealer-locate-messages {
    opacity: 1;
    text-align: left !important;
    margin-top: 0;
    padding-top: 0;
    padding-right: 44px;
}
.nm-nearme-finding-box.is-denied .dealer-locate-title {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: normal !important;
    text-align: left !important;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.4;
}
.nm-nearme-finding-box.is-denied .dealer-locate-title span[data-role="title"] {
    font-size: 18px !important;
    font-weight: normal !important;
}
.nm-nearme-finding-box.is-denied .dealer-locate-subtitle {
    text-align: left !important;
    max-width: 100%;
    margin: 0;
    font-size: 16px !important;
    color: #000 !important;
    line-height: 1.5;
}
.nm-nearme-finding-box.is-denied .dealer-locate-subtitle span[data-role="subtitle"] {
    display: inline;
    font-size: 16px !important;
    color: #000 !important;
}

.nm-nearme-finding-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    color: #64748b;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nm-nearme-finding-close:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}
.nm-nearme-finding-close::before,
.nm-nearme-finding-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 1px;
}
.nm-nearme-finding-close::before {
    transform: rotate(45deg);
}
.nm-nearme-finding-close::after {
    transform: rotate(-45deg);
}
@keyframes dealer-locate-ring-spin {
    to { transform: rotate(360deg); }
}
.dealer-locate-loader-pin {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 43, 70, 0.28);
    pointer-events: none;
}
.dealer-locate-loader-pin svg {
    width: 22px;
    height: 22px;
}


.dealer-locate-messages {
    transition: opacity 0.25s ease;
}
.nm-nearme-finding-box.is-done .dealer-locate-messages {
    opacity: 0;
    pointer-events: none;
}
.dealer-locate-messages.is-out .dealer-locate-title span[data-role="title"] {
    opacity: 0;
    transform: translateY(4px);
}
.dealer-locate-messages.is-out .dealer-locate-subtitle span[data-role="subtitle"] {
    opacity: 0;
    transition-delay: 0s;
}
.dealer-locate-messages.is-in .dealer-locate-title span[data-role="title"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.dealer-locate-messages.is-in .dealer-locate-subtitle span[data-role="subtitle"] {
    opacity: 1;
    transition: opacity 0.22s ease 0.15s;
}

.dealer-locate-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: var(--nm-primary, #0f2b46);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.dealer-locate-title span[data-role="title"] {
    display: inline;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.dealer-locate-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.45;
}
.dealer-locate-subtitle span[data-role="subtitle"] {
    display: inline;
    transition: opacity 0.2s ease;
}
.dealer-locate-messages.is-out .dealer-locate-subtitle span[data-role="subtitle"] {
    transition-delay: 0s;
}
.dealer-locate-messages.is-in .dealer-locate-subtitle span[data-role="subtitle"] {
    transition-delay: 0.15s;
}



.dealer-locate-progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: rgba(15, 43, 70, 0.08);
    border-radius: 0 0 23px 23px;
    overflow: hidden;
}
.nm-nearme-finding-box.is-done .dealer-locate-progress-wrap {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.dealer-locate-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #08428e, #0ea5e9);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 4000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dealer-locate-progress-fill.is-active {
    transform: scaleX(1);
}


.nm-nearme-finding-success {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 16px;
}
.nm-nearme-finding-box.is-done .nm-nearme-finding-success {
    display: flex;
    animation: nm-finding-success-in 0.4s ease forwards;
}
@keyframes nm-finding-success-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.nm-nearme-finding-tick {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.nm-nearme-tick-circle {
    fill: #16a34a;
    stroke: #15803d;
    stroke-width: 2;
}
.nm-nearme-tick-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: nm-tick-draw 0.35s ease 0.15s forwards;
}
@keyframes nm-tick-draw {
    to { stroke-dashoffset: 0; }
}
.nm-nearme-finding-success-text {
    font-size: 18px;
    font-weight: 600;
    color: #16a34a;
}


.nm-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nm-popup.nm-popup-open {
    opacity: 1;
    visibility: visible;
}

.nm-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.nm-popup-box {
    position: relative;
    background: #fff;
    border-radius: 0;
    box-shadow: var(--nm-shadow);
    max-width: 1020px;
    width: 96%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.nm-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--nm-border);
}

.nm-popup-title {
    margin: 0;
    font-size: 23px !important;
    font-weight: 600;
    color: var(--nm-primary);
}

.nm-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--nm-muted);
    padding: 0.25rem;
}

.nm-popup-close:hover {
    color: var(--nm-primary);
}

.nm-popup-body {
    padding: 0.5rem 1rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.nm-popup-toolbar {
    margin-bottom: 0.5rem;
}

.nm-popup-search-box {
    position: relative;
    max-width: 360px;
}

.nm-popup-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nm-muted);
    pointer-events: none;
}

.nm-popup-search {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 38px;
    font-size: 0.85rem;
    border: 1px solid #64748b;
    border-radius: 0;
    background: #fff;
    color: var(--nm-text);
}

.nm-popup-search::placeholder {
    color: var(--nm-muted);
    font-family: 'NeueHaasDisplayRoman', sans-serif;
}

.nm-popup-search:focus {
    outline: none;
    border-color: var(--nm-primary);
    box-shadow: 0 0 0 2px rgba(15, 43, 70, 0.12);
}

.nm-popup-sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.nm-popup-sort:hover {
    color: var(--nm-primary);
}

.nm-popup-sort-icon {
    display: inline-block;
    margin-left: 0.2rem;
    font-size: 0.65rem;
    opacity: 0.5;
}

.nm-popup-sort.nm-popup-sort-asc .nm-popup-sort-icon::after { content: "▲"; opacity: 1; }
.nm-popup-sort.nm-popup-sort-desc .nm-popup-sort-icon::after { content: "▼"; opacity: 1; }

.nm-popup-table-wrap {
    overflow-x: auto;
}

.nm-popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: fixed;
}

.nm-popup-table thead th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--nm-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--nm-border);
    background: #f8fafc;
}

.nm-popup-th-firma { width: 18%; }
.nm-popup-th-adres { width: 40%; }
.nm-popup-th-il { width: 14%; }
.nm-popup-th-ilce { width: 14%; }
.nm-popup-th-tip { width: 14%; }

.nm-popup-list tr.nm-popup-item {
    border-bottom: 1px solid var(--nm-border);
}

.nm-popup-list tr.nm-popup-item:last-child {
    border-bottom: none;
}

.nm-popup-list td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--nm-text);
    font-size: 0.8rem;
}

.nm-popup-td-firma {
    font-weight: 500;
    color: var(--nm-primary);
}

.nm-popup-td-adres {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

.nm-popup-td-il,
.nm-popup-td-ilce {
    color: var(--nm-muted);
    font-size: 0.78rem;
}

.nm-popup-loading,
.nm-popup-empty {
    padding: 1rem;
    text-align: center;
    color: var(--nm-muted);
    font-size: 0.85rem;
}


.nm-popup-td-tip.toptanci {
    background: #b91c1c;
    color: #fff;
}
.nm-popup-td-tip.perakende {
    background: #08428e;
    color: #fff;
}
.nm-popup-item-tip {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 600;
    background: transparent;
    color: #fff;
}

.nm-popup-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nm-border);
}

.nm-popup-pagination button {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border: 1px solid var(--nm-border);
    background: #fff;
    border-radius: 6px;
}

.nm-popup-pagination button:hover:not(:disabled) {
    background: var(--nm-primary);
    color: #fff;
    border-color: var(--nm-primary);
}

.nm-popup-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.dealer-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 0 1px 0 rgba(0, 0, 0, 0.06);
    max-width: 1280px;
    width: 96%;
    height: 85vh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}



.dealer-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: none;
    background: #fafbfc;
}

.dealer-modal-header-inner {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    min-width: 0;
    flex-shrink: 0;
}


.dealer-modal-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dealer-modal-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    opacity: 0.5;
    z-index: -1;
    animation: dealer-modal-pin-pulse 2s ease-out infinite;
}

@keyframes dealer-modal-pin-pulse {
    0%   { transform: scale(0.8); opacity: 0.6; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.dealer-modal-header--search .dealer-modal-pin {
    display: none;
}

.dealer-modal-title-main {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--nm-primary, #0f2b46);
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dealer-modal-meta {
    margin: 0;
    font-size: 15px !important;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    white-space: nowrap;
}


.dealer-modal-header .dealer-modal-search-wrap {
    flex: 0 1 auto;
    min-width: 0;
    position: relative;
    width: 100%;
    max-width: 360px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0;
    box-sizing: border-box;
}
.dealer-modal-header {
    justify-content: flex-start;
}
.dealer-modal-header .dealer-modal-header-inner {
    flex: 0 0 auto;
}
.dealer-modal-header .dealer-modal-search-wrap {
    margin-left: auto;
    margin-right: 12px;
}
.dealer-modal-header .dealer-modal-search-wrap input.dealer-modal-search {
    width: 100%;
    max-width: none;
    padding: 10px 14px 10px 42px !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #374151;
    transition: box-shadow 0.2s ease;
}
.dealer-modal-header .dealer-modal-search-wrap input.dealer-modal-search:focus {
    box-shadow: none !important;
    outline: none !important;
}
.dealer-modal-header .dealer-modal-search-wrap:focus-within {
    border-color: #d1d5db;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.dealer-modal-header .dealer-modal-search-wrap .dealer-modal-search::placeholder {
    color: #9ca3af !important;
}

.dealer-modal-header .dealer-modal-search-wrap .dealer-modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}


.dealer-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dealer-modal-close:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.dealer-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 43, 70, 0.2);
}

.dealer-modal-close-icon {
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
}

.dealer-modal-body {
    padding: 0 24px 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}


.dealer-modal-controls {
    padding: 12px 0 14px;
    margin-bottom: 0;
}

.dealer-modal-search-wrap {
    max-width: 420px;
}

.dealer-modal-search {
    padding: 10px 14px 10px 40px !important;
    font-size: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 11px !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dealer-modal-search::placeholder {
    color: #6b7280;
}

.dealer-modal-search:focus {
    border-color: var(--nm-primary, #08428e) !important;
    box-shadow: 0 0 0 3px rgba(8, 66, 142, 0.08) !important;
}

.dealer-modal-search-icon {
    left: 12px;
    color: #9ca3af;
}

.dealer-modal-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dealer-modal-table {
    font-size: 14px;
    table-layout: fixed;
}

.dealer-modal-table thead th {
    padding: 10px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #374151 !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #d1d5db !important;
    border-top: none !important;
}

.dealer-modal-th-firma { width: 20%; }
.dealer-modal-th-adres { width: 45%; }
.dealer-modal-th-il { width: 12%; }
.dealer-modal-th-ilce { width: 13%; }
.dealer-modal-th-tip { width: 10%; }


.dealer-modal-table .nm-popup-list tr.nm-popup-item {
    border-bottom: 1px solid #d1d5db;
    transition: background 0.12s ease;
}

.dealer-modal-table .nm-popup-list tr.nm-popup-item:hover {
    background: #f9fafb;
}

.dealer-modal-table .nm-popup-list tr.nm-popup-item:last-child {
    border-bottom: none;
}

.dealer-modal-table .nm-popup-list td {
    padding: 10px 12px !important;
    font-size: 14px;
    border: none !important;
    vertical-align: middle;
}

.dealer-modal-td-firma {
    font-weight: 600 !important;
    color: var(--nm-primary, #0f2b46) !important;
}

.dealer-modal-td-adres {
    font-weight: 400 !important;
    color: #374151 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

.dealer-modal-td-il,
.dealer-modal-td-ilce {
    color: #6b7280 !important;
    font-weight: 400 !important;
}

.dealer-modal-td-tip {
    background: transparent !important;
}


.dealer-modal-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dealer-modal-badge-ana {
    background: #fef2f2;
    color: #b91c1c;
}

.dealer-modal-badge-alt {
    background: #f3f4f6;
    color: #1f2937;
}

.dealer-modal-empty {
    padding: 20px 14px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

.dealer-modal-pagination {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d1d5db;
}

.dealer-modal-pagination button {
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.dealer-modal-pagination button:hover:not(:disabled) {
    background: var(--nm-primary, #08428e);
    color: #fff;
    border-color: var(--nm-primary, #08428e);
}

@media (max-width: 1024px) {
    .dealer-modal-box {
        width: 92% !important;
    }
}

@media (max-width: 768px) {
    .dealer-modal-box {
        width: 92% !important;
        height: 88vh;
        min-height: 320px;
    }
    .dealer-modal-table-wrap {
        overflow-x: auto;
    }
    .dealer-modal-header {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }
    .dealer-modal-header-inner {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .dealer-modal-header .dealer-modal-search-wrap {
        max-width: none;
        width: 100%;
        order: 3;
    }
    .dealer-modal-close {
        width: 36px;
        height: 36px;
    }
    .dealer-modal-title-main {
        font-size: 18px !important;
        white-space: normal;
    }
    .dealer-modal-body {
        padding: 0 22px 16px;
    }
    .dealer-modal-controls {
        padding: 12px 0 14px;
    }
    .dealer-modal-search-wrap {
        max-width: none;
        width: 100%;
    }
    .dealer-modal-table .nm-popup-list td,
    .dealer-modal-table thead th {
        padding: 10px 12px !important;
    }
}

.nm-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    z-index: 4;
}

.nm-pin-core {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    border: 2px solid var(--nm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--nm-shadow-soft);
    position: relative;
}

.nm-pin-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nm-primary);
}

.nm-pin-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--nm-primary);
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.nm-pin:hover .nm-pin-label,
.nm-pin.is-active .nm-pin-label {
    opacity: 1;
}

.nm-pin::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    background: rgba(15, 43, 70, 0.15);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: -1;
}

.nm-pin.is-hover::after {
    opacity: 1;
    transform: scale(1);
}

.nm-pin.is-active::after {
    opacity: 1;
    animation: nm-pulse 2.4s ease-out infinite;
}


.nm-pin.is-burst .nm-pin-core {
    animation: nm-burst 0.45s ease;
}

@keyframes nm-burst {
    0% { transform: scale(1); }
    45% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes nm-pulse {
    0% { transform: scale(0.7); opacity: 0.7; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.nm-pin.nm-pin-dealer .nm-pin-core {
    border-color: var(--nm-dealer);
}
.nm-pin.nm-pin-dealer .nm-pin-count { color: var(--nm-dealer); }

.nm-pin.nm-pin-retail .nm-pin-core {
    border-color: var(--nm-retail);
}
.nm-pin.nm-pin-retail .nm-pin-count { color: var(--nm-retail); }

.nm-pin.nm-pin-service .nm-pin-core {
    border-color: var(--nm-service);
}
.nm-pin.nm-pin-service .nm-pin-count { color: var(--nm-service); }

.nm-panel {
    display: flex;
    flex-direction: column;
    background: var(--nm-panel-bg);
    border-radius: var(--nm-radius-lg);
    border: 1px solid var(--nm-border);
    box-shadow: var(--nm-shadow);
    padding: 1.1rem 1.1rem 1.2rem;
    gap: 0.9rem;
    min-height: 72vh;
    position: relative;
}

.nm-panel-handle {
    display: none;
    width: 46px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0.2rem auto 0.4rem;
}

.nm-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.nm-panel-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nm-muted);
}

.nm-panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nm-primary);
}

.nm-panel-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.nm-search input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius-sm);
    font-size: 0.9rem;
    background: #fff;
    color: var(--nm-text);
}

.nm-panel-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.nm-filter label {
    display: block;
    font-size: 0.72rem;
    color: var(--nm-muted);
    margin-bottom: 0.25rem;
}

.nm-filter select {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: var(--nm-radius-sm);
    border: 1px solid var(--nm-border);
    font-size: 0.85rem;
    background: #fff;
    color: var(--nm-text);
}

.nm-panel-selected {
    display: none;
    padding: 0.75rem;
    border-radius: var(--nm-radius-md);
    background: #fff;
    border: 1px solid var(--nm-border);
}

.nm-panel-selected.is-visible {
    display: block;
}

.nm-panel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--nm-muted);
}

.nm-sort label {
    margin-right: 0.35rem;
}

.nm-sort select {
    padding: 0.45rem 0.5rem;
    border-radius: var(--nm-radius-sm);
    border: 1px solid var(--nm-border);
    font-size: 0.8rem;
    background: #fff;
}

.nm-results {
    position: relative;
    flex: 1;
    min-height: 240px;
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius-md);
    background: #fff;
    overflow-y: auto;
    padding: 0.25rem 0.35rem;
}

.nm-results-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.nm-results-spacer {
    height: 0;
}

.nm-card {
    position: absolute;
    cursor: pointer;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: var(--nm-radius-md);
    border: 1px solid transparent;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nm-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--nm-shadow-soft);
    transform: translateY(-1px);
}

.nm-card.is-selected {
    border-color: var(--nm-primary);
    background: #ffffff;
    box-shadow: var(--nm-shadow);
}

.nm-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.nm-card-avatar.dealer { background: var(--nm-dealer); }
.nm-card-avatar.retail { background: var(--nm-retail); }
.nm-card-avatar.service { background: var(--nm-service); }

.nm-card-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--nm-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-card-meta {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--nm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-card-sub {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--nm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.nm-chip {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
}

.nm-chip.active { background: #dcfce7; color: #166534; }
.nm-chip.inactive { background: #fee2e2; color: #991b1b; }
.nm-chip.gold { background: #fef3c7; color: #92400e; }
.nm-chip.silver { background: #e5e7eb; color: #374151; }

.nm-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--nm-muted);
}

.nm-route {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--nm-border);
    background: #fff;
    font-size: 0.72rem;
    text-decoration: none;
    color: var(--nm-primary);
    font-weight: 600;
}

.nm-route:hover {
    border-color: var(--nm-primary);
    color: var(--nm-primary-strong);
}

.nm-panel-empty {
    display: none;
    padding: 1rem;
    text-align: center;
    color: var(--nm-muted);
}

.nm-panel-empty.is-visible {
    display: block;
}

.nm-btn {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--nm-border);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nm-primary);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nm-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

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

.nm-btn-primary:hover {
    background: var(--nm-primary-strong);
    border-color: var(--nm-primary-strong);
}

.nm-btn-ghost {
    background: #fff;
}

.nm-panel-toggle {
    display: none;
}

.nm-panel-scrim {
    display: none;
}

.nm-noscript {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--nm-radius-md);
    border: 1px solid var(--nm-border);
    background: #fff;
    color: var(--nm-muted);
}

.nm-map-shell .nm-user-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.2);
    transform: translate(-50%, -50%);
    z-index: 4;
}

@media (max-width: 1200px) {
    .nm-layout:not(.nm-layout-with-eticaret) {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .nm-layout.nm-layout-with-eticaret {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 1024px) {
    .tekiner-network-map {
        padding: 1rem;
    }

    .nm-layout {
        grid-template-columns: 1fr;
    }

    .nm-map-panel {
        min-height: 0; 
    }

    .nm-panel {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        top: auto;
        max-height: 80vh;
        transform: translateY(65%);
        transition: transform 0.25s ease;
        z-index: 20;
        backdrop-filter: blur(10px);
    }

    .tekiner-network-map.nm-panel-open .nm-panel {
        transform: translateY(0);
    }

    .nm-panel-handle {
        display: block;
    }

    .nm-panel-toggle {
        display: inline-flex;
    }

    .nm-panel-close {
        display: inline-flex;
    }

    .nm-panel-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 10;
    }

    .tekiner-network-map.nm-panel-open .nm-panel-scrim {
        opacity: 1;
        pointer-events: auto;
    }
}


@media (max-width: 768px) {
    .tekiner-network-map {
        padding: 1rem;
    }
    .tekiner-network-map .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .tekiner-network-map .category-header {
        padding: 12px 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-bottom: 1px solid var(--nm-border);
    }
    .tekiner-network-map .category-info {
        width: 100%;
    }
    .tekiner-network-map .category-title {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }
    .tekiner-network-map .category-description {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 0;
    }
    .tekiner-network-map .category-stats {
        width: 100%;
        align-items: flex-start;
        margin-top: 0;
    }
    .tekiner-network-map .product-count {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .tekiner-network-map .category-toolbar {
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-bottom: 1px solid var(--nm-border);
    }
    .tekiner-network-map .toolbar-left {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        order: 1;
    }
    .tekiner-network-map .toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        order: 2;
    }
    .tekiner-network-map .category-toolbar {
        flex-wrap: wrap;
    }
    
    .tekiner-network-map .nm-nearme-btn {
        min-width: 0;
        width: 100%;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .tekiner-network-map .toolbar-left .search-box {
        width: 100%;
        max-width: none;
        flex: none;
    }
    .tekiner-network-map .search-box .search-input {
        padding: 10px 14px 10px 42px !important;
        font-size: 14px;
    }
    
    .tekiner-network-map .nm-map-metrics,
    .tekiner-network-map .view-count,
    .tekiner-network-map .share-dropdown-wrapper,
    .tekiner-network-map .like-btn {
        display: none !important;
    }
    .tekiner-network-map .toolbar-right .page-stats {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .tekiner-network-map .sales-consultant-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
    }
    .tekiner-network-map .consultant-text {
        white-space: nowrap;
    }
    .nm-map-shell {
        min-height: 48vh;
    }
    .nm-panel {
        left: 0.75rem;
        right: 0.75rem;
    }
    .nm-panel-filters {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 540px) {
    .tekiner-network-map {
        padding: 0.75rem;
    }
    .tekiner-network-map .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .tekiner-network-map .category-header {
        padding: 10px 0 12px;
        gap: 10px;
    }
    .tekiner-network-map .category-title {
        font-size: 18px !important;
    }
    .tekiner-network-map .category-description {
        font-size: 12px;
    }
    .tekiner-network-map .category-toolbar {
        padding: 12px 0;
        gap: 10px;
    }
    .tekiner-network-map .toolbar-left {
        gap: 8px;
    }
    .tekiner-network-map .nm-nearme-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
    .tekiner-network-map .toolbar-right {
        gap: 8px;
    }
    .tekiner-network-map .nm-map-metrics {
        gap: 6px;
    }
    .tekiner-network-map .nm-metric-mini {
        padding: 5px 8px;
        font-size: 11px;
    }
    .tekiner-network-map .page-stats {
        gap: 8px;
    }
    .tekiner-network-map .sales-consultant-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
    .tekiner-network-map .consultant-text {
        font-size: 12px;
    }
    .tekiner-network-map .view-count {
        padding: 5px 8px;
        font-size: 11px;
    }
    .nm-map-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nm-panel-search {
        grid-template-columns: 1fr;
    }
}

.nm-btn:focus-visible,
.nm-pin:focus-visible,
.nm-results:focus-visible,
.nm-search input:focus-visible,
.nm-filter select:focus-visible {
    outline: 2px solid var(--nm-primary);
    outline-offset: 2px;
}
