/* NPTM service map rendered from API on NMINCOM home page. */
.home-service-map-section {
    position: relative;
    margin: 44px auto;
    padding: 34px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(33, 132, 214, 0.16), transparent 30%),
        radial-gradient(circle at 86% 70%, rgba(30, 191, 227, 0.16), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #edf6fd 48%, #f9fcff 100%);
}

.home-service-map-section::before,
.home-service-map-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-service-map-section::before {
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.8) 45%, transparent 46%),
        repeating-linear-gradient(135deg, rgba(30, 93, 158, 0.055) 0 1px, transparent 1px 38px);
}

.home-service-map-section::after {
    opacity: 0.65;
    background:
        radial-gradient(circle at 22% 78%, rgba(30, 191, 227, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 20%, rgba(33, 132, 214, 0.16) 0 1px, transparent 2px);
    background-size: 34px 34px, 48px 48px;
}

.home-service-map-section .container {
    position: relative;
    z-index: 1;
    max-width: 1210px;
}

.home-service-map-section .row {
    align-items: center;
}

.home-service-map-section .col-12 {
    display: flex;
    justify-content: center;
}

.home-service-map-section .tab-content,
.home-service-map-section .services__tab__content {
    width: 100%;
}

.home-service-map {
    position: relative;
    width: min(100%, 1140px);
    min-height: 500px;
    margin: 0 auto;
    padding: 28px 400px 30px 52px;
    overflow: hidden !important;
    border: 1px solid rgba(195, 214, 235, 0.82);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 255, 0.9)),
        radial-gradient(circle at 37% 45%, rgba(30, 191, 227, 0.16), transparent 20%),
        radial-gradient(circle at 16% 26%, rgba(32, 110, 195, 0.12), transparent 22%);
    box-shadow: 0 28px 70px rgba(26, 58, 104, 0.16);
}

.home-service-map::before,
.home-service-map::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.home-service-map::before {
    inset: 26px;
    z-index: 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 28% 44%, rgba(30, 191, 227, 0.26), transparent 15%),
        radial-gradient(circle at 72% 80%, rgba(30, 117, 205, 0.18), transparent 20%),
        linear-gradient(145deg, rgba(248, 252, 255, 0.88), rgba(231, 243, 252, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-service-map::after {
    left: 28px;
    right: 400px;
    bottom: 30px;
    height: 92px;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(40, 76, 129, 0.2), transparent 66%);
    filter: blur(20px);
    opacity: 0.72;
}

.home-service-map-section .contact-map .home-service-map {
    margin: 0 auto;
}

.home-service-map svg {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 560px);
    height: auto !important;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 14px 0 8px !important;
    filter:
        drop-shadow(0 24px 28px rgba(21, 61, 111, 0.24))
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.9));
}

.home-service-map-section .contact-map .home-service-map svg {
    width: min(100%, 560px);
    height: auto !important;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 14px 0 8px !important;
}

.home-map-network {
    position: absolute;
    left: 66px;
    top: 88px;
    z-index: 3;
    width: min(51%, 520px);
    height: 278px;
    pointer-events: none;
}

.home-service-map .home-map-network svg,
.home-service-map-section .contact-map .home-service-map .home-map-network svg {
    position: absolute !important;
    inset: 0;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    filter: none !important;
}

.home-map-network,
.home-map-network * {
    pointer-events: none;
}

.home-map-network__arc {
    fill: none;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 1.2;
    stroke-linecap: round;
}

.home-map-network__arc--blue {
    stroke: rgba(30, 191, 227, 0.44);
}

.home-map-network__pulse {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: var(--size, 10px);
    height: var(--size, 10px);
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 0 5px rgba(30, 191, 227, 0.14),
        0 0 18px rgba(30, 191, 227, 0.8);
    transform: translate(-50%, -50%);
}

.home-map-network__pulse::after {
    content: "";
    position: absolute;
    inset: -13px;
    border: 1px solid rgba(30, 191, 227, 0.38);
    border-radius: 50%;
    animation: homeMapPulse 2.6s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

.home-map-network__hub {
    position: absolute;
    left: 56%;
    top: 67%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 12%, #7ee9ff 13% 23%, rgba(30, 191, 227, 0.34) 24% 45%, rgba(30, 117, 205, 0.12) 46% 100%);
    box-shadow:
        0 0 0 12px rgba(30, 191, 227, 0.08),
        0 0 44px rgba(30, 191, 227, 0.6);
    transform: translate(-50%, -50%);
}

@keyframes homeMapPulse {
    0% {
        opacity: 0.75;
        transform: scale(0.65);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

.home-map-guide {
    position: absolute;
    top: 50%;
    right: 34px;
    z-index: 5;
    width: min(360px, calc(100% - 32px));
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(211, 224, 239, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95)),
        repeating-linear-gradient(135deg, rgba(52, 99, 153, 0.035) 0 1px, transparent 1px 28px);
    box-shadow: 0 24px 58px rgba(24, 55, 97, 0.18);
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.home-map-guide::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 34%, rgba(30, 191, 227, 0.08));
    pointer-events: none;
}

.home-map-guide > * {
    position: relative;
    z-index: 1;
}

.home-service-map.has-active-popup .home-map-guide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(16px);
    pointer-events: none;
}

.home-map-guide__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(145deg, #2b85d8, #1757b3);
    box-shadow: 0 14px 24px rgba(26, 103, 190, 0.24);
}

.home-map-guide__icon i,
.home-map-guide__chips i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.home-map-guide__icon i {
    color: #ffffff;
    font-size: 22px;
}

.home-map-guide__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #1f7dd1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-map-guide h2 {
    margin: 0 0 10px;
    color: #132c56;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.16;
}

.home-map-guide p {
    margin: 0;
    color: #526276;
    font-size: 14px;
    line-height: 1.48;
}

.home-map-guide__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}

.home-map-guide__stats div {
    padding: 12px 14px;
    border: 1px solid #e4edf7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(26, 58, 104, 0.06);
}

.home-map-guide__stats strong {
    display: block;
    color: #132c56;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.home-map-guide__stats span {
    display: block;
    margin-top: 5px;
    color: #60728a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.home-map-guide__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
}

.home-map-guide__chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #e4edf7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #30445f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.18;
    box-shadow: 0 8px 18px rgba(26, 58, 104, 0.05);
}

.home-map-guide__chips i {
    color: #1f7dd1;
    font-size: 12px;
}

.home-service-map .blue-tooltip:not([data-id="serur"]):not([data-id="kengerli"]):not([data-id="sahbuz"]):not([data-id="sederek"]):not([data-id="ordubad"]):not([data-id="culfa"]):not([data-id="babek"]):not([data-id="naxcivan"]) {
    display: none !important;
}

.home-service-map path[data-home-map-hidden="true"] {
    display: none !important;
}

.home-service-map path[data-home-map-hidden="false"] {
    fill: #247ed0;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.15;
    cursor: pointer;
    transition: fill 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    outline: none;
}

.home-service-map path[data-home-map-hidden="false"]:nth-of-type(2n) {
    fill: #1d70c5;
}

.home-service-map path[data-home-map-hidden="false"]:nth-of-type(3n) {
    fill: #2f98df;
}

.home-service-map path[data-home-map-hidden="false"]:hover,
.home-service-map path[data-home-map-hidden="false"].is-active {
    fill: #1ebfe3;
    filter:
        drop-shadow(0 8px 12px rgba(20, 52, 95, 0.24))
        drop-shadow(0 0 14px rgba(30, 191, 227, 0.46));
}

.home-service-map path[data-home-map-hidden="false"]:focus-visible {
    outline: none;
    filter: drop-shadow(0 0 8px rgba(30, 191, 227, 0.7));
}

.home-map-popup.city-modal {
    position: absolute;
    display: none;
    width: min(360px, calc(100% - 32px));
    max-height: 430px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 125, 209, 0.22) transparent;
    top: 50%;
    left: auto;
    right: 34px;
    margin: 0;
    transform: translateY(-50%);
    z-index: 30 !important;
    padding: 18px;
    border: 1px solid rgba(211, 224, 239, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(24, 55, 97, 0.24);
}

.home-map-popup.city-modal::-webkit-scrollbar {
    width: 6px;
}

.home-map-popup.city-modal::-webkit-scrollbar-track {
    background: transparent;
}

.home-map-popup.city-modal::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(31, 125, 209, 0.2);
}

.home-map-popup.city-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 125, 209, 0.28);
}

.home-map-popup.city-modal.is-open {
    display: block;
}

.home-map-popup .map-close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #dfe8f4;
    border-radius: 8px;
    background-color: #ffffff;
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-map-popup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
    margin-bottom: 16px;
}

.home-map-popup__pin {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(145deg, #2b85d8, #1757b3);
    box-shadow: 0 12px 20px rgba(26, 103, 190, 0.26);
}

.home-map-popup__pin i {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1;
    transform: none !important;
}

.home-map-popup__header > div > span {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 800;
    color: #1f7dd1;
    text-transform: uppercase;
}

.home-map-popup__header h2 {
    margin: 0;
    color: #132c56;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.home-map-popup__empty {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    background: #f4f8fd;
    color: #526276;
    font-size: 14px;
    line-height: 1.45;
}

.home-map-popup__services {
    display: grid;
    gap: 12px;
}

.home-map-popup__service {
    overflow: hidden;
    border: 1px solid #e4edf7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(27, 52, 92, 0.06);
}

.home-map-popup__service-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: linear-gradient(135deg, #f7fbff, #eef6fb);
}

.home-map-popup__service-title i {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0;
    color: #ffffff !important;
    background: linear-gradient(145deg, #2b85d8, #1757b3);
    box-shadow: 0 10px 18px rgba(26, 103, 190, 0.18);
    font-size: 17px;
    line-height: 1;
    text-align: center;
    transform: none !important;
}

.home-map-popup__service-title i::before,
.home-map-popup__pin i::before,
.home-map-guide__icon i::before,
.home-map-guide__chips i::before {
    display: block;
    line-height: 1;
}

.home-map-popup__service-title h3 {
    margin: 0;
    color: #132c56;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.home-map-popup__links {
    display: grid;
}

.home-map-popup__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #30445f;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    border-top: 1px solid #e7edf6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-map-popup__link:hover {
    color: #132c56;
    background: #eef6fb;
}

.home-map-popup__link i {
    flex: 0 0 auto;
    color: #1f7dd1;
}


.home-service-map > svg {
    overflow: visible !important;
    transform: perspective(1200px) rotateX(14deg) rotateZ(-5deg) translateY(4px);
    transform-origin: 44% 54%;
}

.home-service-map .home-map-3d-extrude,
.home-service-map .home-map-3d-extrude * {
    pointer-events: none;
}

.home-service-map .home-map-3d-layer {
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
}

.home-service-map .home-map-3d-layer-group:first-child .home-map-3d-layer {
    filter: drop-shadow(0 8px 12px rgba(12, 52, 101, 0.34));
}

.home-service-map .blue-tooltip[data-home-map-hidden="false"] {
    vector-effect: non-scaling-stroke;
}

.home-map-network {
    transform: perspective(1200px) rotateX(14deg) rotateZ(-5deg) translateY(4px);
    transform-origin: 44% 54%;
}
.home-service-map.has-active-popup {
    overflow: visible !important;
}

@media (max-width: 992px) {
    .home-service-map {
        width: min(100%, 760px);
        min-height: auto;
        padding: 34px 22px;
        overflow: visible !important;
    }

    .home-service-map::after,
    .home-map-network {
        display: none;
    }

    .home-service-map > svg {
        transform: none;
    }

    .home-service-map svg,
    .home-service-map-section .contact-map .home-service-map svg {
        width: min(100%, 430px);
        margin: 0 auto;
        padding: 8px 0 !important;
    }

    .home-map-guide {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 520px;
        margin: 22px auto 0;
        transform: none;
    }

    .home-service-map.has-active-popup .home-map-guide {
        display: none;
    }

    body.nptm-map-modal-open {
        overflow: hidden;
    }

    body.nptm-map-modal-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 2147482000;
        background: rgba(8, 25, 52, 0.34);
    }

    .home-map-popup.city-modal {
        position: fixed;
        top: 50%;
        left: 14px;
        right: 14px;
        bottom: auto;
        width: auto;
        height: auto;
        max-height: min(74vh, 500px);
        margin: 0;
        z-index: 2147483000 !important;
        transform: translateY(-50%);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 576px) {
    .home-service-map-section {
        margin: 34px auto;
        padding: 32px 0;
    }

    .home-service-map {
        padding: 24px 14px;
    }

    .home-map-guide {
        padding: 18px;
    }

    .home-map-guide h2 {
        font-size: 22px;
    }

    .home-map-guide__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .home-map-guide__chips {
        grid-template-columns: 1fr;
    }
}