.home-map-page {
    min-height: calc(100vh - 30px);
    background: #f3f4f6;
    color: #1f2937;
}

.home-topbar {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.home-brand {
    font-size: 22px;
    font-weight: 700;
}

.home-layout {
    height: calc(100vh - 64px);
    min-height: 520px;
    display: flex;
}

.home-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
	padding-bottom: 24px;
}

.home-sidebar {
    background-color: #ffffff;
    padding: 24px;
    min-width: 420px;
    width: 28%;
	z-index: 2000;
}

.home-map {
    width: 100%;
    height: 100%;
}

.home-map-info {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.home-panel-kicker {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
}

.home-map-info h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.home-map-info p {
    margin: 0 0 18px;
    color: #4b5563;
}

.home-map-back {
    display: none;
    padding: 8px 12px;
    background: #111827;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.home-map-legend {
    display: none;
    position: absolute;
    right: 24px;
    bottom: 48px;
    z-index: 1000;
    width: 300px;
    max-height: 320px;
    padding: 14px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.home-map-legend-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
}

.home-map-legend-item {
    display: grid;
    grid-template-columns: 18px 56px 1fr;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.25;
    color: #1f2937;
    cursor: pointer;
}

.home-map-legend-item input {
    margin: 0;
}

.home-map-legend-item img {
    width: 50px;
    max-height: 26px;
    object-fit: contain;
}

.home-map-legend-item:not(.home-map-legend-item-line) img {
    width: 26px;
    height: 26px;
}

.home-line-pattern-icon {
    border: 0;
    background: transparent;
    overflow: visible;
    pointer-events: none;
}

.home-line-pattern-strip {
    display: block;
    height: 13px;
    background-repeat: repeat-x;
    background-size: 50px 13px;
    background-position: left center;
    transform-origin: center;
}

.home-poste-icon {
    background: transparent;
    border: 0;
    overflow: visible;
    pointer-events: none;
}

.home-poste-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-poste-icon span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: #111827;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px #fff, 0 -1px 2px #fff, 1px 0 2px #fff, -1px 0 2px #fff;
}

.home-poste-tooltip-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-poste-tooltip {
    min-width: 180px;
    padding: 10px 12px;
    background: #ffffff;
    /*border: 1px solid #d1d5db;*/
    border-radius: 6px;
    /*box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);*/
    color: #1f2937;
    font-size: 12px;
    line-height: 1.35;
}

.home-poste-tooltip-title {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.home-poste-tooltip-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    padding: 2px 0;
}

.home-poste-tooltip-label {
    color: #6b7280;
    font-weight: 600;
}

.home-poste-tooltip-value {
    color: #111827;
    overflow-wrap: anywhere;
}

.home-footer {
    position: absolute;
	height: 24px;
	padding: 0 8px;
    bottom: 0;
    left: 0;
    right: 0;
	z-index: 1000;
    background: #ffffff;
	width: 100%;
}

@media (max-width: 768px) {
    .home-layout {
        height: auto;
        min-height: 0;
    }

    .home-map-wrap {
        height: 60vh;
        min-height: 360px;
    }

    .home-map-info {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: 320px;
        padding: 16px;
    }

    .home-map-legend {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: 180px;
    }
}
