/* ============================================
   FAVORITES MODAL
   Heart list popup with items
   ============================================ */

.favorites-modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.favorites-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.favorites-modal.closing {
    opacity: 0;
}

.favorites-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.favorites-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.favorites-modal.active .favorites-content {
    transform: translateY(0);
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.favorites-header h3 {
    margin: 0;
    color: var(--primary-color, #8B0000);
    font-size: 20px;
}

.favorites-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    color: #555;
}

.favorites-items {
    overflow-y: auto;
    padding: 16px;
    max-height: calc(80vh - 70px);
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.favorite-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
}

.favorite-item:active {
    background-color: #f0f0f0;
}

.favorite-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    pointer-events: none;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.favorite-item:hover::after {
    border-color: rgba(139, 0, 0, 0.1);
}

.favorite-remove {
    z-index: 2;
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.favorite-remove:hover {
    background-color: #e0e0e0;
}

.favorite-plate {
    font-weight: 600;
    font-size: 20px;
    color: var(--text-color, #333);
}

.favorite-price {
    color: var(--primary-color, #8B0000);
    font-weight: 500;
}

/* Empty state */
.no-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.empty-state-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.empty-state-hint {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
