/* NPTM service map rendered from API on NMINCOM home page. */
.home-service-map-section {
    position: relative;
    margin: 64px auto;
    padding: 64px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 252, 0.92)),
    repeating-linear-gradient(135deg, rgba(73, 97, 142, 0.08) 0 1px, transparent 1px 34px);
}

.home-service-map-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 191, 227, 0.08), transparent 28%, rgba(73, 97, 142, 0.06) 72%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.62));
    pointer-events: none;
}

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

.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%, 1080px);
    max-width: 1080px;
    min-height: 535px;
    margin: 0 auto;
    padding: 38px 36px;
    overflow: visible !important;
    border: 1px solid rgba(164, 186, 216, 0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 253, 0.9)),
    repeating-linear-gradient(90deg, rgba(73, 97, 142, 0.045) 0 1px, transparent 1px 46px);
    box-shadow: 0 24px 60px rgba(27, 52, 92, 0.12);
}

.home-service-map::after {
    content: "";
    position: absolute;
    inset: 22px;
    z-index: 0;
    border-radius: 8px;
    background: linear-gradient(115deg, transparent 0 58%, rgba(30, 191, 227, 0.08) 58% 59%, transparent 59%),
    linear-gradient(25deg, transparent 0 46%, rgba(73, 97, 142, 0.07) 46% 47%, transparent 47%);
    pointer-events: none;
}

.home-service-map-section .contact-map .home-service-map {
    margin: 0 auto;
    overflow: visible !important;
}

.home-service-map::before {
    content: "";
    position: absolute;
    inset: 46px 390px 46px 38px;
    z-index: 0;
    border: 1px solid rgba(73, 97, 142, 0.1);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(229, 242, 249, 0.72));
    clip-path: polygon(6% 16%, 78% 2%, 96% 40%, 82% 92%, 18% 98%, 0 54%);
    pointer-events: none;
}

.home-service-map svg {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 565px);
    height: auto !important;
    margin: 0 auto 0 58px;
    padding: 8px 0 !important;
    filter: drop-shadow(0 24px 30px rgba(27, 52, 92, 0.2));
}

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

.home-map-guide {
    position: absolute;
    top: 50%;
    right: 34px;
    z-index: 2;
    width: min(382px, calc(100% - 32px));
    padding: 26px;
    border: 1px solid rgba(199, 215, 235, 0.9);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 252, 0.96)),
    repeating-linear-gradient(135deg, rgba(73, 97, 142, 0.045) 0 1px, transparent 1px 30px);
    box-shadow: 0 22px 52px rgba(25, 45, 78, 0.14);
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.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: 18px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #49618e, #1ebfe3);
    box-shadow: 0 12px 22px rgba(30, 191, 227, 0.26);
}

.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 {
    font-size: 22px;
}

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

.home-map-guide h2 {
    margin: 0 0 10px;
    color: #17325d;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

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

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

.home-map-guide__stats div {
    padding: 14px;
    border: 1px solid #e4edf7;
    border-radius: 8px;
    background: #ffffff;
}

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

.home-map-guide__stats span {
    display: block;
    margin-top: 6px;
    color: #6b7b91;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.home-map-guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-map-guide__chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #e4edf7;
    border-radius: 8px;
    background: #ffffff;
    color: #30445f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

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

.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: #48618f;
    stroke: #ffffff;
    stroke-width: 0.95;
    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"]: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));
}

.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(382px, calc(100% - 32px));
    max-height: 438px;
    overflow-y: auto;
    top: 50%;
    left: auto;
    right: 34px;
    margin: 0;
    transform: translateY(-50%);
    z-index: 5 !important;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(199, 215, 235, 0.9);
    border-radius: 8px;
    box-shadow: 0 22px 52px rgba(25, 45, 78, 0.22);
}

.home-map-popup.city-modal.is-open {
    display: block;
}

.home-map-popup .map-close-icon {
    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;
    position: absolute;
    top: 12px;
    right: 12px;
}

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

.home-map-popup__pin {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #49618e, #1ebfe3);
    box-shadow: 0 10px 18px rgba(30, 191, 227, 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: 700;
    color: #6b7b91;
}

.home-map-popup__header h2 {
    margin: 0;
    color: #17325d;
    font-size: 19px;
    font-weight: 700;
    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 {
    border: 1px solid #e4edf7;
    border-radius: 8px;
    overflow: hidden;
    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(135deg, #49618e, #1ebfe3);
    box-shadow: 0 10px 18px rgba(73, 97, 142, 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: #17325d;
    font-size: 15px;
    font-weight: 700;
    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: #17325d;
    background: #eef6fb;
}

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

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

    .home-service-map {
        width: min(100%, 430px);
        min-height: 350px;
        padding: 22px 16px;
    }

    .home-service-map::before {
        inset: 24px 22px 28px 22px;
    }

    .home-service-map::after {
        inset: 12px;
    }

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

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

    .home-map-guide {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 18px;
        padding: 20px;
        transform: none;
    }

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

    .home-map-popup.city-modal {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-height: min(70vh, 520px);
        margin: 0;
        z-index: 1000 !important;
    }
}
