/* StoreMap Map - ASL-Style Design */
:root {
    --sm-primary: #c60060;
    --sm-primary-dark: #a8004f;
    --sm-primary-light: #e8337f;
    --sm-text: #333;
    --sm-text-light: #666;
    --sm-border: #e0e0e0;
    --sm-bg: #fff;
    --sm-bg-light: #f8f8f8;
}

.storemap-map-wrapper {
    position: relative;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Controls Bar === */
.storemap-map-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    background: var(--sm-bg);
    border-bottom: 1px solid var(--sm-border);
}

/* Row 1: Search */
.storemap-controls-row1 {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

/* Row 2: Category + Radius */
.storemap-controls-row2 {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.storemap-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.storemap-control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sm-primary);
}

/* Search */
.storemap-control-search {
    flex: 1;
    position: relative;
}

.storemap-search-box {
    display: flex;
}

/* Autocomplete Dropdown */
.storemap-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--sm-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
}

.storemap-autocomplete:empty {
    display: none;
}

.storemap-ac-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    line-height: 1.4;
    color: var(--sm-text);
    border-bottom: 1px solid #f0f0f0;
}

.storemap-ac-item:last-child {
    border-bottom: none;
}

.storemap-ac-item:hover,
.storemap-ac-item-active {
    background: #fef0f5;
}

.storemap-ac-icon {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}

.storemap-ac-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storemap-search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--sm-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.storemap-search-box input:focus {
    border-color: var(--sm-primary);
}

/* Location button */
.storemap-locate-btn {
    padding: 10px 14px;
    border: none;
    background: var(--sm-bg);
    border-top: 2px solid var(--sm-border);
    border-bottom: 2px solid var(--sm-border);
    color: var(--sm-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.storemap-locate-btn:hover {
    background: #fef0f5;
}

.storemap-locate-btn.storemap-locate-active {
    background: var(--sm-primary);
    color: #fff;
}

/* Search/submit button */
.storemap-search-btn {
    padding: 10px 16px;
    border: none;
    background: var(--sm-primary);
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.storemap-search-btn:hover {
    background: var(--sm-primary-dark);
}

.storemap-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Search button loading spinner */
.storemap-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: storemap-spin 0.6s linear infinite;
}
@keyframes storemap-spin {
    to { transform: rotate(360deg); }
}

/* Category Pills */
.storemap-control-category {
    flex-shrink: 0;
}

.storemap-category-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.storemap-pill {
    padding: 8px 16px;
    border: 2px solid var(--sm-border);
    border-radius: 4px;
    background: var(--sm-bg);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--sm-text);
}

.storemap-pill:hover {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
}

.storemap-pill-active {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}

.storemap-pill-active:hover {
    background: var(--sm-primary-dark);
    color: #fff;
}

/* Radius Slider */
.storemap-control-radius {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.storemap-radius-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.storemap-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--sm-primary) 0%, var(--sm-primary) 50%, var(--sm-border) 50%);
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
}

.storemap-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sm-primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.storemap-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sm-primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.storemap-radius-label {
    font-size: 12px;
    color: var(--sm-text-light);
    text-align: right;
}

/* === Two-column layout: List LEFT, Map RIGHT === */
.storemap-map-layout {
    display: flex;
    gap: 0;
    border: 1px solid var(--sm-border);
    overflow: hidden;
    background: var(--sm-bg);
}

.storemap-list-col {
    width: 420px;
    min-width: 340px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sm-border);
    background: var(--sm-bg);
}

.storemap-map-col {
    flex: 1;
    min-width: 0;
}

#storemap-map {
    border-radius: 0;
    border: none;
    z-index: 1;
}

/* Count bar */
.storemap-map-count {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--sm-primary);
}

/* === Store list === */
.storemap-store-list {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.storemap-list-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sm-border);
    cursor: pointer;
    transition: background 0.15s;
}

.storemap-list-item:hover {
    background: #fef0f5;
}

.storemap-list-item-active {
    background: #fce4ed;
    border-left: 4px solid var(--sm-primary);
    padding-left: 12px;
}

.storemap-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.storemap-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sm-text);
}

.storemap-list-address {
    font-size: 13px;
    color: var(--sm-text-light);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.storemap-list-address::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin-top: 2px;
    background: var(--sm-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
}

.storemap-list-phone {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.storemap-list-phone::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--sm-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center;
}

.storemap-list-phone a {
    color: var(--sm-primary);
    text-decoration: none;
}

.storemap-list-email {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.storemap-list-email::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--sm-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center;
}

.storemap-list-email a {
    color: var(--sm-text-light);
    text-decoration: none;
    font-size: 12px;
    word-break: break-all;
}

.storemap-list-category {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sm-text-light);
}

.storemap-list-category::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--sm-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z'/%3E%3C/svg%3E") no-repeat center;
}

/* Store actions row */
.storemap-list-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.storemap-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.storemap-list-btn-route {
    background: var(--sm-primary);
    color: #fff;
}

.storemap-list-btn-route:hover {
    background: var(--sm-primary-dark);
    color: #fff;
    text-decoration: none;
}

.storemap-list-btn-website {
    background: var(--sm-bg);
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
}

.storemap-list-btn-website:hover {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
    text-decoration: none;
}

.storemap-list-btn-details {
    background: var(--sm-bg);
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
}

.storemap-list-btn-details:hover {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
    text-decoration: none;
}

.storemap-list-distance {
    font-size: 12px;
    font-weight: 600;
    color: var(--sm-text-light);
    margin-left: auto;
    white-space: nowrap;
}

/* === Popup === */
.storemap-popup {
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.storemap-popup strong {
    font-size: 14px;
    color: var(--sm-text);
    display: block;
    margin-bottom: 2px;
}

.storemap-popup a {
    color: var(--sm-primary);
}

.storemap-popup-links {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.storemap-popup-links a {
    font-weight: 600;
    font-size: 13px;
}

.storemap-distance {
    color: var(--sm-primary);
    font-size: 12px;
    font-weight: 500;
}

/* === Custom Marker Clusters (Magenta) === */
.marker-cluster-small {
    background-color: rgba(198, 0, 96, 0.2);
}
.marker-cluster-small div {
    background-color: rgba(198, 0, 96, 0.5);
}
.marker-cluster-medium {
    background-color: rgba(198, 0, 96, 0.3);
}
.marker-cluster-medium div {
    background-color: rgba(198, 0, 96, 0.6);
}
.marker-cluster-large {
    background-color: rgba(198, 0, 96, 0.4);
}
.marker-cluster-large div {
    background-color: rgba(198, 0, 96, 0.7);
}
.marker-cluster div {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    margin-top: 4px;
    text-align: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 32px;
}
.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}

/* === Custom Store Marker === */
.storemap-store-marker {
    background: none;
    border: none;
}

.storemap-store-marker-inner {
    width: 28px;
    height: 36px;
    position: relative;
}

.storemap-store-marker-inner svg {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* === Loading Spinner === */
.storemap-list-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.storemap-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--sm-border);
    border-top-color: var(--sm-primary);
    border-radius: 50%;
    animation: storemap-spin 0.7s linear infinite;
    margin-bottom: 10px;
}

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

/* === Scrollbar Styling === */
.storemap-store-list::-webkit-scrollbar {
    width: 6px;
}

.storemap-store-list::-webkit-scrollbar-track {
    background: var(--sm-bg-light);
}

.storemap-store-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.storemap-store-list::-webkit-scrollbar-thumb:hover {
    background: var(--sm-primary-light);
}

.storemap-store-list {
    scrollbar-width: thin;
    scrollbar-color: #ccc var(--sm-bg-light);
}

/* === No Results === */
.storemap-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.storemap-no-results-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.storemap-no-results-text {
    font-size: 14px;
    line-height: 1.5;
}

.storemap-no-results-hint {
    font-size: 12px;
    color: #bbb;
    margin-top: 6px;
}

/* === User location pulse === */
.storemap-user-location {
    background: none;
    border: none;
}

.storemap-pulse {
    width: 20px;
    height: 20px;
    background: rgba(0, 122, 255, 0.6);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    animation: storemap-pulse-anim 2s infinite;
}

@keyframes storemap-pulse-anim {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* === Focus States (Accessibility) === */
.storemap-search-box input:focus,
.storemap-locate-btn:focus-visible,
.storemap-search-btn:focus-visible,
.storemap-pill:focus-visible,
.storemap-slider:focus-visible,
.storemap-list-btn:focus-visible {
    outline: 2px solid var(--sm-primary);
    outline-offset: 2px;
}

.storemap-list-item:focus-within {
    background: #fef0f5;
}

/* === Responsive === */
@media (max-width: 900px) {
    .storemap-mobile-tabs {
        display: flex;
    }

    .storemap-map-layout {
        flex-direction: column;
    }

    .storemap-list-col {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--sm-border);
        order: 2;
        display: none; /* Hidden by default on mobile (Karte tab active) */
    }

    .storemap-map-col {
        order: 1;
    }

    .storemap-store-list {
        max-height: 60vh;
    }

    .storemap-controls-row2 {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .storemap-map-controls {
        padding: 12px;
    }

    .storemap-controls-row2 {
        flex-direction: column;
        gap: 12px;
    }

    .storemap-control-radius {
        max-width: 100%;
    }

    .storemap-store-list {
        max-height: 300px;
    }

    /* City page map height on mobile */
    .storemap-city-map-section #storemap-map {
        height: 300px !important;
    }

    .storemap-list-col {
        min-width: 0;
    }

    /* Bigger touch targets on mobile */
    .storemap-pill {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }

    .storemap-search-box input {
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom */
    }

    .storemap-locate-btn,
    .storemap-search-btn {
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
    }

    .storemap-slider {
        height: 12px;
    }

    .storemap-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .storemap-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .storemap-list-btn {
        padding: 8px 14px;
        min-height: 36px;
    }
}

/* === Open Status Dots in List === */
.storemap-open-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.storemap-open-dot-open {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}
.storemap-open-dot-closed {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

/* === Marker Bounce on Hover === */
.storemap-marker-bounce {
    animation: storemap-bounce 0.5s ease-in-out;
}
@keyframes storemap-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-12px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-8px); }
}

/* === Reset Button === */
.storemap-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--sm-border);
    border-radius: 4px;
    background: var(--sm-bg);
    color: var(--sm-text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}
.storemap-reset-btn:hover {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
}

/* Toggle Switch (also in frontend.css for city pages) */
.storemap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    user-select: none;
}
.storemap-toggle input {
    display: none;
}
.storemap-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.storemap-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.storemap-toggle input:checked + .storemap-toggle-slider {
    background: #2e7d32;
}
.storemap-toggle input:checked + .storemap-toggle-slider::after {
    transform: translateX(18px);
}
.storemap-toggle-label {
    font-size: 13px;
}

/* Row3 layout */
.storemap-map-controls-row3 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--sm-border);
    background: var(--sm-bg);
}

/* === Fullscreen Map === */
.storemap-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
}
.storemap-fullscreen-btn:hover {
    background: var(--sm-primary);
    color: #fff;
    border-color: var(--sm-primary);
}

.storemap-map-col {
    position: relative;
}

/* Fullscreen mode */
.storemap-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #fff;
}
.storemap-fullscreen #storemap-map {
    height: 100vh !important;
}
.storemap-fullscreen .storemap-map-controls,
.storemap-fullscreen .storemap-map-controls-row3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
}
.storemap-fullscreen .storemap-map-controls-row3 {
    top: auto;
}
.storemap-fullscreen .storemap-list-col {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100000;
    width: 380px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(4px);
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.storemap-fullscreen .storemap-store-list {
    max-height: calc(100vh - 60px);
}
body.storemap-body-fullscreen {
    overflow: hidden;
}

/* === Mobile Tabs (Karte / Liste) === */
.storemap-mobile-tabs {
    display: none; /* Hidden on desktop */
    border-bottom: 1px solid var(--sm-border);
    background: var(--sm-bg);
}
.storemap-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--sm-bg-light);
    color: var(--sm-text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.storemap-tab-active {
    background: var(--sm-bg);
    color: var(--sm-primary);
    border-bottom: 3px solid var(--sm-primary);
}
.storemap-tab[data-count]::after {
    content: attr(data-count);
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--sm-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}
.storemap-tab[data-count="0"]::after {
    display: none;
}

/* === "In diesem Bereich suchen" Button === */
.storemap-search-area-btn {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 1000;
    padding: 10px 20px;
    background: #fff;
    color: var(--sm-primary);
    border: 2px solid var(--sm-primary);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.storemap-search-area-btn:hover {
    background: var(--sm-primary);
    color: #fff;
}
.storemap-search-area-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* === Skeleton Loading === */
.storemap-skeleton {
    padding: 0;
}
.storemap-skeleton-item {
    padding: 16px;
    border-bottom: 1px solid var(--sm-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.storemap-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: storemap-shimmer 1.5s infinite;
}
.storemap-skeleton-title { width: 65%; height: 16px; }
.storemap-skeleton-addr { width: 80%; }
.storemap-skeleton-short { width: 40%; }
@keyframes storemap-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Enhanced Popup === */
.storemap-popup-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.storemap-popup-open {
    background: #dcfce7;
    color: #166534;
}
.storemap-popup-closed {
    background: #fef2f2;
    color: #991b1b;
}
.storemap-popup-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sm-primary);
    padding: 1px 6px;
    border: 1px solid var(--sm-primary);
    border-radius: 3px;
    margin-top: 2px;
}
.storemap-popup-phone {
    display: inline-block;
    margin-top: 2px;
    color: var(--sm-primary);
    font-weight: 500;
}

/* === Enfold Theme Override === */
.storemap-map-wrapper .storemap-search-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
}

.storemap-map-wrapper .storemap-search-box input[type="text"] {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    float: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    border: 2px solid #e0e0e0 !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    font-size: 14px !important;
    height: auto !important;
    line-height: normal !important;
    background: #fff !important;
}

.storemap-map-wrapper .storemap-search-box input[type="text"]:focus {
    border-color: #c60060 !important;
    outline: none !important;
    box-shadow: none !important;
}

.storemap-map-wrapper .storemap-locate-btn,
.storemap-map-wrapper .storemap-search-btn {
    position: relative !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.storemap-map-wrapper .storemap-locate-btn {
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-left: none !important;
    border-right: none !important;
    color: #c60060 !important;
}

.storemap-map-wrapper .storemap-search-btn {
    background: #c60060 !important;
    color: #fff !important;
    border: 2px solid #c60060 !important;
    border-radius: 0 4px 4px 0 !important;
}

.storemap-map-wrapper .storemap-controls-row1 {
    display: flex !important;
}

.storemap-map-wrapper .storemap-controls-row2 {
    display: flex !important;
}

.storemap-map-wrapper .storemap-map-layout {
    display: flex !important;
}

.storemap-map-wrapper .storemap-control-search {
    flex: 1 !important;
}

/* Ensure slider gradient works with Enfold */
.storemap-map-wrapper .storemap-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
}

.storemap-map-wrapper button {
    line-height: normal !important;
}
