.heat-map-component {
    margin: 0 0 30px;
    color: #102a43;
}

.heat-map-component * {
    box-sizing: border-box;
}

.heat-map-header {
    max-width: 920px;
    margin: 0 0 18px;
}

.heat-map-component .heat-map-kicker {
    margin: 0 0 6px;
    color: #0f4c81;
    font-size: 14px;
    font-weight: 700;
}

.heat-map-component .heat-map-header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.25;
}

.heat-map-component .heat-map-header p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}

.heat-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.heat-map-map-panel {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    background: #edf6f5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    -webkit-overflow-scrolling: touch;
}

.heat-map-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e7f3f3;
}

.heat-map-component .heat-map-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;
}

.heat-map-hotspot-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heat-map-hotspot {
    fill: transparent;
    stroke: transparent;
    stroke-width: 3;
    cursor: pointer;
    pointer-events: auto;
    transition: fill-opacity .16s ease, stroke-opacity .16s ease;
}

.heat-map-hotspot:hover,
.heat-map-hotspot:focus,
.heat-map-hotspot.is-active {
    fill: var(--heat-map-zone-color);
    fill-opacity: .24;
    outline: none;
    stroke: var(--heat-map-zone-color);
    stroke-opacity: .95;
}

.heat-map-side {
    display: grid;
    gap: 14px;
}

.heat-map-info,
.heat-map-control,
.heat-map-legend {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.heat-map-info {
    min-height: 176px;
    padding: 18px;
}

.heat-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 76, 129, .08);
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.heat-map-dot,
.heat-map-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--heat-map-dot, #0f4c81);
    border: 1px solid rgba(15, 23, 42, .18);
    flex: 0 0 11px;
}

.heat-map-component .heat-map-info h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
}

.heat-map-component .heat-map-info p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.heat-map-control {
    padding: 16px;
}

.heat-map-component .heat-map-control label {
    display: block;
    margin: 0 0 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.heat-map-component .heat-map-control select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.heat-map-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(15, 76, 129, .18);
    border-radius: 10px;
    background: #f8fbfd;
    color: #0f4c81;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.heat-map-clear:hover,
.heat-map-clear:focus {
    background: #eef6fb;
    color: #0b3b63;
    outline: none;
}

.heat-map-legend {
    padding: 16px;
}

.heat-map-component .heat-map-legend-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.heat-map-component .heat-map-zone-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.heat-map-component .heat-map-zone-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.heat-map-details {
    margin-top: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.heat-map-component .heat-map-details summary {
    cursor: pointer;
    padding: 14px 16px;
    color: #0f4c81;
    font-size: 15px;
    font-weight: 800;
}

.heat-map-table-scroll {
    overflow-x: auto;
    border-top: 1px solid rgba(148, 163, 184, .22);
    -webkit-overflow-scrolling: touch;
}

.heat-map-component .heat-map-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.heat-map-component .heat-map-table th,
.heat-map-component .heat-map-table td {
    padding: 12px 14px;
    border-right: 1px solid rgba(148, 163, 184, .14);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.heat-map-component .heat-map-table th {
    background: #0f4c81;
    color: #fff;
    font-weight: 800;
}

.heat-map-component .heat-map-table tr:last-child td {
    border-bottom: 0;
}

.heat-map-component .heat-map-table th:last-child,
.heat-map-component .heat-map-table td:last-child {
    border-right: 0;
}

.heat-map-zone-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.heat-map-tooltip {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    max-width: 310px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .96);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 18px));
    transition: opacity .12s ease, visibility .12s ease;
}

.heat-map-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.heat-map-tooltip strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.heat-map-tooltip span,
.heat-map-tooltip em {
    display: block;
    color: #dbeafe;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
}

.heat-map-tooltip em {
    margin-top: 6px;
    color: #f8fafc;
}

.heat-map-popup {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: min(330px, calc(100% - 24px));
    padding: 16px 18px 15px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-top: 5px solid var(--heat-map-popup-zone, #0f4c81);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .22);
    color: #102a43;
    transform: translate(-50%, calc(-100% - 16px));
}

.heat-map-popup[hidden] {
    display: none;
}

.heat-map-popup.is-visible {
    animation: heatMapPopupIn .16s ease-out;
}

.heat-map-popup.is-below {
    transform: translate(-50%, 16px);
}

.heat-map-popup::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, .98);
    border-right: 1px solid rgba(15, 23, 42, .12);
    border-bottom: 1px solid rgba(15, 23, 42, .12);
    transform: translateX(-50%) rotate(45deg);
}

.heat-map-popup.is-below::after {
    top: -9px;
    bottom: auto;
    border: 0;
    border-left: 1px solid rgba(15, 23, 42, .12);
    border-top: 1px solid rgba(15, 23, 42, .12);
}

.heat-map-popup-close {
    position: absolute;
    top: 9px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: #f8fbfd;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.heat-map-popup-close:hover,
.heat-map-popup-close:focus {
    background: #eef6fb;
    color: #0f4c81;
    outline: none;
}

.heat-map-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 36px);
    margin: 0 0 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(15, 76, 129, .08);
    color: #0f4c81;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.heat-map-popup h3 {
    margin: 0 34px 8px 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
}

.heat-map-popup p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.heat-map-popup-hint {
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(15, 76, 129, .08);
    color: #0f4c81;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

@keyframes heatMapPopupIn {
    from {
        opacity: 0;
        margin-top: 8px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    .heat-map-grid {
        grid-template-columns: 1fr;
    }

    .heat-map-side {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .heat-map-info {
        grid-column: 1 / -1;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .heat-map-component {
        margin-bottom: 24px;
    }

    .heat-map-component .heat-map-header h2 {
        font-size: 23px;
    }

    .heat-map-component .heat-map-header p {
        font-size: 15px;
    }

    .heat-map-map-panel {
        border-radius: 14px;
    }

    .heat-map-shell {
        min-width: 760px;
    }

    .heat-map-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .heat-map-info,
    .heat-map-control,
    .heat-map-legend,
    .heat-map-details {
        border-radius: 14px;
    }

    .heat-map-info {
        padding: 15px;
    }

    .heat-map-component .heat-map-info h3 {
        font-size: 20px;
    }

    .heat-map-tooltip {
        display: none;
    }

    .heat-map-popup {
        width: 292px;
        padding: 14px 15px;
        border-radius: 14px;
    }

    .heat-map-popup h3 {
        font-size: 19px;
    }

    .heat-map-popup p {
        font-size: 13px;
    }
}
