:root {
    --kovamo-purple: #6F3FF5;
    --kovamo-purple-dark: #5B2FE0;
    --kovamo-purple-soft: #EEE7FF;
    --kovamo-purple-bg: #F6F2FF;
    --kovamo-orange: #FF7A1A;
    --kovamo-dark: #101828;
    --kovamo-text: #374151;
    --kovamo-muted: #6B7280;
    --kovamo-border: #E8DFFF;
    --kovamo-white: #FFFFFF;
}

/* ==============================
   MAP BASE
============================== */

#map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 82px);
    min-height: 680px;
    overflow: hidden;
    background: var(--kovamo-purple-bg);
}

#kovamo-network-map {
    width: 100%;
    height: 100%;
}

/* ==============================
   TOP MAP INFO
============================== */

.map-info {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;

    width: calc(100% - 48px);
    max-width: 620px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px 14px 24px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(111, 63, 245, 0.18);
    box-shadow: 0 18px 45px rgba(40, 25, 90, 0.14);
    backdrop-filter: blur(12px);
}

.map-text {
    color: var(--kovamo-dark);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 42px;
    margin: 0 !important;
    /* padding: 10px 18px !important; */

    border-radius: 18px !important;
    border: 1px solid var(--kovamo-purple) !important;
    background: var(--kovamo-purple) !important;
    color: var(--kovamo-white) !important;

    font-size: 14px;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .2s ease;
}

.locate-btn span {
    padding-left: 0;
    font-weight: 700;
}

.locate-btn .eicon-map-pin {
    color: currentColor;
    font-size: 15px;
}

.locate-btn:hover {
    background: var(--kovamo-purple-dark) !important;
    border-color: var(--kovamo-purple-dark) !important;
    color: var(--kovamo-white) !important;
    transform: translateY(-1px);
}

/* ==============================
   CLUSTER
============================== */

.cluster-icon {
    background-image: url('/wp-content/uploads/2026/05/cluster.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
}

.cluster-icon-text {
    color: var(--kovamo-white);
    font-size: 16px;
    line-height: 43px;
    font-weight: 800;
}

/* ==============================
   OVERLAY INFO CARD
============================== */
.kovamo-map-card--empty {
    text-align: left;
}

.kovamo-map-card--empty .kovamo-map-card__header h2 {
    margin-bottom: 10px;
}

.kovamo-map-card--empty .kovamo-map-card__subtitle p {
    max-width: 360px;
}

.kovamo-network-overlay {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 1001;

    width: min(460px, calc(100% - 64px));
    pointer-events: none;
}

.kovamo-network-overlay:empty {
    display: none;
}

.kovamo-network-overlay .kovamo-map-card {
    pointer-events: auto;
}

.kovamo-map-card {
    position: relative;
    overflow: hidden;

    padding: 26px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(111, 63, 245, 0.18);
    box-shadow: 0 26px 70px rgba(20, 18, 45, 0.22);
    backdrop-filter: blur(14px);
}

.kovamo-map-card::before {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(111, 63, 245, 0.10);
    pointer-events: none;
}

.kovamo-map-card__eyebrow {
    position: relative;
    z-index: 1;

    margin-bottom: 10px;
    color: var(--kovamo-purple);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.kovamo-map-card__header {
    position: relative;
    z-index: 1;
}

.kovamo-map-card__header h2 {
    margin: 0 0 8px;

    color: var(--kovamo-dark);
    font-size: 26px;
    line-height: 1.14;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.kovamo-map-card__subtitle p {
    margin: 0;

    color: var(--kovamo-text);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.kovamo-map-card__text {
    position: relative;
    z-index: 1;

    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid var(--kovamo-border);
    color: var(--kovamo-text);

    font-size: 14px;
    line-height: 1.68;
}

.kovamo-map-card__text p {
    margin: 0;
}

.kovamo-map-card__meta {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.kovamo-map-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--kovamo-text);
    font-size: 14px;
    line-height: 1.5;
}

.kovamo-map-card__icon {
    width: 30px;
    height: 30px;
    min-width: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--kovamo-purple-soft);
    color: var(--kovamo-purple);
    font-size: 13px;
}

.kovamo-map-card__meta-item a {
    color: var(--kovamo-purple);
    font-weight: 750;
    text-decoration: none;
    word-break: break-word;
}

.kovamo-map-card__meta-item a:hover {
    text-decoration: underline;
}

.kovamo-map-card__footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.kovamo-map-card__footer .leafDesc-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 11px 18px;

    border-radius: 10px;
    background: var(--kovamo-purple);
    color: var(--kovamo-white);

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

    box-shadow: 0 12px 28px rgba(111, 63, 245, 0.24);
    transition: all .2s ease;
}

.kovamo-map-card__footer .leafDesc-button a:hover {
    background: var(--kovamo-purple-dark);
    color: var(--kovamo-white);
    transform: translateY(-1px);
}

/* ==============================
   LEAFLET DEFAULT CLEANUP
============================== */

.leaflet-popup-content {
    width: 301px !important;
    margin: 13px 32px 13px 40px !important;
}

.leaflet-control-attribution {
    font-size: 10px;
}


/* MAP SCROLL INDICATOR */
.kovamo-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kovamo-scroll-mouse {
    width: 30px;
    height: 48px;
    border: 2px solid #6F3FF5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(40, 25, 90, 0.18);
    position: relative;
}

.kovamo-scroll-wheel {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #6F3FF5;
    transform: translateX(-50%);
    animation: kovamo-scroll-wheel 1.5s infinite;
}

@keyframes kovamo-scroll-wheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 18px);
    }
}
/* MAP SCROLL INDICATOR */
/* ==============================
   ELEMENTOR EDITOR
============================== */

.elementor-editor-active #map-container,
.elementor-editor-active #kovamo-network-map {
    min-height: 650px;
    height: 650px;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1024px) {
    #map-container {
        height: 720px !important;
        min-height: 720px;
        z-index: 1;
    }

    .map-info {
        top: 24px;
        width: calc(100% - 32px);
    }

    .kovamo-network-overlay {
        right: 24px;
        bottom: 24px;
        width: min(440px, calc(100% - 48px));
    }
}

@media (max-width: 768px) {
    #map-container {
        height: 760px !important;
        min-height: 760px;
    }

    .map-info {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;

        width: auto;
        max-width: none;

        padding: 14px;
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .map-text {
        font-size: 18px;
        margin: 0;
    }

    .locate-btn {
        width: 100%;
    }

    .kovamo-network-overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .kovamo-map-card {
        padding: 20px;
        border-radius: 18px;
    }

    .kovamo-map-card__header h2 {
        font-size: 22px;
    }

    .kovamo-map-card__subtitle p {
        font-size: 14px;
    }

    .kovamo-map-card__footer .leafDesc-button a {
        width: 100%;
    }
}

.kovamo-map-card__icon svg {
    width: 17px;
    height: 17px;
    display: block;
}