/**
 * Favorites Widget Styles
 */

/* Favorites Button */
.favorites-btn {
    position: relative;
    background: #2d5016;
    color: white;
    border: 2px solid #2d5016;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.favorites-btn:hover {
    background: #0f2505;
    border-color: #0f2505;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.favorites-label {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.favorites-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Favorites Modal */
.favorites-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.favorites-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.favorites-header h2 {
    margin: 0;
    color: var(--primary-color, #2d5016);
}

.favorites-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.favorites-close:hover {
    color: #000;
}

.favorites-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.favorite-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.favorite-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.favorite-info {
    padding: 15px;
}

.favorite-info h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color, #2d5016);
    font-size: 18px;
}

.favorite-city {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.favorite-price {
    color: #2d5016;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.favorite-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.remove-favorite-btn {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.remove-favorite-btn:hover {
    background: #dc2626;
}

/* Empty State */
.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-favorites p:first-child {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .favorites-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 18px;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .favorites-label {
        display: none;
    }
    
    .favorites-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .favorites-modal-content {
        max-height: 95vh;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}
