/**
 * Dealfinder CSS
 * Immobilien-Suchmaschine Styles
 */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

/* Container */
.idf-container {
    display: flex;
    gap: 20px;
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Sidebar */
.idf-sidebar {
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
    height: calc(100vh - 40px);
    padding-right: 10px;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.idf-sidebar::-webkit-scrollbar {
    display: none;
}

.idf-logo-box {
    margin-bottom: 20px;
    text-align: center;
}

.idf-logo {
    width: 180px;
    height: auto;
}

.idf-info-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.idf-info-box #idf-total-count {
    font-weight: bold;
    color: #e91e63;
}

.idf-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.idf-filter-group {
    margin-bottom: 20px;
}

.idf-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.idf-experimental-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

/* Form Elements */
.idf-input,
.idf-select,
.idf-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fff;
}

.idf-input:focus,
.idf-select:focus,
.idf-textarea:focus {
    outline: none;
    border-color: #e91e63;
}

/* Slider */
.idf-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.idf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e91e63;
    cursor: pointer;
}

.idf-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e91e63;
    cursor: pointer;
    border: none;
}

#idf-radius-value {
    font-weight: bold;
    color: #e91e63;
}

.idf-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idf-range-inputs input {
    flex: 1;
}

.idf-range-inputs span {
    color: #999;
    font-size: 14px;
}

/* Buttons */
.idf-btn-search,
.idf-btn-reset {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.idf-btn-search {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #ffffff;
    margin-bottom: 10px;
}

.idf-btn-search:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.idf-btn-reset {
    background: #f5f5f5;
    color: #666;
}

.idf-btn-reset:hover {
    background: #e0e0e0;
}

/* Results */
.idf-results {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 40px);
    padding-right: 10px;
    position: relative;
    min-width: 0;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.idf-results::-webkit-scrollbar {
    display: none;
}

#idf-results-list {
    display: grid;
    gap: 20px;
}

/* Result Item */
.idf-result-item {
    position: relative;
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.idf-result-item:hover {
    transform: translateY(-2px) translateZ(0);
    border-color: #ccc;
}

.idf-result-image {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.idf-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idf-blurred-image {
    filter: blur(8px);
}

.idf-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    color: #999;
    font-size: 12px;
}

.idf-new-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #57FFAD;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.idf-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Price + Score Row */
.idf-price-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.idf-score-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.idf-immoscore-tooltip {
    cursor: help;
    position: relative;
}

.idf-score-bar {
    width: 63px;
    height: 8px;
    background: #E8ECF5;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.idf-score-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 20px;
}

.idf-result-price {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
}

.idf-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.idf-result-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.idf-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.idf-result-meta span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Map Container */
.idf-map-container {
    width: 40%;
    min-width: 500px;
    height: calc(100vh - 40px);
    position: relative;
    flex-shrink: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#idf-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Map Popup */
.idf-map-popup {
    max-width: 280px;
    padding: 0;
}

.idf-map-popup-content {
    padding: 15px;
}

.idf-map-popup-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.idf-map-popup-score-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.idf-map-popup-score-bar {
    width: 63px;
    height: 8px;
    background: #E8ECF5;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.idf-map-popup-score-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 20px;
}

.idf-map-popup-price {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
}

.idf-map-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.idf-map-popup-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.idf-map-popup-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.idf-map-popup-btn:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    transform: translateY(-2px);
}

.idf-map-popup-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Spotlight Animation */
@keyframes spotlightPulse {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 3;
        filter: drop-shadow(0 0 20px #57FFAD);
    }
    50% {
        opacity: 0.6;
        stroke-width: 5;
        filter: drop-shadow(0 0 40px #57FFAD);
    }
}

.spotlight-circle {
    animation: spotlightPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* Modal */
.idf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.idf-modal-content {
    background: #fff;
    margin: 0;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.idf-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.idf-modal-close:hover {
    color: #333;
}

.idf-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Form */
.idf-form-group {
    margin-bottom: 20px;
}

.idf-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.idf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.idf-form-row .idf-form-group {
    margin-bottom: 0;
}

.idf-checkbox-group {
    margin-bottom: 25px;
}

.idf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.idf-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.idf-checkbox-label span {
    flex: 1;
}

.idf-checkbox-label a {
    color: #e91e63;
    text-decoration: underline;
}

.idf-checkbox-label a:hover {
    color: #c2185b;
}

.idf-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.idf-btn-submit:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Messages */
.idf-loading,
.idf-loading-more {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.idf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.idf-loading::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.idf-loading-more {
    padding: 20px;
}

.idf-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.idf-success {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    margin-top: 15px;
}

.idf-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    margin-top: 15px;
}

/* Filter Toggle */
.idf-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .idf-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .idf-sidebar {
        width: 100%;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .idf-filter-toggle {
        display: block;
    }

    .idf-filters {
        display: none;
    }

    .idf-filters.collapsed {
        display: none;
    }

    .idf-filters:not(.collapsed) {
        display: block;
    }

    .idf-results {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .idf-map-container {
        display: none;
    }

    #idf-results-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .idf-result-item {
        flex-direction: column;
        overflow: hidden;
    }

    .idf-result-image {
        width: 100%;
        height: 180px;
    }

    .idf-result-content {
        width: 100%;
        overflow: hidden;
    }

    .idf-result-price {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .idf-result-meta {
        flex-direction: column;
        gap: 5px;
    }

    .idf-price-score-row {
        flex-wrap: wrap;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .idf-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 15px;
    }

    .idf-sidebar {
        width: 100%;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .idf-filter-toggle {
        display: block;
    }

    .idf-filters {
        display: none;
    }

    .idf-filters.collapsed {
        display: none;
    }

    .idf-filters:not(.collapsed) {
        display: block;
    }

    .idf-results {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .idf-map-container {
        display: none;
    }

    #idf-results-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .idf-result-item {
        flex-direction: column;
        overflow: hidden;
    }

    .idf-result-image {
        width: 100%;
        height: 200px;
    }

    .idf-result-content {
        width: 100%;
        overflow: hidden;
    }

    .idf-result-price {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .idf-result-meta {
        flex-direction: column;
        gap: 5px;
    }

    .idf-price-score-row {
        flex-wrap: wrap;
    }

    .idf-score-text {
        white-space: normal;
    }

    .idf-form-row {
        grid-template-columns: 1fr;
    }
}

/* Leaflet Cluster Custom Styles */
.custom-cluster-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker-icon {
    background: transparent !important;
    border: none !important;
}

/* ========================================
   NEW FEATURES - Quick Filters, Toolbar,
   Multi-Select, Favorites, Compare
   ======================================== */

/* Quick Filter Chips */
.idf-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.idf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.idf-chip:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.idf-chip.active {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    border-color: #e91e63;
    color: #fff;
}

.idf-chip.active:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.idf-chip-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.idf-chip.active .idf-chip-icon {
    filter: brightness(0) invert(1);
}

/* Toolbar */
.idf-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.idf-toolbar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.idf-toolbar-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.idf-toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.idf-toolbar-btn.active {
    background: #fce4ec;
    border-color: #f8bbd9;
    color: #e91e63;
}

.idf-toolbar-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.idf-toolbar-btn:hover .idf-toolbar-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(2532%) hue-rotate(326deg) brightness(93%) contrast(96%);
}

.idf-toolbar-btn.active {
    background: #fce4ec;
    border-color: #f8bbd9;
}

.idf-toolbar-btn.active .idf-toolbar-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(2532%) hue-rotate(326deg) brightness(93%) contrast(96%);
}

.idf-toolbar-btn.active .idf-badge {
    background: #e91e63;
    color: #fff;
}

.idf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e0e0e0;
    color: #666;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.idf-toolbar-btn.active .idf-badge {
    background: #e91e63;
    color: #fff;
}

/* Risikoklasse Checkboxes - Inline ohne Box */
.idf-risikoklasse-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.idf-risikoklasse-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 2px 0;
}

.idf-risikoklasse-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #e91e63;
}

.idf-risikoklasse-item span {
    font-size: 13px;
    color: #444;
}

.idf-risikoklasse-item input[type="checkbox"]:checked + span {
    color: #e91e63;
    font-weight: 500;
}

/* Sorting Dropdown */
.idf-sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.idf-sort-group label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    margin-bottom: 0;
}

.idf-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}

.idf-sort-select:focus {
    outline: none;
    border-color: #e91e63;
}

/* Favorite Button Top Right */
.idf-fav-btn-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.idf-fav-btn-top:hover {
    background: #fff;
    transform: scale(1.1);
}

.idf-fav-btn-top.active {
    background: #fce4ec;
}

.idf-heart-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(0%);
}

.idf-fav-btn-top.active .idf-heart-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(2532%) hue-rotate(326deg) brightness(93%) contrast(96%);
}

/* Result Card Actions - 33% each */
.idf-result-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.idf-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.idf-action-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.idf-action-btn.active {
    background: #fce4ec;
    border-color: #f8bbd9;
    color: #e91e63;
}

.idf-action-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(0%);
}

.idf-action-btn:hover .idf-action-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(1234%) hue-rotate(316deg) brightness(91%) contrast(98%);
}

/* Heart active - red color */
.idf-action-btn.active .idf-action-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(2532%) hue-rotate(326deg) brightness(93%) contrast(96%);
}

/* Compare button active - blue tint */
.idf-action-btn.idf-compare-btn.active {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1976d2;
}

.idf-action-btn.idf-compare-btn.active .idf-action-icon {
    filter: brightness(0) saturate(100%) invert(32%) sepia(93%) saturate(1234%) hue-rotate(196deg) brightness(93%) contrast(91%);
}

/* Compare Modal - Wide & Centered */
.idf-modal-wide .idf-modal-content {
    max-width: 95%;
    width: auto;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
}

.idf-compare-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.idf-compare-empty p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

/* Compare Table */
.idf-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}

.idf-compare-table thead {
    background: #f8f8f8;
}

.idf-compare-table th,
.idf-compare-table td {
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.idf-compare-label {
    width: 120px;
    padding: 10px 12px;
    background: #f5f5f5;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    text-align: left;
}

.idf-compare-cell {
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    text-align: center;
    min-width: 140px;
}

.idf-compare-header-cell {
    padding: 5px 0;
    text-align: center;
}

.idf-compare-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.idf-compare-price {
    font-size: 16px;
    font-weight: bold;
    color: #e91e63;
}

.idf-compare-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.idf-compare-score-bar {
    width: 40px;
    height: 5px;
    background: #E8ECF5;
    border-radius: 10px;
    overflow: hidden;
}

.idf-compare-score-fill {
    height: 100%;
    border-radius: 10px;
}

.idf-compare-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 auto 8px auto;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}

.idf-compare-remove:hover {
    background: #fee;
    border-color: #f99;
    color: #e91e63;
}

/* Alternating row colors */
.idf-compare-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Favorites List View */
.idf-favorites-list {
    margin-top: 15px;
}

.idf-favorites-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.idf-favorites-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.idf-favorites-item:last-child {
    border-bottom: none;
}

.idf-favorites-item-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

.idf-favorites-item-info {
    flex: 1;
    min-width: 0;
}

.idf-favorites-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idf-favorites-item-price {
    font-size: 13px;
    color: #e91e63;
    font-weight: 600;
}

.idf-favorites-remove {
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    font-size: 12px;
}

.idf-favorites-remove:hover {
    background: #fee;
    border-color: #f99;
    color: #e91e63;
}

/* Share Link Box */
.idf-share-box {
    margin-top: 15px;
}

.idf-share-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.idf-share-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
}

.idf-share-copy-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.idf-share-copy-btn:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.idf-share-copied {
    text-align: center;
    padding: 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

/* Responsive Adjustments for New Features */
@media (max-width: 1024px) {
    .idf-toolbar {
        flex-wrap: wrap;
    }

    .idf-compare-table {
        display: block;
        overflow-x: auto;
    }

    .idf-modal-wide .idf-modal-content {
        margin: 2% auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .idf-quick-filters {
        gap: 6px;
    }

    .idf-chip {
        padding: 6px 10px;
        font-size: 12px;
    }

    .idf-toolbar {
        flex-direction: row;
        align-items: stretch;
    }

    .idf-toolbar-btn {
        justify-content: center;
    }

    .idf-toolbar-spacer {
        display: none;
    }

    .idf-checkbox-list {
        max-height: 150px;
    }

    .idf-result-actions {
        flex-wrap: wrap;
    }

    .idf-action-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }

    .idf-modal-wide .idf-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }

    .idf-compare-label {
        width: 100px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .idf-compare-cell {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 150px;
    }

    .idf-compare-image {
        width: 80px;
        height: 60px;
    }
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Desktop-Only Elements */
.idf-desktop-only {
    display: flex;
}

/* Mobile Header - Hidden on Desktop */
.idf-mobile-header {
    display: none;
}

/* Mobile Actions - Hidden on Desktop */
.idf-mobile-actions {
    display: none;
}

/* Mobile Filter Modal - Hidden by Default */
.idf-mobile-filter-modal {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide Desktop-Only Elements */
    .idf-desktop-only {
        display: none !important;
    }

    /* Mobile Header - Sticky */
    .idf-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .idf-mobile-logo-link {
        display: flex;
        align-items: center;
    }

    .idf-mobile-logo {
        max-width: 150px;
        height: auto;
    }

    .idf-mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .idf-mobile-filter-btn:hover {
        background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    }

    .idf-mobile-filter-btn svg {
        fill: currentColor;
    }

    /* Mobile Actions - scrollt mit dem Content */
    .idf-mobile-actions {
        display: block;
        background: #fff;
        padding: 15px;
        margin-top: 57px;
    }

    .idf-mobile-quick-filters {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .idf-mobile-quick-filters::-webkit-scrollbar {
        display: none;
    }

    .idf-mobile-quick-filters .idf-chip {
        flex-shrink: 0;
    }

    /* Mobile Toolbar - 3 Boxes nebeneinander */
    .idf-mobile-toolbar {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        margin-bottom: 15px;
    }

    .idf-mobile-toolbar .idf-toolbar-btn {
        flex: 1;
        padding: 10px 8px;
    }

    /* Mobile Filter Modal */
    .idf-mobile-filter-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        background: #fff;
        flex-direction: column;
        overflow: hidden;
    }

    .idf-mobile-filter-modal.active {
        display: flex;
    }

    .idf-mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        flex-shrink: 0;
    }

    .idf-mobile-filter-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .idf-mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        font-size: 28px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .idf-mobile-filter-close:hover {
        background: #e0e0e0;
        color: #333;
    }

    .idf-mobile-filter-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .idf-mobile-filter-content .idf-filters {
        display: block !important;
        border: none;
        padding: 0;
    }

    /* Adjust main container - nur Platz für sticky Header */
    .idf-container {
        padding-top: 0;
        padding: 0 15px 15px 15px;
    }

    /* Hide sidebar elements on mobile that are moved */
    .idf-sidebar .idf-logo-box,
    .idf-sidebar .idf-info-box,
    .idf-sidebar .idf-filter-toggle {
        display: none;
    }

    /* Hide sidebar completely on mobile */
    .idf-sidebar {
        display: none;
    }

    /* Adjust results for mobile */
    .idf-results {
        width: 100%;
        padding: 0;
    }

    /* Hover-Effekt auf Mobile deaktivieren */
    .idf-result-item:hover {
        transform: none;
    }

    /* Aktive Schnellfilter auf Mobile mit Akzent-Umrandung */
    .idf-mobile-quick-filters .idf-chip.active {
        border: 2px solid #c2185b;
        box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.3);
    }

    /* Modals auf Mobile - Vollbild */
    .idf-modal {
        align-items: flex-start;
        justify-content: flex-start;
        background: #fff;
    }

    .idf-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .idf-modal-close {
        position: fixed;
        top: 10px;
        right: 15px;
        z-index: 10001;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        font-size: 24px;
        color: #666;
    }

    .idf-modal-content h2 {
        margin-top: 40px;
        font-size: 20px;
    }

    /* Vergleichs-Modal auf Mobile */
    .idf-modal-wide .idf-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .idf-mobile-header,
    .idf-mobile-actions,
    .idf-mobile-filter-modal {
        display: none;
    }

    .idf-desktop-only {
        display: flex;
    }
}
