/* storeFinder by [tech]NEO – Frontend (modern, neu aufgebaut) */

.storeFinderToggle .nav-link-custom { cursor: pointer; }

/* Overlay */
.storeFinderWrapper {
    position: fixed; inset: 0; z-index: 99990;
    background: rgba(15, 30, 45, 0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
.storeFinderWrapper.is-open { display: flex; }

.storeFinderContainer {
    position: relative; background: #fff; border-radius: 16px;
    width: 100%; max-width: 1120px; height: 82vh; max-height: 820px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 1;
}

.storeFinderTitle {
    padding: 18px 24px; font-size: 18px; font-weight: 700; color: #0b6aa2;
    border-bottom: 1px solid #eef2f5; flex: 0 0 auto;
}
.storeFinderTitle .storeFinderListCount { color: #14AAF5; }

.storeFinderClose {
    position: absolute; top: 14px; right: 16px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #475569; cursor: pointer; font-size: 18px;
    transition: background .15s ease, color .15s ease;
}
.storeFinderClose:hover { background: #dc3545; color: #fff; }

.storeFinderInner { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }

/* Panel (Liste) */
.storeFinderPanel {
    flex: 0 0 360px; max-width: 360px; overflow-y: auto;
    border-right: 1px solid #eef2f5; background: #f8fafc; padding: 14px;
}
.storeFinderPanel .sfEmpty { color: #6c757d; text-align: center; padding: 30px 12px; font-size: 14px; }

.sfStoreItem {
    background: #fff; border: 1px solid #e6edf2; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 12px; cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.sfStoreItem:hover, .sfStoreItem.sfActive { box-shadow: 0 6px 18px rgba(20,170,245,.18); border-color: #14AAF5; transform: translateY(-1px); }
.sfStoreItem .sfHead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sfStoreItem .sfName { font-weight: 700; color: #1e293b; font-size: 15px; }
.sfStoreItem .sfMeta { color: #5a7384; font-size: 13px; line-height: 1.6; }
.sfStoreItem .sfMeta i { color: #14AAF5; width: 15px; margin-right: 6px; }
.sfStoreItem .sfDist { margin-left: auto; font-size: 12px; color: #14AAF5; font-weight: 600; white-space: nowrap; }

/* Typ-Badges */
.sfType { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sfType-mainstore { background: #dbeafe; color: #1e40af; }
.sfType-authorized { background: #dcfce7; color: #166534; }
.sfType-outlet { background: #fef3c7; color: #92400e; }

/* Map */
.storeFinderMap { flex: 1 1 auto; min-width: 0; height: 100%; }

/* Suchleiste (über der Karte schwebend) */
.storeFinderSearch {
    position: absolute; top: 16px; left: 376px; right: 16px; z-index: 4;
    background: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.15);
    display: flex; align-items: center; padding: 4px 6px; gap: 4px;
}
.storeFinderSearch .multi-block { display: flex; align-items: center; width: 100%; gap: 4px; }
.storeFinderSearch .search-input-wrap { flex: 1 1 auto; }
.storeFinderSearch .search-input {
    width: 100%; border: none; outline: none; background: transparent;
    padding: 10px 14px; font-size: 14px; color: #243743;
}
.storeFinderSearch .sfButton {
    width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: #0b6aa2; transition: background .15s ease, color .15s ease;
}
.storeFinderSearch .sfButton:hover { background: #eef6fb; }
.storeFinderSearch .search-nearby-wrap .search-nearby {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #0b6aa2;
}
.storeFinderSearch .search-nearby:hover { background: #eef6fb; }
.storeFinderSearch .sfSearchButton { background: #14AAF5; color: #fff; }
.storeFinderSearch .sfSearchButton:hover { background: #0b6aa2; color: #fff; }
.storeFinderSearch .map-toggle { display: none; }

/* Filter-Popover */
.storeFinderSearch .search-filter-content {
    position: absolute; top: 54px; right: 0; width: 260px; background: #fff;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 16px;
    display: none;
}
.storeFinderSearch.sfFiltersOpen .search-filter-content { display: block; }
.storeFinderSearch.noFilter .search-filter-wrap { display: none; }
.storeFinderSearch .filters { list-style: none; margin: 0; padding: 0; }
.storeFinderSearch .filters li { display: flex; align-items: center; gap: 8px; padding: 8px 0; position: relative; }
.storeFinderSearch .filters label { margin: 0; font-size: 14px; color: #243743; font-weight: 600; order: 2; cursor: pointer; }
.storeFinderSearch .filters .info-icon { order: 3; color: #9aa7b1; font-size: 12px; }
.storeFinderSearch .filters input.filter { order: 1; accent-color: #14AAF5; width: 18px; height: 18px; }

/* Modernes Google-InfoWindow */
.gm-style .gm-style-iw-c { border-radius: 14px !important; box-shadow: 0 12px 40px rgba(0,0,0,.25) !important; padding: 0 !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-style-iw-tc { display: none; }
.sfPopup { padding: 16px 18px 14px; min-width: 230px; max-width: 280px; font-family: "Open Sans", Arial, sans-serif; }
.sfPopup .sfPopHead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sfPopup .sfPopName { font-size: 16px; font-weight: 700; color: #1e293b; }
.sfPopup .sfPopRow { display: flex; align-items: flex-start; gap: 9px; color: #43586a; font-size: 13.5px; line-height: 1.5; margin: 5px 0; }
.sfPopup .sfPopRow i { color: #14AAF5; width: 15px; margin-top: 2px; flex: 0 0 15px; }
.sfPopup .sfPopBtn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    background: #14AAF5; color: #fff; border-radius: 8px; padding: 9px 14px;
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.sfPopup .sfPopBtn:hover { background: #0b6aa2; color: #fff; text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
    .storeFinderWrapper { padding: 0; }
    .storeFinderContainer { height: 100vh; max-height: none; border-radius: 0; }
    .storeFinderInner { flex-direction: column; }
    .storeFinderPanel { flex: 0 0 40%; max-width: none; border-right: none; border-bottom: 1px solid #eef2f5; order: 2; }
    .storeFinderMap { order: 1; height: 60%; }
    .storeFinderSearch { left: 12px; right: 12px; top: 12px; }
}
