.zliner-container {
    position: relative;
}

.zliner-map-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #f0f0f0;
}

.zliner-map-filter-panel .filter-btn {
    margin: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border: 0;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.zliner-map-filter-panel .filter-btn:last-child {
    border-right: 0;
}

.zliner-map-filter-panel .filter-btn:hover {
    background: #eaeaea;
}

.zliner-map-filter-panel .filter-btn.active {
    background: #d6d6d6;
    color: #000;
    font-weight: 600;
}

.zliner-map-stage {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.zliner-map-el {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #fff;
}

.zliner-map-loading {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #6b7a85;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}

.zliner-map-stage.is-loading .zliner-map-loading,
.zliner-map-stage.is-error .zliner-map-loading {
    opacity: 1;
    visibility: visible;
}

.zliner-map-stage.is-error .zliner-map-loading-spinner {
    display: none;
}

.zliner-map-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #dfe4e7;
    border-top-color: #6b7a85;
    border-radius: 50%;
    animation: zliner-map-spin .7s linear infinite;
}

@keyframes zliner-map-spin {
    to { transform: rotate(360deg); }
}

.zliner-marker {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
}

.zliner-marker-image {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.zliner-marker-pin {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    transform: rotate(-45deg);
}

.zliner-marker-quadrants {
    width: 142%;
    height: 142%;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    transform: translate(-50%, -50%) rotate(45deg);
}

.zliner-marker-quadrant {
    width: 100%;
    height: 100%;
    margin: -.5px;
    outline: 1px solid transparent;
    backface-visibility: hidden;
}

.zliner-leaflet-marker-host {
    border: 0 !important;
    background: transparent !important;
}

.zliner-map-popup-card {
    min-width: 220px;
    position: relative;
    padding: 18px 44px 18px 20px;
    border: 1px solid #d8dde0;
    background: #fff;
    color: #24313a;
    box-shadow: 0 8px 28px rgba(31, 44, 52, .12);
}

.zliner-map-popup-title {
    margin: 0 0 8px;
    color: #24313a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.zliner-map-popup-content > :first-child {
    margin-top: 0;
}

.zliner-map-popup-content > :last-child {
    margin-bottom: 0;
}

.zliner-map-popup-close {
    width: 34px !important;
    height: 34px;
    position: absolute !important;
    top: 8px;
    right: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.zliner-map-popup-close:hover,
.zliner-map-popup-close:focus,
.zliner-map-popup-close:focus-visible,
.zliner-map-popup-close:active {
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.zliner-map-popup-close::before,
.zliner-map-popup-close::after {
    content: none !important;
    display: none !important;
}

.zliner-map-popup-close span {
    width: 16px;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: #6b7a85;
    transform-origin: center;
    transition: background-color .2s ease;
}

.zliner-map-popup-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.zliner-map-popup-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.zliner-map-popup-close:hover span {
    background: #1f2b33;
}

.zliner-map-popup-shell .maplibregl-popup-content {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.zliner-map-popup-shell .maplibregl-popup-tip {
    border-top-color: #d8dde0;
}

.zliner-map-popup-shell .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.zliner-map-popup-shell .leaflet-popup-content {
    margin: 0;
}

.zliner-map-popup-shell .leaflet-popup-tip-container {
    display: none;
}

.zliner-map-empty {
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    background: #fff3cd;
    color: #856404;
}


.zliner-map-el .maplibregl-cooperative-gesture-screen {
    display: none !important;
}

.zliner-map-gesture-hint {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.zliner-map-gesture-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .zliner-map-gesture-hint {
        font-size: 18px;
    }
}
