/* Desktop Search CSS - Generated Bundle */

/* === search-results.css === */
/* ==========================================================================
   PROFESSIONAL SEARCH LAYOUT (Kayak Style)
   ========================================================================== */

/* ==========================================================================
   HEADER SEARCH DATA (Integrated in header bar)
   ========================================================================== */

.header-search-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 17px;
    padding: 8px 16px;
    margin-top: 2px;
    margin-left: 20px; /* Margin zum Logo */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 645px;
}

.header-nfz-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand, #2d5f41);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.4;
}

.header-nfz-badge i {
    font-size: 10px;
}

.header-search-data:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.search-route {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.search-from {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.search-from i.fa-map-marker {
    color: var(--brand, #2d5f41);
    font-size: 16px;
}

.search-from i.fa-arrow-right {
    color: #999;
    font-size: 12px;
}

.search-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.search-dates i.fa-calendar {
    color: var(--brand, #2d5f41);
}

.date-separator {
    color: #999;
    margin: 0 4px;
}

.header-edit-btn {
    background: var(--brand, #2d5f41);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-edit-btn:hover {
    background: #1e4029;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.header-edit-btn i {
    font-size: 12px;
}

/* Tablet: Header schmaler */
@media (max-width: 991px) {
    .header-search-data {
        width: auto;
        flex: 1;
        min-width: 0;
        margin-left: 12px;
        padding: 6px 12px;
        gap: 10px;
    }
    .header-search-data .search-from {
        font-size: 13px;
    }
    .header-search-data .search-dates {
        font-size: 11px;
    }
    .header-edit-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Mobile/Tablet portrait: Suchleiste schrumpfen statt verstecken */
@media (max-width: 767px) {
    .header-search-data {
        width: auto;
        flex: 1;
        min-width: 0;
        margin-left: 8px;
        padding: 4px 8px;
        gap: 6px;
    }
    .header-search-data .search-from {
        font-size: 12px;
        gap: 4px;
    }
    .header-search-data .search-from i.fa-arrow-right {
        display: none;
    }
    .header-search-data .search-dates {
        font-size: 10px;
        gap: 4px;
    }
    .header-edit-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .header-edit-btn span {
        display: none;
    }
}

/* ==========================================================================
   STICKY HEADER FOR SEARCH RESULTS PAGE
   ========================================================================== */
.page-search .header-small {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* Compact header layout on results page */
.page-search .header-small .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Override Bootstrap grid for header columns - make them left-aligned */
.page-search .header-small .row > div {
    width: auto !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Logo column - fixed width */
.page-search .header-small .row > div:first-child {
    flex: 0 0 auto;
}

/* Search data column - flexible but not expanding */
.page-search .header-small .row > div:nth-child(2) {
    flex: 0 1 auto;
    max-width: none !important;
}

/* Right column (Ändern button / account) - push to right side */
.page-search .header-small .row > div:last-child {
    flex: 1 1 auto;
    margin-left: auto;
}

.page-search .header-small .account {
    font-size: 13px;
}

.page-search .header-small .account .user-menu {
    font-size: 13px;
}

/* ==========================================================================
   HEADER SEARCH EDIT FORM (Expandable/Collapsible)
   ========================================================================== */

.header-search-edit {
    background: #ffffff;
    border-bottom: 2px solid var(--brand, #2d5f41);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 24px 0;
    margin-bottom: 20px;
}

.search-edit-form {
    max-width: 100%;
    margin-left: 0;
}

.search-edit-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.search-edit-form .form-group {
    display: flex;
    flex-direction: column;
}

.search-edit-form label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-edit-form .form-control {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.search-edit-form .form-control:focus {
    outline: none;
    border-color: var(--brand, #2d5f41);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 95, 65, 0.1);
}

.search-edit-form .search-edit-time-dd {
    appearance: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions .btn-search {
    background: var(--brand, #2d5f41);
    color: #fff;
}

.form-actions .btn-search:hover {
    background: #1e4029;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 65, 0.3);
}

.form-actions .btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.form-actions .btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

/* ==========================================================================
   SEARCH EDIT MODAL STYLES
   ========================================================================== */

/* Modal z-index - must be above .sr-controls-bar (z-index: 1000) */
#search-edit-modal.modal {
    z-index: 1060 !important;
}

.modal-backdrop.in,
.modal-backdrop.show {
    z-index: 1039 !important;
}

/* Reduce z-index of sticky elements when modal is open */
body.modal-open .sr-controls-bar,
body.modal-open #top-controls-placeholder {
    z-index: 1 !important;
}

/* Modal Dialog - zentriert mit max-width 900px */
#search-edit-modal .modal-dialog.search-edit-modal-dialog {
    max-width: 900px !important;
    margin: 60px auto !important;
}

#search-edit-modal .modal-dialog .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35) !important;
    overflow: visible !important;
}

/* Modal Header - with rounded top corners */
#search-edit-modal .modal-header {
    background: linear-gradient(135deg, #2d5f41 0%, #1e4029 100%) !important;
    border-bottom: none !important;
    padding: 20px 28px !important;
    position: relative !important;
    border-radius: 16px 16px 0 0 !important;
}

#search-edit-modal .modal-title {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#search-edit-modal .modal-title i,
#search-edit-modal .modal-title .fa {
    margin-right: 10px !important;
    color: #fff !important;
}

#search-edit-modal .modal-header .close {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #fff !important;
    opacity: 0.9 !important;
    font-size: 20px !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

#search-edit-modal .modal-header .close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Modal Body - overflow visible for autocomplete dropdowns */
#search-edit-modal .modal-body {
    padding: 28px 32px !important;
    background: #f8f9fa !important;
    overflow: visible !important;
}

/* Form Row Layout */
#search-edit-modal .search-edit-form-modal .form-row-modal {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

#search-edit-modal .search-edit-form-modal .form-row-modal.customer-group-row {
    grid-template-columns: 1fr !important;
    margin-bottom: 0 !important;
    margin-top: 8px !important;
}

/* Form Groups */
#search-edit-modal .form-group-modal {
    display: flex !important;
    flex-direction: column !important;
}

#search-edit-modal .form-group-modal.form-group-full {
    grid-column: 1 / -1 !important;
}

#search-edit-modal .form-group-modal > label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #555 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#search-edit-modal .form-group-modal > label i,
#search-edit-modal .form-group-modal > label .fa {
    margin-right: 6px !important;
    color: #2d5f41 !important;
}

/* Input Fields */
#search-edit-modal .form-control {
    padding: 12px 14px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    height: auto !important;
}

#search-edit-modal .form-control:focus {
    outline: none !important;
    border-color: #2d5f41 !important;
    box-shadow: 0 0 0 3px rgba(45, 95, 65, 0.15) !important;
    background: #fff !important;
}

#search-edit-modal .form-control::placeholder {
    color: #aaa !important;
}

/* Time Select Wrapper - for animated arrow */
#search-edit-modal .form-group-time {
    position: relative !important;
}

#search-edit-modal .form-group-time::after {
    content: '' !important;
    position: absolute !important;
    right: 14px !important;
    bottom: 22px !important;
    width: 10px !important;
    height: 6px !important;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
    transform-origin: center center !important;
}

#search-edit-modal .form-group-time:focus-within::after {
    transform: rotate(180deg) !important;
}

/* Time Select Styling - Override Select2 and use native select */
#search-edit-modal .time-select-styled {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 12px 14px !important;
    padding-right: 38px !important;
    cursor: pointer !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

#search-edit-modal .time-select-styled:focus {
    outline: none !important;
    border-color: #2d5f41 !important;
    box-shadow: 0 0 0 3px rgba(45, 95, 65, 0.15) !important;
}

/* Firefox/IE fix for select arrow */
#search-edit-modal .time-select-styled::-ms-expand {
    display: none !important;
}

/* Ensure select options don't have arrows */
#search-edit-modal .time-select-styled option {
    background: #fff !important;
    color: #333 !important;
    padding: 8px !important;
}

/* Hide Select2 elements in modal */
#search-edit-modal .select2-container {
    display: none !important;
}

/* Customer Group Segmented Control - Styled like Homepage */
#search-edit-modal .customer-group-segmented-modal {
    display: flex !important;
    background: #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 4px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 380px !important;
}

#search-edit-modal .customer-group-segmented-modal input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

#search-edit-modal .customer-group-segmented-modal > label {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 20px !important;
    background: transparent !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    border: none !important;
    border-radius: 7px !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
}

#search-edit-modal .customer-group-segmented-modal > label:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #333 !important;
}

#search-edit-modal .customer-group-segmented-modal input[type="radio"]:checked + label {
    background: #2a5a35 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(42, 90, 53, 0.35) !important;
}

/* Modal Footer */
#search-edit-modal .modal-footer {
    background: #fff !important;
    border-top: 1px solid #e8e8e8 !important;
    padding: 18px 32px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    border-radius: 0 0 16px 16px !important;
}

#search-edit-modal .btn-search-modal {
    background: linear-gradient(135deg, #2d5f41 0%, #1e4029 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    flex: none !important;
}

#search-edit-modal .btn-search-modal:hover {
    background: linear-gradient(135deg, #1e4029 0%, #153320 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(45, 95, 65, 0.35) !important;
    color: #fff !important;
}

#search-edit-modal .btn-search-modal:active {
    transform: translateY(0) !important;
}

#search-edit-modal .btn-search-modal i,
#search-edit-modal .btn-search-modal .fa {
    font-size: 13px !important;
}

#search-edit-modal .btn-cancel-modal {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: auto !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

#search-edit-modal .btn-cancel-modal:hover {
    background: #e8e8e8 !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/* Responsive Modal */
@media (max-width: 991px) {
    #search-edit-modal .modal-dialog.search-edit-modal-dialog {
        max-width: 95% !important;
        margin: 30px auto !important;
    }

    #search-edit-modal .search-edit-form-modal .form-row-modal {
        grid-template-columns: 1fr 1fr !important;
    }

    #search-edit-modal .form-group-modal.form-group-location {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 767px) {
    #search-edit-modal .modal-dialog.search-edit-modal-dialog {
        margin: 15px auto !important;
    }

    #search-edit-modal .modal-body {
        padding: 20px 16px !important;
    }

    #search-edit-modal .search-edit-form-modal .form-row-modal {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 18px !important;
    }

    #search-edit-modal .modal-footer {
        flex-direction: column-reverse !important;
        padding: 16px !important;
        gap: 10px !important;
    }

    #search-edit-modal .btn-search-modal,
    #search-edit-modal .btn-cancel-modal {
        width: 100% !important;
        justify-content: center !important;
    }

    #search-edit-modal .customer-group-segmented-modal {
        max-width: 100% !important;
    }

    #search-edit-modal .customer-group-segmented-modal > label {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .search-edit-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header-search-edit {
        padding: 16px 0;
    }
}

/* --- 1. Layout Basics --- */
.page-search {
    background-color: #f4f5f7; /* Hellerer, moderner Hintergrund */
}

/* Alle Container auf der Suchergebnisseite linksbündig mit 20px Margin */
.page-search .container {
    margin-left: 20px !important;
    margin-right: 20px !important;
    max-width: none !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Exception: Footer container should look like on homepage (centered, max-width) */
.page-search footer .container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1170px !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.page-search .results-2col {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
    margin-left: 20px;
    margin-right: 20px;
    max-width: calc(100% - 40px);
}

/* Linke Spalte (Ergebnisse) */
.page-search .results-2col .col-left {
    flex: 1;
    min-width: 0;
    max-width: 800px; /* Maximale Breite für gute Lesbarkeit */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Rechte Spalte (Karte) - Sticky */
.page-search .results-2col .col-right {
    flex: 1;
    min-width: 400px;
    max-width: none; /* Karte füllt gesamten verfügbaren Platz */
    display: block !important;
    position: sticky;
    top: 140px; /* Platz für Header + Filterbar lassen */
    height: calc(100vh - 160px);
    z-index: 90;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Results Container soll 100% Breite haben */
.page-search .results-2col .col-left .results {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cards innerhalb col-left sollen 100% Breite haben */
.page-search .results-2col .col-left .panel-result,
.page-search .results-2col .col-left .stream-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Panel-result soll keine Bootstrap-Margins haben */
.page-search .panel-result {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Bootstrap Grid überschreiben - col-lg-9 auf 100% setzen */
.page-search .results-2col .col-left .col-lg-9,
.page-search .results-2col .col-left .col-md-12,
.page-search .results-2col .col-left .col-sm-12,
.page-search .results-2col .col-left .col-xs-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 100% !important;
}

/* Auch die .row und .container innerhalb col-left */
.page-search .results-2col .col-left .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.page-search .results-2col .col-left .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Karte soll 100% Breite innerhalb col-right haben */
.page-search .results-2col .col-right #results-map {
    width: 100% !important;
    max-width: 100% !important;
}

#results-map {
    height: 100% !important;
    width: 100% !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #fff;
}

/* Sidebar im alten Layout komplett ausblenden (aber nicht die Map!) */
.sidebar-sticky {
    display: none !important;
}

/* Nur die Filter-Sidebar verstecken, nicht col-right (Map) */
aside:not(.col-right) {
    display: none !important;
}

/* --- 2. TOP CONTROLS BAR (Sticky Filter Header) --- */
.sr-controls-bar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    position: sticky;
    top: 0; /* Anpassen je nach Höhe deines Haupt-Headers */
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.sr-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Filter Liste (Links) */
.sr-filter-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

/* Sortierung (Rechts) */
.sr-sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* --- 3. FILTER PILLS (Die Buttons) --- */
.sr-filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccd0d5;
    border-radius: 20px; /* Pill Shape */
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sr-filter-pill:hover,
.sr-filter-pill.sr-pill-active-state {
    background: #f8f9fa;
    border-color: #aeb4b9;
}

.sr-filter-pill.sr-pill-active-state i.fa-angle-down {
    transform: rotate(180deg);
}

/* Don't rotate other icons like fa-magic and fa-sliders */
.sr-filter-pill.sr-pill-active-state i.fa-magic,
.sr-filter-pill.sr-pill-active-state i.fa-sliders {
    transform: none;
}

.sr-filter-pill.active {
    background: #e6f4ea;
    border-color: var(--brand);
    color: var(--brand);
}

.sr-filter-pill i {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.sr-filter-pill.open i {
    transform: rotate(180deg);
}

/* --- 4. FILTER DROPDOWNS --- */
.sr-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px); /* Reduced gap for easier hover transition */
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px;
    min-width: 280px;
    max-width: 450px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    animation: fadeIn 0.2s ease-out;
}

/* Invisible bridge to prevent gap issues on hover */
.sr-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* Wrapper für den Pill Button, damit Dropdown relativ dazu positioniert wird */
.sr-filter-wrapper {
    position: relative;
}

.sr-dropdown.show {
    display: block;
}

/* Styling IN den Dropdowns */
/* Remove old nested structure styling */
.sr-dropdown .form-group {
    margin: 0;
    padding: 0;
}

/* Checkboxes - setFilters() will convert display:block to display:flex via JS */
.sr-dropdown .checkbox {
    /* display will be controlled by setFilters() - either none, block (converted to flex), or flex */
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.sr-dropdown .checkbox:hover {
    background: #f8f9fa;
}

.sr-dropdown .checkbox:last-child {
    margin-bottom: 0;
}

/* Input and label are siblings within .checkbox */
.sr-dropdown .checkbox input[type="checkbox"],
.sr-dropdown .checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: absolute;
    top: 0;
}

.sr-dropdown .checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex: 1;
    margin: 0;
    padding-left: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Preis im Filter */
.sr-dropdown .checkbox label span {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    white-space: nowrap;
}

/* Radio buttons - setFilters() will convert display:block to display:flex via JS */
.sr-dropdown .radio {
    /* display will be controlled by setFilters() */
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
}

.sr-dropdown .radio:hover {
    background: #f8f9fa;
}

/* Radio input and label are siblings */
.sr-dropdown .radio input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    top: 0;
}

.sr-dropdown .radio label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex: 1;
    margin: 0;
    padding-left: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sr-dropdown .radio label span {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    white-space: nowrap;
}

/* Sub-groups (e.g., vehicle models under vehicle class) */
.sr-dropdown .sub-group {
    margin-left: 24px;
    padding-top: 8px;
}

.sr-dropdown .subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 8px 0;
}

/* Führerschein-Filter: Grid Layout für mehrere Spalten */
.sr-dropdown .checkbox.inline {
    display: inline-flex !important;
}

/* Fix for column layout in license class filter */
.sr-dropdown [class*="col-xs"] {
    float: none;
    display: inline-block;
    vertical-align: top;
    padding: 0 4px;
    margin-bottom: 8px;
}

/* Clear Bootstrap column floats inside dropdowns */
.sr-dropdown .clearfix {
    clear: both;
    display: block;
}

/* Make sure nested divs in filter don't break layout */
.sr-dropdown > div {
    width: 100%;
}

.sr-dropdown > div > div {
    width: 100%;
}

/* --- 5. SORTING & COUNTER STYLING --- */
.sr-count-badge {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.sr-count-badge strong {
    color: #000;
}

/* Custom Select für Sortierung (sieht aus wie Filter Pill) */
.sr-sort-select-wrapper {
    position: relative;
}
.sr-sort-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 16px;
    border-radius: 20px;
    border: 1px solid #ccd0d5;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.sr-sort-select:hover {
    border-color: #aeb4b9;
}
.sr-sort-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    pointer-events: none;
    color: #666;
}

/* --- 6. CARD IMPROVEMENTS --- */
.page-search .panel-result {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-search .panel-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* --- Nutzfahrzeuge Card: Kategorie + Subkategorie --- */
/* Grid-Layout: Badge links, Kategorie+Subkategorie rechts untereinander */
.page-search .panel-result .panel-title:has(.panel-subcategory-label) {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 10px;
}

.page-search .panel-result .panel-title:has(.panel-subcategory-label) .badge {
    grid-row: 1 / 3;
}

.page-search .panel-result .panel-category-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.page-search .panel-result .panel-subcategory-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2d5f41;
    line-height: 1.3;
}

/* Modern icons for vehicle details list */
.page-search .panel-result ul.basics {
    list-style: none;
    padding-left: 0;
}

.page-search .panel-result ul.basics > li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
}

.page-search .panel-result ul.basics > li:before {
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: var(--brand, #2d5f41);
    font-size: 14px;
}

/* Specific icons for each type of information */
.page-search .panel-result ul.basics > li:nth-child(1):before {
    content: "\f0d1"; /* fa-truck - Fahrzeugtyp */
}

.page-search .panel-result ul.basics > li:nth-child(2):before {
    content: "\f24e"; /* fa-balance-scale - Zul. Gesamtgewicht */
}

.page-search .panel-result ul.basics > li:nth-child(3):before {
    content: "\f1b2"; /* fa-cube - Nutzlast */
}

.page-search .panel-result ul.basics > li:nth-child(4):before {
    content: "\f0b2"; /* fa-arrows-alt - Laderaum */
}

.page-search .panel-result ul.basics > li:nth-child(5):before {
    content: "\f1b3"; /* fa-cubes - Ladevolumen */
}

/* Preis Button Modernisierung */
.page-search .btn-red {
    background-color: var(--brand); /* Nutzt deine grüne Brand Color statt Rot */
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 15px;
    border: none;
}
.page-search .btn-red:hover {
    background-color: #1e4029;
}

/* Tablet/Mobile Anpassung (Layout-Spezifika unter 992px) */
@media (max-width: 991px) {
    .page-search .results-2col {
        flex-direction: column;
        margin-left: 12px;
        margin-right: 12px;
    }

    .sr-filter-list {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap; /* Scrollbar horizontal auf Mobile */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FORCE TOP FILTER BAR LAYOUT
   ========================================================================== */

/* 1. Alte Sidebar ausblenden (Aggressiv) */
.page-search .sidebar-sticky, 
.page-search aside,
.page-search #filtering {
    display: none !important;
}

/* 2a. Map als Slide-In-Panel + Trigger für alle Breiten unter 1100px */
@media (max-width: 1099px) {
    .page-search .results-2col {
        justify-content: center !important;
    }

    .page-search .results-2col .col-left {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Karte als Slide-In rechts */
    .page-search .results-2col .col-right {
        display: block !important;
        position: fixed !important;
        top: 120px !important;
        right: 0 !important;
        width: 380px !important;
        max-width: 90vw !important;
        height: calc(100vh - 140px) !important;
        z-index: 1050 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        background: #fff !important;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15) !important;
        border-radius: 12px 0 0 12px !important;
        padding: 8px !important;
    }

    .page-search .results-2col .col-right.map-slide-open {
        transform: translateX(0) !important;
    }

    /* Tab-Trigger am rechten Rand */
    .map-slide-trigger {
        display: flex !important;
        position: fixed !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        background: var(--brand-600, #2d6a4f) !important;
        color: #fff !important;
        padding: 14px 8px !important;
        border-radius: 8px 0 0 8px !important;
        cursor: pointer !important;
        z-index: 1051 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        align-items: center !important;
        gap: 6px !important;
        box-shadow: -2px 0 8px rgba(0,0,0,0.12) !important;
        transition: right 0.3s ease !important;
    }

    .map-slide-trigger:hover {
        background: var(--brand-700, #1b4332) !important;
    }

    .map-slide-trigger.map-slide-open {
        right: 380px !important;
    }

    .map-slide-trigger .trigger-icon {
        font-size: 16px !important;
        writing-mode: horizontal-tb !important;
    }
}

/* Tab-Trigger ab 1100px verstecken (Karte ist direkt sichtbar) */
@media (min-width: 1100px) {
    .map-slide-trigger {
        display: none !important;
    }
}

/* Service-Elemente auf Suchergebnisseite komplett ausblenden */
.page-search .service-code-banner,
.page-search #serviceSlideIn {
    display: none !important;
}

/* 2b. Karte schmal anzeigen (1100px - 1519px) - Tablets, kleine Laptops */
@media (min-width: 1100px) and (max-width: 1519px) {
    .page-search .results-2col {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    .page-search .results-2col .col-left {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .page-search .results-2col .col-right {
        flex: 0 0 360px !important;
        min-width: 300px !important;
        max-width: 420px !important;
        display: block !important;
        position: sticky !important;
        top: 140px !important;
        height: calc(100vh - 160px) !important;
        z-index: 50 !important;
    }
}

/* 3. Layout für Ergebnisse und Karte nebeneinander (ab 1520px) */
@media (min-width: 1520px) {
    .page-search .results-2col {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 24px !important;
        padding-top: 20px !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .page-search .results-2col .col-left {
        flex: 1 !important;
        max-width: 1000px !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .page-search .results-2col .col-right {
        flex: 1 !important;
        min-width: 400px !important;
        max-width: none !important; /* Karte füllt gesamten verfügbaren Platz */
        display: block !important;
        position: sticky !important;
        top: 100px !important;
        height: calc(100vh - 120px) !important;
        z-index: 50 !important; /* Niedriger als Filter-Bar */
        padding: 0 !important;
    }

    .page-search .results-2col .col-left .panel-result,
    .page-search .results-2col .col-left .stream-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-search .results-2col .col-right #results-map {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
}

/* 4. Die neue Top-Bar (Sichtbarkeit erzwingen) */
.sr-controls-bar {
    display: block !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;  /* Stacking Context für Dropdowns */
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px !important;
    overflow: visible !important;  /* Dropdowns nicht abschneiden */
}

.sr-controls-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    overflow: visible !important;
}

.sr-filter-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    flex: 1 !important;
    overflow: visible !important;
}

.sr-sort-container {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Pills Styling */
.sr-filter-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 50px !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.sr-filter-pill.active {
    background: #e6f4ea !important;
    border-color: #2d5f41 !important;
    color: #2d5f41 !important;
}

/* Dropdowns */
.sr-filter-wrapper {
    position: relative !important;
    z-index: 10050 !important;  /* Höher als results, niedriger als tooltips (10100) */
}

/* Aktiven Wrapper höher priorisieren wenn Dropdown offen ist */
.sr-filter-wrapper:has(.sr-dropdown.show) {
    z-index: 20000 !important;
}

.sr-dropdown {
    display: none;
    position: absolute !important;
    top: 110% !important;
    left: 0 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 15px !important;
    z-index: 10000 !important;
    min-width: 250px !important;
    border-radius: 8px !important;
}

.sr-dropdown.show {
    display: block !important;
}

/* ==========================================================================
   NEW UI COMPONENTS (Stream Status, Filters, Sorting)
   ========================================================================== */

/* --- Stream Status Banner --- */
.stream-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
}

.stream-status-banner.stream-complete {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.stream-status-banner.stream-fallback-info {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    border-left: 4px solid #e67e22;
}

.stream-status-text {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.stream-count-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(45, 95, 65, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2d5f41;
    margin-left: 10px;
}

/* --- Filter Counter Badge --- */
.filter-counter-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    margin-right: 15px;
    transition: all 0.2s ease;
}

.filter-counter-badge.active {
    background: rgba(45, 95, 65, 0.1);
    color: #2d5f41;
    border-color: rgba(45, 95, 65, 0.2);
}

/* --- Sort Control --- */
#results-sort-control {
    display: inline-block;
    margin-left: 10px;
}

#results-sort {
    border: 1px solid #ccc;
    padding: 6px 32px 6px 12px;
    border-radius: 20px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 7px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#results-sort:hover {
    border-color: #2d5f41;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#results-sort:focus {
    border-color: #2d5f41;
    box-shadow: 0 0 0 3px rgba(45, 95, 65, 0.1);
}

/* --- Reset Filters Button --- */
#reset-filters-btn {
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
    color: #666;
}

#reset-filters-btn:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

#reset-filters-btn:active {
    background: #e9ecef;
}

/* --- Infinite Scroll Loader --- */
#infinite-loader {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

/* --- Scroll Hint Indicator --- */
.scroll-hint-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 24px 0;
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f4ea 100%);
    border: 2px dashed rgba(45, 95, 65, 0.3);
    border-radius: 12px;
    animation: pulseGently 2s ease-in-out infinite;
}

.scroll-hint-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scroll-hint-icon {
    font-size: 28px;
    color: #2d5f41;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-hint-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.scroll-hint-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #2d5f41;
}

.scroll-hint-text span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Subtle pulse animation */
@keyframes pulseGently {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(45, 95, 65, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 16px rgba(45, 95, 65, 0.15);
        transform: scale(1.01);
    }
}

/* Bounce arrow animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-hint-indicator {
        padding: 16px;
        margin: 16px 0;
    }

    .scroll-hint-content {
        gap: 12px;
    }

    .scroll-hint-icon {
        font-size: 24px;
    }

    .scroll-hint-text strong {
        font-size: 14px;
    }

    .scroll-hint-text span {
        font-size: 12px;
    }
}

/* --- Animations --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* --- Modern Spinner --- */
.modern-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(45, 95, 65, 0.2);
    border-radius: 50%;
    border-top-color: #2d5f41;
    animation: spin 0.6s linear infinite;
    margin-top: 19px;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .filter-counter-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    #results-sort,
    #reset-filters-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .stream-status-banner {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* ==========================================================================
   MAP STYLING (Markers, Clusters, Popups, Interactions)
   ========================================================================== */

/* --- Custom Price Marker Badge for Leaflet DivIcon --- */
.map-price-marker {
    background: var(--brand);
    color: #ffffff;
    border: 2px solid var(--brand-700);
    border-radius: 12px;
    /* fixed size is set inline by Leaflet from iconSize: [86, 37], iconAnchor: [36, 50] */
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-top: 7px;
    cursor: pointer;
}

/* Marker Tail/Arrow */
.map-price-marker:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--brand);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
    pointer-events: none;
}

/* Marker Hover Effect */
.map-price-marker:hover {
    cursor: pointer !important;
    z-index: 1000 !important;
}

/* --- Marker Pulse Animation --- */
@keyframes pulseMarker {
    0% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(228,0,43,0.0); }
    50% { box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 8px rgba(228,0,43,0.25); }
    100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(228,0,43,0.0); }
}
.map-price-marker.pulse { animation: pulseMarker 1.4s ease-out 3; }

/* --- Marker Cluster Styling --- */
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--brand);
    color: #fff;
    border: 2px solid var(--brand-700);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.marker-cluster div span {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

/* --- POI Marker Styling (searched location like "Flughafen München") --- */
.map-poi-marker {
    background: transparent !important;
    border: none !important;
}
.poi-marker-content {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 3px solid #1e40af;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: poiPulse 2s ease-in-out infinite;
}
.poi-marker-content:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #1d4ed8;
}
@keyframes poiPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.9); }
    50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.6), 0 0 0 8px rgba(37, 99, 235, 0.2); }
}
.poi-popup {
    text-align: center;
    padding: 4px;
}
.poi-popup strong {
    color: #1d4ed8;
    font-size: 14px;
}
.poi-popup small {
    color: #666;
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   EINWEG ROUTE MARKERS (A/B markers for one-way rentals)
   ========================================================================== */
.einweg-route-marker,
.einweg-route-arrow {
    background: transparent !important;
    border: none !important;
}
.einweg-route-arrow .einweg-route-arrow-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #4285F4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
}
.einweg-route-arrow .einweg-route-arrow-inner svg {
    display: block;
}

.einweg-marker-pin {
    position: relative;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.einweg-marker-pin:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.einweg-marker-pin.start:before {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 3px solid #15803d;
}

.einweg-marker-pin.end:before {
    background: linear-gradient(135deg, #e4002b 0%, #b91c1c 100%);
    border: 3px solid #991b1b;
}

.einweg-marker-pin:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.einweg-marker-pin.start:after {
    border-top: 10px solid #16a34a;
}

.einweg-marker-pin.end:after {
    border-top: 10px solid #b91c1c;
}

.einweg-marker-pin span {
    position: relative;
    z-index: 1;
    margin-top: -5px;
}

/* Hide Leaflet Routing Machine instruction panel */
.leaflet-routing-container {
    display: none !important;
}

/* Leaflet Routing Machine alternative route styles */
.leaflet-routing-alt {
    display: none !important;
}

/* --- Result Card Highlight when hovering marker --- */
.page-search .panel-result.highlight {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(228,0,43,0.15), 0 6px 18px rgba(0,0,0,0.2);
}

/* --- Leaflet Popup Customizations --- */
.leaflet-popup {
    margin-bottom: 20px !important;
}

/* Ensure custom popup is visible and properly positioned */
.custom-popup {
    z-index: 10000 !important;
}

.leaflet-popup-content-wrapper {
    position: relative !important;
    z-index: 1 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 10px 10px 10px 10px !important;
}

.leaflet-popup-content {
    margin: 16px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #202124 !important;
}

.leaflet-popup-content strong {
    font-weight: 600 !important;
    color: #202124 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Hide popup tip (arrow) but keep container for proper positioning */
.leaflet-popup-tip-container {
    opacity: 0 !important;
    pointer-events: none !important;
}

.leaflet-popup-tip {
    display: none !important;
}

.leaflet-popup-close-button {
    color: #5f6368 !important;
    font-size: 20px !important;
    padding: 8px 12px !important;
    transition: color 0.2s ease !important;
}

.leaflet-popup-close-button:hover {
    color: #202124 !important;
    background-color: transparent !important;
}

.leaflet-popup-close-button:focus-visible {
    outline: 2px solid #1a73e8 !important;
    outline-offset: 2px !important;
}

/* Remove default Leaflet link styling */
.leaflet-container a.leaflet-popup-close-button {
    text-decoration: none !important;
}

/* Improved info window appearance - Brand gradient top bar */
.leaflet-popup-content-wrapper:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--brand, #2d5f41), var(--brand-600, #1e4029)) !important;
    border-radius: 8px 8px 0 0 !important;
}

/* --- Leaflet Container & Controls --- */
.leaflet-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #e9e5dc !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Hide Leaflet branding (logo + Ukraine flag) - keep OSM/CARTO attribution for legal compliance */
.leaflet-control-attribution a[href*="leafletjs.com"],
.leaflet-control-attribution svg {
    display: none !important;
}
/* Remove the separator before Leaflet link */
.leaflet-control-attribution a[href*="leafletjs.com"]::before {
    display: none !important;
}

/* Ensure map renders correctly */
#results-map {
    z-index: 1;
    position: relative;
    background: #e9e5dc !important;
}

/* Clean zoom controls */
.leaflet-control-zoom {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Custom controls styling (Legend, Reset) */
.leaflet-control {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    border: none !important;
}

/* Map scale control styling (if enabled) */
.leaflet-control-scale {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    color: #5f6368 !important;
}

.leaflet-control-scale-line {
    border: 2px solid #5f6368 !important;
    border-top: none !important;
}

/* Smooth transitions */
.leaflet-fade-anim .leaflet-tile {
    will-change: opacity;
}

.leaflet-fade-anim .leaflet-popup {
    will-change: opacity;
}

/* Enhanced visual hierarchy */
.leaflet-pane {
    z-index: auto !important;
}

.leaflet-map-pane {
    z-index: auto !important;
}

/* Popup tip is already hidden via display: none above */

/* --- Responsive Map Controls --- */
@media (max-width: 991px) {
    .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .leaflet-popup-content {
        margin: 12px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   STREAMING ERROR & DEBUG STYLES
   ========================================================================== */

/* --- Stream Error Messages --- */
.stream-error-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

.stream-error-banner i {
    color: #856404;
    margin-right: 8px;
}

.stream-error-banner span {
    color: #856404;
    font-size: 14px;
}

/* --- AJAX Error Messages --- */
.ajax-error-banner {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

.ajax-error-banner i {
    color: #721c24;
    margin-right: 8px;
}

.ajax-error-banner span {
    color: #721c24;
    font-size: 14px;
}

/* --- Filter Update Message --- */
#filters_updating {
    display: none;
    color: #666;
    font-size: 12px;
    margin: 6px 0;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

/* --- Stream Status Container --- */
#stream_status {
    margin: 10px 0;
    padding: 0;
    border: none;
    display: none;
}

/* --- Infinite Loader Messages --- */
#infinite-loader .loader-content {
    text-align: center;
    padding: 15px;
}

#infinite-loader .loader-success {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
}

#infinite-loader .loader-spinner {
    text-align: center;
    padding: 15px;
}

#infinite-loader .loader-spinner span {
    color: #666;
    font-size: 14px;
}

/* --- Utility Classes for JS --- */
.sr-pill-active-state {
    background: #e6f4ea !important;
    border-color: #2d5f41 !important;
}

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* ==========================================================================
   MODERN TOOLTIP STYLING
   ========================================================================== */

/* --- Bootstrap Tooltip Base --- */
.tooltip {
    z-index: 10100 !important;  /* Erhöht für konsistente Tooltip-Sichtbarkeit */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tooltip-inner {
    max-width: 350px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d5f41 0%, #1e4029 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: tooltipFadeIn 0.2s ease-out;
}

/* --- Tooltip Arrow Styling --- */
.tooltip.bs-tooltip-top .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #2d5f41;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tooltip.bs-tooltip-bottom .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #1e4029;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
}

.tooltip.bs-tooltip-left .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: #2d5f41;
    filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.2));
}

.tooltip.bs-tooltip-right .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: #1e4029;
    filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.2));
}

/* --- Tooltip Content Structure --- */
.tooltip-inner b,
.tooltip-inner strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-inner p {
    margin: 8px 0 0 0;
    padding: 0;
    line-height: 1.6;
}

/* Better spacing for list items */
.tooltip-inner p br {
    content: "";
    display: block;
    margin: 4px 0;
}

/* --- Tooltip Animation --- */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Light Tooltip Variant (Optional) --- */
.tooltip.tooltip-light .tooltip-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tooltip.tooltip-light .tooltip-inner b,
.tooltip.tooltip-light .tooltip-inner strong {
    color: #2d5f41;
    border-bottom-color: rgba(45, 95, 65, 0.2);
}

.tooltip.tooltip-light.bs-tooltip-top .arrow::before {
    border-top-color: #ffffff;
}

.tooltip.tooltip-light.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #f8f9fa;
}

.tooltip.tooltip-light.bs-tooltip-left .arrow::before {
    border-left-color: #ffffff;
}

.tooltip.tooltip-light.bs-tooltip-right .arrow::before {
    border-right-color: #f8f9fa;
}

/* --- Responsive Tooltip Adjustments --- */
@media (max-width: 768px) {
    .tooltip-inner {
        max-width: 280px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .tooltip-inner b,
    .tooltip-inner strong {
        font-size: 13px;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
}

/* ==========================================================================
   NO RESULTS MESSAGE - Professional Styling
   ========================================================================== */

#no-results {
    /* Layout */
    display: none; /* Hidden by default, shown by JavaScript when needed */
    margin: 40px auto;
    max-width: 600px;
    padding: 32px 40px;

    /* Visual Design */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e6ea;
    border-left: 6px solid #6c757d;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    /* Typography */
    color: #495057;
    font-size: 16px !important;
    line-height: 1.6;
    text-align: center;

    /* Transition */
    transition: all 0.3s ease;
}

#no-results:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left-color: #495057;
}

/* Icon styling (if message includes FontAwesome icon) */
#no-results i.fa {
    display: block;
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #no-results {
        margin: 24px 16px;
        padding: 24px 20px;
        font-size: 14px !important;
    }

    #no-results i.fa {
        font-size: 36px;
        margin-bottom: 12px;
    }
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute !important;
    top: 5px !important;
    z-index: 9999 !important;
    right: 16px !important;
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: none;
    font-family: Tahoma, Verdana, sans-serif;
    transition: color 0.2s;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
    color: #202124;
    background: transparent;
}

/* ==========================================================================
   MODERN RESULT CARDS REDESIGN
   ========================================================================== */

/* --- Modern Card Container --- */
.page-search .panel-result {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: visible;
    transition: all 0.3s ease;
}

.page-search .panel-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* --- Modern Card Header --- */
.page-search .panel-result .panel-heading {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 20px;
    min-height: 48px;
}

.page-search .panel-result .panel-heading .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.page-search .panel-result .panel-heading .row > div {
    padding: 0 8px;
}

/* Header Title - Prominent */
.page-search .panel-result .panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-search .panel-result .panel-title .badge {
    background: var(--brand, #2d5f41);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

/* Status Labels - Modern Pills */
.page-search .panel-result .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    position: relative;
    cursor: help;
}

.page-search .panel-result .label-available {
    background: #d4edda;
    color: #155724;
}

.page-search .panel-result .label-request {
    background: #fff3cd;
    color: #856404;
}

.page-search .panel-result .label-privaterate,
.page-search .panel-result .label-studentrate,
.page-search .panel-result .label-companyrate {
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 11px;
    padding: 4px 10px;
}

/* Provider Name in Header */
.page-search .panel-result .interprise {
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    text-align: right;
}

/* --- Modern Card Body - 3 Column Layout --- */
.page-search .panel-result .panel-body {
    padding: 20px;
}

.page-search .panel-result .panel-body .row.p-relative {
    display: flex;
    gap: 20px;
    margin: 0;
}

/* Left Column - Image & Specs (25%) */
.page-search .panel-result .panel-body .row.p-relative > .col-xs-4:first-child {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0;
}

.page-search .panel-result .caption {
    margin-bottom: 16px;
}

.page-search .panel-result .caption img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.page-search .panel-result .caption .desc {
    font-size: 13px;
    color: #5f6368;
    margin-top: 8px;
    font-weight: 500;
}

/* Key Specs List - Modern with Icons */
.page-search .panel-result ul.basics {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.page-search .panel-result ul.basics > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #202124;
    line-height: 1.5;
}

.page-search .panel-result ul.basics > li:before {
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: var(--brand, #2d5f41);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Middle Column - Details (50%) */
.page-search .panel-result .panel-body .row.p-relative > .col-xs-8:last-child {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0;
    display: flex;
    gap: 20px;
}

.page-search .panel-result .panel-body .row.p-relative > .col-xs-8 > .row {
    margin: 0;
}

/* Station Selects - Modern Styling */
.page-search .panel-result .form-group {
    margin-bottom: 16px;
}

.page-search .panel-result .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.page-search .panel-result .search-result-station-dd {
    width: 100% !important;
    max-width: 100%;
    padding: 10px 32px 10px 12px; /* Extra padding rechts für Dropdown-Pfeil */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #202124;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"%3E%3Cpath fill="%235f6368" d="M6 8L2 4h8z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none; /* Entfernt Standard-Dropdown-Pfeil */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Hover-Effekt - optisch hervorheben */
.page-search .panel-result .search-result-station-dd:hover {
    border-color: var(--brand, #2d5f41);
    background-color: #f8faf9;
    box-shadow: 0 2px 4px rgba(45, 95, 65, 0.08);
}

/* Focus-Effekt - bei Tastatur- oder Klick-Aktivierung */
.page-search .panel-result .search-result-station-dd:focus {
    outline: none;
    border-color: var(--brand, #2d5f41);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 95, 65, 0.1);
}

/* Disabled State */
.page-search .panel-result .search-result-station-dd:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Map Link */
.page-search .panel-result .map-link {
    font-size: 12px;
    color: var(--brand, #2d5f41);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.page-search .panel-result .map-link:hover {
    color: #1e4029;
    text-decoration: underline;
}

/* Misc Lists - Compact Icons */
.page-search .panel-result ul.misc {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.page-search .panel-result ul.misc > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #202124;
    line-height: 1.6;
}

.page-search .panel-result ul.misc > li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand, #2d5f41);
    font-weight: 700;
    font-size: 13px;
}

/* Right Column - Price Box (25%) */
.page-search .panel-result .panel-body .row > .row > .col-xs-4.pl-0 {
    flex: 0 0 auto;
    min-width: 200px;
    margin-left: auto; /* Push price box to the right */
}

/* Modern Price Box */
.page-search .panel-result .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-search .panel-result .price_info {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    cursor: help;
    /* z-index entfernt - .tip bekommt eigenen hohen z-index */
    pointer-events: auto;
    margin-left: 30%;
}

.page-search .panel-result .price_info i {
    margin-left: 4px;
    color: #5f6368;
    font-size: 13px;
}

/* Tooltip styling */
.page-search .panel-result .price_info {
    position: relative;
}

.page-search .panel-result .price_info .tip {
    display: none;
    position: absolute;
    background: #1e4029;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    min-width: 280px;
    max-width: 320px;
    right: 0;
    left: auto;
    bottom: calc(100% + 8px);
    z-index: 10100;  /* Vereinheitlicht mit anderen Tooltips */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: normal;
    pointer-events: none;
}

/* Allow tooltip to overflow panel-result when hovering */
.page-search .panel-result:has(.price_info:hover) {
    overflow: visible;
}

.page-search .panel-result .price_info:hover .tip {
    display: block;
}

/* Bottom Action Row */
.page-search .panel-result .link-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.page-search .panel-result .link-box-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.page-search .panel-result .details-section {
    flex: 0 0 auto;
}

.page-search .panel-result .action-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* "Angebot per E-Mail" below the button */
.page-search .panel-result .link-box .tell {
    font-size: 13px;
    color: #5f6368;
    white-space: nowrap;
}

/* Details Link - Subtle */
.page-search .panel-result .details a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand, #2d5f41);
    text-decoration: none;
    transition: color 0.2s;
}

.page-search .panel-result .details a:hover {
    color: #1e4029;
    text-decoration: underline;
}

.page-search .panel-result .details .read-more:after {
    content: " ›";
    font-weight: 700;
}

.page-search .panel-result .details .read-less {
    display: none;
}

.page-search .panel-result .details a:not(.collapsed) .read-more {
    display: none;
}

.page-search .panel-result .details a:not(.collapsed) .read-less {
    display: inline;
}

.page-search .panel-result .details .read-less:after {
    content: " ‹";
    font-weight: 700;
}

/* Tell/Service Link */
.page-search .panel-result .tell {
    font-size: 12px;
    color: #5f6368;
}

/* Modern Button - Prominent */
.page-search .panel-result .btn-red {
    background: var(--brand, #2d5f41);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(45, 95, 65, 0.2);
    margin-left: auto;
    white-space: nowrap;
}

.page-search .panel-result .btn-red:hover {
    background: #1e4029;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 95, 65, 0.3);
}

.page-search .panel-result .btn-red:active {
    transform: translateY(0);
}

.page-search .panel-result .btn-red i {
    font-size: 14px;
}

/* Tooltips - Enhanced */
.page-search .panel-result .tip {
    display: none;
    position: absolute;
    z-index: 10100;  /* Vereinheitlicht für konsistente Sichtbarkeit */
    background: linear-gradient(135deg, #2d5f41 0%, #1e4029 100%);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    max-width: 280px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    right: 0;
    left: auto;
    transform: none;
    bottom: calc(100% + 10px);
    pointer-events: none;
}

.page-search .panel-result .price_info:hover .tip,
.page-search .panel-result .result_info:hover .tip,
.page-search .panel-result .label:hover .tip,
.page-search .panel-result .tariftype:hover .tip {
    display: block;
}

/* Arrow for tooltip - pointing down (right-aligned) */
.page-search .panel-result .tip:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    left: auto;
    transform: none;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1e4029;
}

/* ==========================================================================
   TOOLTIP Z-INDEX FIX - Alle Cards gleich behandeln
   ========================================================================== */
/* Alle Cards bekommen gleichen z-index (überschreibt alte minified CSS) */
.page-search .panel-result,
.page-search .panel-result:first-child,
.page-search .panel-result:not(:first-child) {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

/* Hovered Card bekommt höheren z-index damit Tooltip über anderen Cards erscheint */
.page-search .panel-result:hover {
    z-index: 100 !important;
}

.page-search .panel-result .panel-heading,
.page-search .panel-result .panel-body,
.page-search .panel-result .action-column,
.page-search .panel-result .offer-action-column,
.page-search .panel-result .price_info,
.page-search .panel-result .offer-content-row {
    overflow: visible !important;
}

/* Erste Card: Tooltip nach unten (wegen sticky Controls-Bar darüber) */
.page-search .panel-result:first-child .tip {
    bottom: auto !important;
    top: calc(100% + 10px) !important;
    z-index: 99999 !important;
}

.page-search .panel-result:first-child .tip:after {
    top: auto !important;
    bottom: 100% !important;
    border-top: none !important;
    border-bottom: 8px solid #1e4029 !important;
}

.page-search .panel-result:first-child .price_info .tip {
    bottom: auto !important;
    top: calc(100% + 8px) !important;
}

/* ==========================================================================
   VEHICLE IMAGE TOOLTIP
   ========================================================================== */
.page-search .panel-result .vehicle-image-tooltip {
    position: relative;
    display: block;
    cursor: help;
}

.page-search .panel-result .vehicle-image-tooltip .tip {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #2d5f41 0%, #1e4029 100%);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    min-width: 220px;
    max-width: 280px;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    top: calc(100% + 8px) !important;
    z-index: 10100;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    white-space: normal;
    pointer-events: none;
}

.page-search .panel-result .vehicle-image-tooltip:hover .tip {
    display: block;
}

/* Caption overflow fix für Tooltip-Sichtbarkeit */
.page-search .panel-result .caption:has(.vehicle-image-tooltip:hover) {
    overflow: visible !important;
}

.page-search .panel-result .vehicle-column:has(.vehicle-image-tooltip:hover) {
    overflow: visible !important;
}

/* Arrow for vehicle image tooltip - pointing up (left-aligned) */
.page-search .panel-result .vehicle-image-tooltip .tip:after {
    content: '';
    position: absolute;
    bottom: 100% !important;
    top: auto !important;
    left: 20px;
    right: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2d5f41 !important;
    border-top: none !important;
}

/* ==========================================================================
   SERVICE CODE BANNER
   ========================================================================== */
.service-code-banner {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f3ed 100%);
    border-bottom: 1px solid #c8e0d5;
    padding: 3px 0px 0px 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 38px;
}

.service-code-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    color: #1e4029;
}

/* Mobile: 3px Abstand links/rechts */
@media (max-width: 768px) {
    .service-code-banner .container {
        margin-left: 3px !important;
        margin-right: 3px !important;
    }
    .service-code-banner .service-code-right {
        margin-right: 0 !important;
    }
}

.service-code-content > .fa-phone {
    color: var(--brand, #2d5f41);
    font-size: 13px;
}

.service-code-help {
    color: #5f6368;
}

.service-code-divider {
    color: #c8e0d5;
    font-weight: 300;
}

.service-code-phone {
    font-weight: 600;
    color: var(--brand, #2d5f41);
    text-decoration: none;
}

.service-code-phone:hover {
    text-decoration: underline;
}

.service-code-hours {
    color: #5f6368;
    font-size: 12px;
}

.service-code-label {
    font-weight: 500;
    color: #5f6368;
}

.service-code-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #c8e0d5;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.service-code-tooltip {
    position: relative;
    cursor: help;
    color: #5f6368;
    margin-left: 4px;
}

.service-code-tooltip .fa-question-circle {
    font-size: 14px;
    transition: color 0.2s;
}

.service-code-tooltip:hover .fa-question-circle {
    color: var(--brand, #2d5f41);
}

.service-code-tooltip .tooltip-text {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    background: #1e4029;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-code-tooltip:hover .tooltip-text {
    display: block;
}

.service-code-tooltip .tooltip-text:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1e4029;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .page-search .panel-result .panel-body .row.p-relative {
        flex-direction: column;
    }

    .page-search .panel-result .panel-body .row.p-relative > .col-xs-4:first-child,
    .page-search .panel-result .panel-body .row.p-relative > .col-xs-8:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-search .panel-result .price {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .page-search .panel-result {
        border-radius: 8px;
    }

    .page-search .panel-result .panel-heading {
        padding: 10px 15px;
    }

    .page-search .panel-result .panel-body {
        padding: 15px;
    }

    .page-search .panel-result .panel-title {
        font-size: 14px;
    }

    .page-search .panel-result .price {
        font-size: 24px;
    }

    /* Fix ul.basics icon/text overlap on mobile */
    .page-search .panel-result ul.basics > li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 8px;
        font-size: 10px;
        line-height: 1.4;
    }

    .page-search .panel-result ul.basics > li:before {
        position: absolute;
        left: 0;
        top: 0;
        width: 20px;
        font-size: 12px;
        color: #43a047;
    }
}

/* ==========================================================================
   SHARE OFFER BUTTON & MODAL (Desktop)
   ========================================================================== */

/* --- Action Buttons Row (Zum Angebot + Share) --- */
.page-search .panel-result .action-buttons-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

.page-search .panel-result .action-buttons-row .btn-red {
    flex: 1;
    margin-bottom: 0;
}

/* Mobile: Action column layout - stack elements vertically */
@media (max-width: 768px) {
    /* Make action-column a flex container that stacks vertically */
    .page-search .panel-result .action-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Price and price_info in their own row */
    .page-search .panel-result .action-column .price,
    .page-search .panel-result .action-column .price_info {
        width: auto;
        margin-bottom: 8px;
    }

    /* Buttons in new row below price, side by side, full width */
    .page-search .panel-result .action-buttons-row {
        flex-direction: row;
        gap: 8px;
        margin-top: 4px;
        margin-bottom: 8px;
        width: 100%;
    }

    .page-search .panel-result .action-buttons-row .btn-red {
        flex: 1;
        order: 2;
    }

    .page-search .panel-result .action-buttons-row .btn-share-offer {
        flex: 0 0 auto;
        order: 1;
        margin-left: 0;
        height: 40px;
        min-width: 100px;
        padding: 0 16px;
        border-radius: 6px;
    }

    .page-search .panel-result .action-buttons-row .btn-share-offer::after {
        content: " Teilen";
        margin-left: 6px;
        font-family: inherit;
        font-size: 13px;
    }
}

/* --- Share Button in Result Card --- */
.page-search .panel-result .btn-share-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0;
    flex-shrink: 0;
}

.page-search .panel-result .btn-share-offer:hover {
    background: #f8f9fa;
    border-color: var(--brand, #2d5f41);
    color: var(--brand, #2d5f41);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 95, 65, 0.15);
}

.page-search .panel-result .btn-share-offer:active {
    transform: translateY(0);
}

.page-search .panel-result .btn-share-offer i {
    font-size: 16px;
}

/* --- Share Modal Overlay --- */
.share-offer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.share-offer-modal-overlay.active {
    display: flex;
}

/* --- Share Modal Container --- */
.share-offer-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modal Header --- */
.share-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.share-offer-title {
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    margin: 0;
}

.share-offer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
}

.share-offer-close:hover {
    background: #e0e0e0;
    color: #202124;
}

/* --- Offer Preview Section --- */
.share-offer-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 10px;
}

.share-offer-preview-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}

.share-offer-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-offer-preview-info {
    flex: 1;
    min-width: 0;
}

.share-offer-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-offer-preview-details {
    font-size: 13px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-offer-preview-price {
    text-align: right;
    flex-shrink: 0;
}

.share-offer-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    display: block;
}

.share-offer-price-label {
    font-size: 12px;
    color: #5f6368;
}

/* --- Share Options Grid --- */
.share-offer-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 24px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover {
    border-color: var(--brand, #2d5f41);
    background: #f0f7f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 65, 0.1);
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #5f6368;
    transition: all 0.2s ease;
}

.share-option:hover .share-option-icon {
    background: var(--brand, #2d5f41);
    color: #ffffff;
}

.share-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #202124;
    text-align: center;
}

/* WhatsApp special styling */
.share-option-whatsapp .share-option-icon-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.share-option-whatsapp:hover .share-option-icon-whatsapp {
    background: #128C7E;
}

/* --- Copied Toast --- */
.share-offer-copied {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #d4edda;
    color: #155724;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #c3e6cb;
}

.share-offer-copied i {
    color: #28a745;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .share-offer-modal {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        animation: slideUpMobile 0.3s ease-out;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .share-offer-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-offer-preview {
        flex-wrap: wrap;
    }

    .share-offer-preview-price {
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }
}

/* ==========================================================================
   DESKTOP FILTER PILLS
   ========================================================================== */

.desktop-filter-pills-container {
    margin-bottom: 20px;
    padding: 0 15px;
}

.desktop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.desktop-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-filter-pill:hover {
    background: #f8f9fa;
    border-color: #aeb4b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.desktop-filter-pill i {
    font-size: 14px;
    color: #666;
}

.desktop-filter-pill.active {
    background: #e6f4ea;
    border-color: var(--brand, #2d5f41);
    color: var(--brand, #2d5f41);
}

.desktop-filter-pill.active i {
    color: var(--brand, #2d5f41);
}

/* Desktop "Alle Filter" Sidebar Overlay */
.desktop-all-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-all-filters-overlay.show {
    display: flex;
    opacity: 1;
}

.desktop-all-filters-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 420px;
    height: 100vh;
    background: #fff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.desktop-all-filters-overlay.show .desktop-all-filters-sidebar {
    left: 0;
}

.desktop-all-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.desktop-all-filters-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.desktop-all-filters-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.desktop-all-filters-close:hover {
    background: #e0e0e0;
    color: #333;
}

.desktop-all-filters-body {
    padding: 0;
    padding-bottom: 80px; /* Space for footer */
}

/* All-filters modal categories */
.filter-modal-category {
    border-bottom: 1px solid #e8e8e8;
}

.filter-modal-category-title {
    padding: 24px 20px 12px 20px;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.3;
}

.filter-modal-category:first-child .filter-modal-category-title {
    padding-top: 20px;
}

.filter-modal-options {
    padding: 0 20px 24px 20px;
}

/* Individual filter option */
.filter-modal-option {
    display: block;
    margin-bottom: 14px;
    position: relative;
}

.filter-modal-option:last-child {
    margin-bottom: 0;
}

/* Custom checkbox styling matching sidebar filters */
.filter-modal-checkbox {
    opacity: 0;
    z-index: 1;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.filter-modal-label {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding-left: 30px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* Checkbox background box */
.filter-modal-label::before {
    content: "";
    display: inline-block;
    position: absolute;
    width: 18px;
    height: 18px;
    left: 0;
    top: 1px;
    margin-left: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* Checkbox checkmark */
.filter-modal-label::after {
    display: inline-block;
    position: absolute;
    width: 18px;
    height: 18px;
    left: 0;
    top: 1px;
    padding-left: 3px;
    padding-top: 1px;
    font-size: 11px;
    color: var(--brand, #006837);
}

/* Show checkmark when checked */
.filter-modal-checkbox:checked + .filter-modal-label::before {
    background-color: var(--brand, #006837);
    border-color: var(--brand, #006837);
}

.filter-modal-checkbox:checked + .filter-modal-label::after {
    font-family: "FontAwesome";
    content: "\f00c";
    color: #fff;
}

.desktop-all-filters-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 420px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 11;
}

.desktop-all-filters-footer .btn {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    max-width: 208px;
}

.desktop-all-filters-footer .btn-default {
    flex: 0 0 auto;
    padding: 0 24px;
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #333;
}

.desktop-all-filters-footer .btn-default:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.desktop-all-filters-footer .btn-green {
    flex: 1;
    background: #2d7738;
    border: none;
    color: #fff;
    font-weight: 700;
}

.desktop-all-filters-footer .btn-green:hover {
    background: #246129;
}

/* ==========================================================================
   DESKTOP CARD V2 - Kompakteres, moderneres Design
   Inspiriert von Mobile-Version, angepasst für Desktop
   ========================================================================== */

/* --- Kompaktere Card Basis --- */
.page-search .panel-result {
    border-radius: 12px;
    overflow: visible;  /* Changed from hidden to allow tooltips to overflow */
    margin-bottom: 12px;
}

.page-search .panel-result .panel-heading {
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px 12px 0 0;  /* Top corners rounded */
}

.page-search .panel-result .panel-body {
    padding: 14px 16px;
    border-radius: 0 0 12px 12px;  /* Bottom corners rounded */
    background: #fff;
}

/* --- Header Layout Optimierung --- */
.page-search .panel-result .panel-heading .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
}

/* Title-Spalte mit gleicher Breite wie vehicle-column im Body (Buendigkeit auf Anfrage <-> Abholung & Rueckgabe) */
.page-search .panel-result .panel-heading .row > div:first-child {
    flex: 0 0 auto !important;
    width: 32.3% !important;
    max-width: 32.3% !important;
}

.page-search .panel-result .panel-heading .row > div {
    padding: 0 !important;
}

/* Label-Spalten (auf Anfrage, Privattarif): shrink-to-content */
.page-search .panel-result .panel-heading .row > div:nth-child(2),
.page-search .panel-result .panel-heading .row > div:nth-child(3) {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* Legacy-Override: .tariftype hatte margin-left:-13px aus style.css */
.page-search .panel-result .panel-heading .tariftype {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* Legacy-Override: .label hatte width:137px aus style.css — shrink-to-fit */
.page-search .panel-result .panel-heading .label {
    width: auto !important;
}

/* Letzte Spalte im Header (Anbieter + Rating + Share) - fuellt Restbreite */
.page-search .panel-result .panel-heading .row > div:last-child {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 220px;
}

/* Anbieter-Name: kann jetzt voll expandieren, kuerzt nur wenn Platz fehlt */
.page-search .panel-result .panel-heading .interprise {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none;
    min-width: 0;
}

/* Kategorie-Titel kompakter */
.page-search .panel-result .panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    margin: 0;
    white-space: nowrap;
}

.page-search .panel-result .panel-title .badge {
    font-size: 11px;
    padding: 3px 7px;
    margin-right: 8px;
    border-radius: 4px;
}

/* --- Labels als kompakte Pills --- */
.page-search .panel-result .label {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

.page-search .panel-result .label-available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid transparent;
}

.page-search .panel-result .label-request {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid transparent;
}

.page-search .panel-result .label-privaterate,
.page-search .panel-result .label-studentrate,
.page-search .panel-result .label-companyrate {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* --- Rating Badge für Desktop --- */
.page-search .panel-result .desktop-rating-badge,
/* Rating-Badge absolut oben rechts in der Card */
.page-search .panel-result {
    position: relative;
}

/* Rating Badge - kompakt im Header */
.page-search .panel-result .offer-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: help;
    margin-top: 0px !important;
    transition: all 0.2s ease;
}

.page-search .panel-result .offer-rating-badge .rating-star {
    font-size: 14px;       /* Mobile: 14px */
    color: #f59e0b;        /* Mobile: gold */
}

.page-search .panel-result .offer-rating-badge .rating-score {
    font-weight: 600;      /* Mobile: 600 (nicht 700) */
    color: #202124;        /* Mobile: var(--text) = dunkler Text */
}

.page-search .panel-result .offer-rating-badge .fa-info-circle,
.page-search .panel-result .offer-rating-badge i.fa-info-circle {
    font-size: 11px;
    margin-left: 2px;
    color: #5f6368;        /* Mobile: var(--muted) statt opacity */
}

.page-search .panel-result .offer-rating-badge .rating-text {
    display: none; /* Versteckt - Mobile-Format nutzt nur Score */
}

/* Rating Farb-Klassen - 100% Mobile-Style (nur Hintergrund, Stern immer gold) */
.page-search .panel-result .offer-rating-badge.rating-excellent { background: #dcfce7; }
.page-search .panel-result .offer-rating-badge.rating-very-good { background: #dcfce7; }

span.rating-score {
    background: transparent !important;
}
.page-search .panel-result .offer-rating-badge.rating-good { background: #fef3c7; }
.page-search .panel-result .offer-rating-badge.rating-average { background: #fef9c3; }
.page-search .panel-result .offer-rating-badge.rating-below-average { background: #fed7aa; }
.page-search .panel-result .offer-rating-badge.rating-poor { background: #fecaca; }

.offer-rating-badge.rating-very-good .rating-score {
    /* background: #33691e; */
}

/* --- 3-Spalten Layout Optimierung --- */
.page-search .panel-result .result-content {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

/* Vehicle Column - Bild über Specs */
.page-search .panel-result .vehicle-column {
    flex: 1 1 24%;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px 0 0;
}

.page-search .panel-result .vehicle-column .caption {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
}

.page-search .panel-result .vehicle-column .caption img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    display: block;
}

/* Text als Overlay auf dem Bild - weiß auf dunklem Hintergrund */
.page-search .panel-result .vehicle-column .caption .desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 16px 6px 6px 6px;
    line-height: 1.2;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* --- Specs-Strip für Desktop (NEU) - 2x2 Grid unter Bild --- */
.page-search .panel-result .specs-strip-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    margin-top: 8px;
    width: 100%;
    margin-bottom: 5px;
}

.page-search .panel-result .specs-strip-desktop .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    min-height: 32px;
}

.page-search .panel-result .specs-strip-desktop .spec-item:nth-child(2n) {
    border-right: none;
}

.page-search .panel-result .specs-strip-desktop .spec-item:nth-child(n+3) {
    border-bottom: none;
}

.page-search .panel-result .specs-strip-desktop .spec-label {
    font-size: 9px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.page-search .panel-result .specs-strip-desktop .spec-value {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.page-search .panel-result .specs-strip-desktop .spec-item.spec-small .spec-value {
    font-size: 10px;
}

/* Legacy ul.basics kompakter */
.page-search .panel-result ul.basics {
    margin: 8px 0 0 0;
    padding: 0;
}

.page-search .panel-result ul.basics > li {
    font-size: 11px;
    padding: 3px 0 3px 22px;
    margin-bottom: 2px;
    color: #4b5563;
}

.page-search .panel-result ul.basics > li:before {
    font-size: 11px;
    left: 0;
    top: 4px;
    color: var(--brand, #2d5f41);
}

/* Details Column - flexible */
.page-search .panel-result .details-column {
    flex: 1.5 1 36%;
    min-width: 200px;
}

/* Station Row kompakter */
.page-search .panel-result .station-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.page-search .panel-result .station-group {
    flex: 1;
}

.page-search .panel-result .station-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-search .panel-result .station-group .map-link {
    font-size: 11px;
}

.page-search .panel-result .search-result-station-dd {
    padding: 8px 32px 8px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Fade-out für überlangen Stationstext (z.B. "Ingolstädter Straße 170B, 80939 München"),
   ohne Border zu maskieren. Pseudo-Overlay sitzt zwischen Text und Pfeil. */
.page-search .panel-result .station-group { position: relative; }
.page-search .panel-result .station-group:has(.poi-distance-hint)::after {
    content: "";
    position: absolute;
    right: 30px;       /* lässt den ▼ (bei calc(100% - 10px) zentriert, ~12px) frei */
    width: 28px;
    bottom: -11px;       /* respektiert die 1px Border */
    height: calc(1em + 16px); /* deckt nur den Select (font 12px + padding 8+8) */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, #fff 80%);
    pointer-events: none;
    border-radius: 0;
}
.page-search .panel-result .station-group:has(.poi-distance-hint):hover::after {
    background: linear-gradient(to right, rgba(248,250,249,0) 0%, #f8faf9 80%);
}

/* --- POI Distance Hint --- */
.page-search .panel-result .poi-distance-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    padding: 0 2px;
}

.page-search .panel-result .poi-distance-hint svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.page-search .panel-result .poi-distance-hint .poi-distance-value {
    font-weight: 600;
    color: #374151;
}

/* --- Feature Tags als kompakte Pills --- */
.page-search .panel-result .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.page-search .panel-result .feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.page-search .panel-result .feature-tag.tag-info {
    background: #dbeafe;
    color: #1e40af;
}

.page-search .panel-result .feature-tag.tag-warning {
    background: #fef3c7;
    color: #92400e;
}

.page-search .panel-result .feature-tag.tag-success {
    background: #dcfce7;
    color: #166534;
}

/* Action Column - Preis & Button niemals abschneiden */
.page-search .panel-result .action-column {
    flex: 0 0 auto;
    width: 170px;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding-left: 10px;
}

/* Preis + Zahlart horizontal */
.page-search .panel-result .action-column .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
}

.page-search .panel-result .action-column .price_info {
    font-size: 11px;
    text-align: right;
    color: #6b7280;
}

.page-search .panel-result .action-buttons-row {
    display: flex;
    width: 100%;
}

.page-search .panel-result .action-buttons-row .btn-red {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    text-align: center;
}

.page-search .panel-result .action-column .tell {
    display: none; /* Verstecken für kompakteres Design */
}

/* --- Card Footer Link kompakter --- */
.page-search .panel-result .card-footer-link {
    padding: 10px 16px;
    margin: 0 -16px -14px -16px;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 12px 12px;
}

.page-search .panel-result .card-footer-link a {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand, #2d5f41);
}

/* --- Details Collapse kompakter --- */
.page-search .panel-result .car-details-collapse {
    margin: 15px -16px -14px -16px;
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 12px 12px;
}

.page-search .panel-result .car-details-collapse .nav-tabs {
    border-bottom: 2px solid var(--card-border);
    margin-bottom: 0px !important;
}

.page-search .panel-result .car-details-collapse .nav-tabs > li > a {
    padding: 8px 14px;
    font-size: 12px;
    text-decoration: none;
}

/* --- Responsive für mittlere Screens --- */
@media (max-width: 1199px) {
    .page-search .panel-result .vehicle-column {
        flex: 1 1 20%;
        min-width: 120px;
    }

    .page-search .panel-result .details-column {
        flex: 1.5 1 30%;
        min-width: 180px;
    }

    .page-search .panel-result .action-column {
        flex: 0 0 auto;
        width: 160px;
        min-width: 160px;
    }

    .page-search .panel-result .action-column .price {
        font-size: 20px;
    }
}

/* --- Responsive für Tablet hochkant (Desktop-Cards bei schmaler Breite) --- */
@media (max-width: 850px) {
    /* 3-Spalten Layout: Details-Column schmaler, Vehicle-Column bekommt mehr Platz */
    .page-search .panel-result .vehicle-column {
        flex: 1.2 1 0 !important;
        min-width: 110px !important;
    }

    .page-search .panel-result .details-column {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 45% !important;
        padding: 0 4px !important;
    }

    .page-search .panel-result .action-column {
        flex: 0 0 auto !important;
        width: 130px !important;
        min-width: 130px !important;
    }

    .page-search .panel-result .action-column .price {
        font-size: 20px !important;
    }

    /* Panel Body kompakter */
    .page-search .panel-result .panel-body {
        padding: 10px !important;
    }

    /* Panel heading: Columns auto-width statt fester Bootstrap-Grid-Breiten */
    .page-search .panel-result .panel-heading {
        padding: 8px 10px !important;
    }

    .page-search .panel-result .panel-heading .row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .page-search .panel-result .panel-heading .row > div {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    /* Status Labels: schmaler durch max-width + Truncation */
    .page-search .panel-result .label {
        padding: 3px 5px !important;
        max-width: 100px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Rating Badge: schmaler damit Anbietername sichtbar bleibt */
    .page-search .panel-result .offer-rating-badge {
        padding: 4px 6px !important;
        min-width: 0 !important;
        gap: 3px !important;
        max-width: 80px !important;
        overflow: hidden !important;
    }

    .page-search .panel-result .offer-rating-badge .fa-info-circle {
        display: none !important;
    }

    /* Details & Mietbedingungen Footer schmaler + border-radius passend zur Card */
    .page-search .panel-result .card-footer-link {
        padding: 8px 10px !important;
        margin: 0 -10px -10px -10px !important;
        border-radius: 0 0 12px 12px !important;
    }

    .page-search .panel-result .card-footer-link a {
        font-size: 11px !important;
    }

    /* Share Button ausblenden bei wenig Platz */
    .page-search .panel-result .share-btn {
        display: none !important;
    }
}

/* ===================================================================
   PRICE ALERT BELL PILL - Desktop
   =================================================================== */

/* Price Alert Pill - gleiche Höhe wie andere Pills */
#pill-price-alert {
    min-height: 36px;
    padding: 8px 16px;
}

#pill-price-alert i.fa-bell {
    font-size: 14px;
}

/* Bell Pill Text Animation */
.pill-text-price-alert {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
    padding-left: 6px;
}

.pill-text-price-alert.text-collapsed {
    animation: textCollapseOut 0.6s ease-out forwards;
}

.pill-text-price-alert.text-hidden {
    display: none !important;
}

@keyframes textCollapseOut {
    0% {
        opacity: 1;
        width: 75px;
        padding-left: 6px;
    }
    100% {
        opacity: 0;
        width: 0;
        padding-left: 0;
    }
}

/* Bell Icon States & Animations */
#pill-price-alert i.fa-bell {
    transition: color 0.2s ease !important;
    display: inline-block !important;
    transform-origin: top center !important;
}

#pill-price-alert:hover i.fa-bell,
#pill-price-alert.active i.fa-bell {
    color: var(--brand) !important;
}

#pill-price-alert.bell-pulse i.fa-bell {
    animation: bellPulse 1s ease 2 !important;
}

#pill-price-alert.bell-swing i.fa-bell {
    animation: bellSwing 0.8s ease-in-out !important;
}

@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes bellSwing {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-1deg); }
    90% { transform: rotate(0.5deg); }
    100% { transform: rotate(0deg); }
}

/* ===================================================================
   PRICE ALERT MODAL - Desktop (zentriert)
   =================================================================== */

.desktop-price-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-price-alert-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.desktop-price-alert-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #43a047 0%, var(--brand, #2d5f41) 100%);
    border-radius: 16px;
    animation: modalScaleIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(45, 95, 65, 0.4);
}

@keyframes modalScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.desktop-price-alert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.desktop-price-alert-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.desktop-price-alert-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.desktop-price-alert-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Modal Body */
.desktop-price-alert-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Form Fields */
.desktop-price-alert-field {
    margin-bottom: 20px;
}

.desktop-price-alert-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.desktop-price-alert-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.desktop-price-alert-input-group input,
.desktop-price-alert-field input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.2s ease;
}

.desktop-price-alert-input-group input:focus,
.desktop-price-alert-field input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.desktop-price-alert-input-group input {
    padding-right: 40px;
}

.desktop-price-alert-currency {
    position: absolute;
    right: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.desktop-price-alert-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.desktop-price-alert-hint strong {
    color: white;
}

/* Notification Channels */
.desktop-price-alert-channels {
    margin-bottom: 24px;
}

.desktop-price-alert-channels > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.desktop-price-alert-channel-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-price-alert-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.desktop-price-alert-channel input[type="checkbox"] {
    display: none;
}

.desktop-price-alert-channel.active {
    background: rgba(255, 255, 255, 0.3);
}

.desktop-price-alert-channel:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.25);
}

.desktop-price-alert-channel.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.desktop-price-alert-channel i {
    font-size: 16px;
}

/* Submit Button */
.desktop-price-alert-actions {
    margin-top: 8px;
}

.desktop-price-alert-submit {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand, #2d5f41);
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-price-alert-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.desktop-price-alert-submit:active {
    transform: scale(0.98);
}

.desktop-price-alert-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error Messages */
.desktop-price-alert-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.desktop-price-alert-message.success {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand, #2d5f41);
    font-weight: 600;
}

.desktop-price-alert-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: white;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

/* ===== Skeleton Loading Cards (Sibling vor .results) ===== */
#results-skeleton-wrap .skeleton-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 0 0 12px;
    overflow: hidden;
}

/* Shimmer-Gradient auf allen Blöcken */
#results-skeleton-wrap .skeleton-card .sk-block {
    position: relative;
    overflow: hidden;
    background: #ececec;
    border-radius: 4px;
}
#results-skeleton-wrap .skeleton-card .sk-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.65) 50%,
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: sk-shimmer 1.4s ease-in-out infinite;
}
@keyframes sk-shimmer {
    100% { transform: translateX(100%); }
}

/* Heading (entspricht .panel-heading) */
#results-skeleton-wrap .skeleton-card .sk-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 61px;
}
#results-skeleton-wrap .skeleton-card .sk-hdr-title  { flex: 0 0 33%; height: 20px; }
#results-skeleton-wrap .skeleton-card .sk-hdr-label  { flex: 0 0 140px; height: 22px; border-radius: 11px; }
#results-skeleton-wrap .skeleton-card .sk-hdr-label2 { flex: 0 0 100px; height: 22px; border-radius: 11px; }
#results-skeleton-wrap .skeleton-card .sk-hdr-rating { flex: 1 1 auto; max-width: 130px; margin-left: auto; height: 28px; border-radius: 14px; }

/* Body (entspricht .panel-body) */
#results-skeleton-wrap .skeleton-card .sk-body {
    padding: 14px 16px;
}
#results-skeleton-wrap .skeleton-card .sk-body-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    min-height: 239px;
}

/* Spalten: vehicle / details / action */
#results-skeleton-wrap .skeleton-card .sk-col {
    display: flex;
    flex-direction: column;
}
#results-skeleton-wrap .skeleton-card .sk-col-vehicle {
    flex: 0 0 30%;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#results-skeleton-wrap .skeleton-card .sk-col-details {
    flex: 1 1 auto;
    justify-content: center;
    gap: 14px;
    padding: 8px 0;
}
#results-skeleton-wrap .skeleton-card .sk-col-action {
    flex: 0 0 22%;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

/* Einzel-Elemente */
#results-skeleton-wrap .skeleton-card .sk-image {
    width: 200px;
    max-width: 100%;
    height: 140px;
    border-radius: 6px;
}
#results-skeleton-wrap .skeleton-card .sk-veh-title {
    width: 80%; height: 14px;
}
#results-skeleton-wrap .skeleton-card .sk-line {
    width: 100%; height: 12px;
}
#results-skeleton-wrap .skeleton-card .sk-spec {
    width: 92%; height: 14px;
}
#results-skeleton-wrap .skeleton-card .sk-spec-short {
    width: 60%;
}
#results-skeleton-wrap .skeleton-card .sk-price {
    width: 110px; height: 30px;
}
#results-skeleton-wrap .skeleton-card .sk-price-sub {
    width: 90px; height: 12px;
}
#results-skeleton-wrap .skeleton-card .sk-btn {
    width: 100%; max-width: 160px; height: 38px;
    border-radius: 6px;
}

/* Footer-Link (entspricht .card-footer-link) */
#results-skeleton-wrap .skeleton-card .sk-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 41px;
    margin-top: 0;
    padding: 0;
}
#results-skeleton-wrap .skeleton-card .sk-footer-link {
    width: 200px; height: 14px;
}

@media (prefers-reduced-motion: reduce) {
    #results-skeleton-wrap .skeleton-card .sk-block::after { animation: none; }
}


/* === leaflet-routing-machine.css === */
.leaflet-routing-container, .leaflet-routing-error {
    width: 320px;
    background-color: white;
    padding-top: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.leaflet-control-container .leaflet-routing-container-hide {
    width: 32px;
    height: 32px;
}

.leaflet-routing-container h2 {
    font-size: 14px;
}

.leaflet-routing-container h3 {
    font-size: 12px;
    font-weight: normal;
}

.leaflet-routing-collapsible .leaflet-routing-geocoders {
    margin-top: 20px;
}

.leaflet-routing-alt, .leaflet-routing-geocoders, .leaflet-routing-error {
    padding: 6px;
    margin-top: 2px;
    margin-bottom: 6px;
    border-bottom: 1px solid #ccc;
    max-height: 320px;
    overflow-y: auto;
    transition: all 0.2s ease;
}

.leaflet-control-container .leaflet-routing-container-hide .leaflet-routing-alt, 
.leaflet-control-container .leaflet-routing-container-hide .leaflet-routing-geocoders {
    display: none;
}

.leaflet-bar .leaflet-routing-alt:last-child {
    border-bottom: none;
}

.leaflet-routing-alt-minimized {
    color: #888;
    max-height: 64px;
    overflow: hidden;
    cursor: pointer;
}

.leaflet-routing-alt table {
    border-collapse: collapse;
}

.leaflet-routing-alt tr:hover {
    background-color: #eee;
    cursor: pointer;
}

.leaflet-routing-alt::-webkit-scrollbar {
    width: 8px;
}

.leaflet-routing-alt::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: #eee;
}

.leaflet-routing-alt::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #888;
}

.leaflet-routing-icon {
    background-image: url('leaflet.routing.icons.png');
    -webkit-background-size: 240px 20px;
    background-size: 240px 20px;
    background-repeat: no-repeat;
    margin: 0;
    content: '';
    display: inline-block;
    vertical-align: top;
    width: 20px;
    height: 20px;
}

.leaflet-routing-icon-continue         { background-position: 0 0; }
.leaflet-routing-icon-sharp-right      { background-position: -20px 0; }
.leaflet-routing-icon-turn-right       { background-position: -40px 0; }
.leaflet-routing-icon-bear-right       { background-position: -60px 0; }
.leaflet-routing-icon-u-turn           { background-position: -80px 0; }
.leaflet-routing-icon-sharp-left       { background-position: -100px 0; }
.leaflet-routing-icon-turn-left        { background-position: -120px 0; }
.leaflet-routing-icon-bear-left        { background-position: -140px 0; }
.leaflet-routing-icon-depart           { background-position: -160px 0; }
.leaflet-routing-icon-enter-roundabout { background-position: -180px 0; }
.leaflet-routing-icon-arrive           { background-position: -200px 0; }
.leaflet-routing-icon-via              { background-position: -220px 0; }

.leaflet-routing-geocoders div {
    padding: 4px 0px 4px 0px;
}

.leaflet-routing-geocoders input {
    width: 303px;
    width: calc(100% - 4px);
    line-height: 1.67;
    border: 1px solid #ccc;
}

.leaflet-routing-geocoders button {
    font: bold 18px 'Lucida Console', Monaco, monospace;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    margin: 0;
    margin-right: 3px;
    float: right;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.leaflet-routing-add-waypoint:after {
    content: '+';
}

.leaflet-routing-reverse-waypoints:after {
    font-weight: normal;
    content: '\21c5';
}

.leaflet-routing-geocoders button:hover {
    background-color: #eee;
}

.leaflet-routing-geocoders input,.leaflet-routing-remove-waypoint,.leaflet-routing-geocoder {
    position: relative;
}

.leaflet-routing-geocoder-result {
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    position: absolute;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1000; /* Arbitrary, but try to be above "most" things. */
}

.leaflet-routing-geocoder-result table {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    background-color: white;
    cursor: pointer;
}

.leaflet-routing-geocoder-result-open {
    max-height: 800px;
}

.leaflet-routing-geocoder-selected, .leaflet-routing-geocoder-result tr:hover {
    background-color: #eee;
}

.leaflet-routing-geocoder-no-results {
    font-style: italic;
    color: #888;
}

.leaflet-routing-remove-waypoint {
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.leaflet-routing-remove-waypoint:after {
    position: absolute;
    display: block;
    width: 15px;
    height: 1px;
    z-index: 1;
    right: 1px;
    top: 4px;
    bottom: 0;
    margin: auto;
    padding: 2px;
    font-size: 18px;
    font-weight: bold;
    content: "\00d7";
    text-align: center;
    cursor: pointer;
    color: #ccc;
    background: white;
    padding-bottom: 16px;
    margin-top: -16px;
    padding-right: 4px;
    line-height: 1;
}

.leaflet-routing-remove-waypoint:hover {
    color: black;
}

.leaflet-routing-instruction-distance {
    width: 48px;
}

.leaflet-routing-collapse-btn {
    position: absolute;
    top: 0;
    right: 6px;
    font-size: 24px;
    color: #ccc;
    font-weight: bold;
}

.leaflet-routing-collapse-btn:after {
    content: '\00d7';
}

.leaflet-routing-container-hide .leaflet-routing-collapse-btn {
    position: relative;
    left: 4px;
    top: 4px;
    display: block;
    width: 26px;
    height: 23px;
    background-image: url('routing-icon.png');
}

.leaflet-routing-container-hide .leaflet-routing-collapse-btn:after {
    content: none;
}

.leaflet-top .leaflet-routing-container.leaflet-routing-container-hide {
    margin-top: 10px !important;
}
.leaflet-right .leaflet-routing-container.leaflet-routing-container-hide {
    margin-right: 10px !important;
}
.leaflet-bottom .leaflet-routing-container.leaflet-routing-container-hide {
    margin-bottom: 10px !important;
}
.leaflet-left .leaflet-routing-container.leaflet-routing-container-hide {
    margin-left: 10px !important;
}

@media only screen and (max-width: 640px) {
    .leaflet-routing-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        height: 100%;
    }
}


/* === leaflet.css === */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}


/* === MarkerCluster.css === */
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
	-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
	-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
	-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
	transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
	/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
	-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
	-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
	-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
	transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}


/* === MarkerCluster.Default.css === */
.marker-cluster-small {
	background-color: rgba(181, 226, 140, 0.6);
	}
.marker-cluster-small div {
	background-color: rgba(110, 204, 57, 0.6);
	}

.marker-cluster-medium {
	background-color: rgba(241, 211, 87, 0.6);
	}
.marker-cluster-medium div {
	background-color: rgba(240, 194, 12, 0.6);
	}

.marker-cluster-large {
	background-color: rgba(253, 156, 115, 0.6);
	}
.marker-cluster-large div {
	background-color: rgba(241, 128, 23, 0.6);
	}

	/* IE 6-8 fallback colors */
.leaflet-oldie .marker-cluster-small {
	background-color: rgb(181, 226, 140);
	}
.leaflet-oldie .marker-cluster-small div {
	background-color: rgb(110, 204, 57);
	}

.leaflet-oldie .marker-cluster-medium {
	background-color: rgb(241, 211, 87);
	}
.leaflet-oldie .marker-cluster-medium div {
	background-color: rgb(240, 194, 12);
	}

.leaflet-oldie .marker-cluster-large {
	background-color: rgb(253, 156, 115);
	}
.leaflet-oldie .marker-cluster-large div {
	background-color: rgb(241, 128, 23);
}

.marker-cluster {
	background-clip: padding-box;
	border-radius: 20px;
	}
.marker-cluster div {
	width: 30px;
	height: 30px;
	margin-left: 5px;
	margin-top: 5px;

	text-align: center;
	border-radius: 15px;
	font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
	}
.marker-cluster span {
	line-height: 30px;
	}
